Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

Clusters (Slurm)

Cedana API for clusters (Slurm)

List clusters

get

Paginated. total_count is the number of SLURM clusters before paging.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Query parameters
offsetinteger · nullableOptional

Row offset (default 0)

limitinteger · nullableOptional

Page size (default 50, max 500)

Responses
200

Returns clusters with total count

application/json
total_countinteger · int64Required
get/v1/slurm/clusters
GET /v1/slurm/clusters HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
{
  "clusters": [
    {
      "id": "123e4567-e89b-12d3-a456-426614174000",
      "metadata": null,
      "name": "text",
      "status": "text"
    }
  ],
  "total_count": 1
}

Sync clusters

post

Receives a batch of SLURM clusters from the cedana-slurm plugin and upserts them. Clusters missing from the payload (for this cluster_id) are marked STALE.

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
cluster_idstring · uuidRequired
Responses
200

Clusters synced successfully

text/plain
stringOptional
post/v1/slurm/clusters/sync
POST /v1/slurm/clusters/sync HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 126

{
  "cluster_id": "123e4567-e89b-12d3-a456-426614174000",
  "clusters": [
    {
      "id": "text",
      "metadata": null,
      "name": "text",
      "status": "text"
    }
  ]
}
text

Last updated

Was this helpful?