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

Nodes (Slurm)

Cedana API for nodes (Slurm)

List nodes

get

Paginated. total_count is the number of nodes matching the filters before paging.

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

Exact node id to fetch

cluster_idstring · nullableOptional

Only return nodes belonging to this cluster

offsetinteger · nullableOptional

Row offset (default 0)

limitinteger · nullableOptional

Page size (default 50, max 500)

Responses
200

Returns nodes with total count

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

Sync nodes

post

Receives a batch of SLURM nodes from the cedana-slurm plugin and upserts them. Nodes missing from the payload are marked as STALE.

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

Nodes synced successfully

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

{
  "cluster_id": "123e4567-e89b-12d3-a456-426614174000",
  "nodes": [
    {
      "cpus": 1,
      "id": "text",
      "memory": 1,
      "name": "text",
      "status": "text"
    }
  ]
}
text

Last updated

Was this helpful?