slurmrestd
Slurm REST API interface daemon
TLDR
Start REST API on a port
SYNOPSIS
slurmrestd [OPTIONS]... <[host]:port|unix:/path/to/socket>...
DESCRIPTION
slurmrestd provides a REST API interface to Slurm workload manager. It operates in two modes: Inetd Mode for piped input via inetd, xinetd, or systemd socket activation, and Listen Mode for opening sockets on specified addresses.
The daemon supports authentication via local UNIX socket credentials or JWT tokens. Multiple listening endpoints can be specified, including TCP ports and Unix sockets. TLS encryption is supported by prefixing addresses with https://.
PARAMETERS
-a plugin[,plugin]
Comma-delimited list of authentication plugins to load-d plugin[,plugin]
Data parser plugins for output formatting-s plugin[,plugin]
OpenAPI plugins determining available endpoints-f file
Read Slurm configuration from specified file-g groupid_
Change group ID and drop supplemental groups-u userid_
Change user ID before processing requests-t count
Number of processing threads--max-connections count
Maximum concurrent connections (default: 124)--generate-openapi-spec
Output JSON OpenAPI schema and exit-v
Verbose mode (up to 6 levels)-V
Print version information-h
Display help
CAVEATS
Requires proper Slurm configuration and authentication setup. JWT authentication requires proper key configuration. Running with elevated privileges then dropping to unprivileged user is recommended. API endpoints vary based on loaded plugins and Slurm version.
HISTORY
slurmrestd was added to Slurm in version 20.02 (released 2020) to provide modern REST API access for programmatic cluster interaction. It enables integration with web interfaces, monitoring systems, and automation tools. Maintained by SchedMD as part of the core Slurm distribution.
