Nodes (Slurm)
Cedana API for nodes (Slurm)
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
400
Invalid query parameters
application/json
500
Failed to fetch from database
application/json
4XX
Client error
application/json
5XX
Server error
application/json
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
}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
500
Failed to sync nodes to database
application/json
4XX
Client error
application/json
5XX
Server error
application/json
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"
}
]
}textLast updated
Was this helpful?