Clusters (Slurm)
Cedana API for clusters (Slurm)
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
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/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
}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
500
Failed to sync clusters to database
application/json
4XX
Client error
application/json
5XX
Server error
application/json
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"
}
]
}textLast updated
Was this helpful?