Skip to main content

Manage Clusters

This guide provides an overview of how to manage Slurm clusters in your project.

List Clusters

To list all Slurm clusters via the API, send a GET request to the /slurm/clusters endpoint:

GET /slurm/clusters HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>

Create Cluster

To create a Slurm cluster via the API, send a POST request to the /slurm/clusters endpoint:

POST /slurm/clusters HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>
Content-Type: application/json

{
"name": "<cluster-name>",
"partition": "<partition-name>"
}

Get Cluster Details

To get details for a specific cluster via the API, send a GET request to the /slurm/clusters/{id} endpoint:

GET /slurm/clusters/<cluster-id> HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>

Delete Cluster

To delete a cluster via the API, send a DELETE request to the /slurm/clusters/{id} endpoint:

DELETE /slurm/clusters/<cluster-id> HTTP/1.1
Host: <your-cluster-url>
Authorization: Bearer <your-auth-token>

For node pool management, see Manage Node Pools.