Clusters
Cedana API for clusters
Returns all clusters associated with the authenticated user's organization. Optional ?kind=kubernetes|slurm filter.
Filter by cluster kind: "kubernetes" or "slurm"
Returns a list of clusters
Invalid kind filter
Failed to fetch clusters from database
Client error
Server error
GET /v1/cluster HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
[
{
"id": "123e4567-e89b-12d3-a456-426614174000",
"kind": "text",
"last_sync": null,
"metadata": null,
"name": "text",
"status": "text"
}
]Creates or updates info regarding a Kubernetes cluster
CreateClusterRequest is the request body for creating a cluster
Cluster kind: "kubernetes" (default) or "slurm"
Returns the cluster id for the newly created or updated cluster
Bad request or missing cluster name
Failed to create cluster in database
Client error
Server error
POST /v1/cluster HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 35
{
"cluster_name": "text",
"kind": null
}550e8400-e29b-41d4-a716-446655440000Syncs cluster resources such as pods, jobs, and nodes
Resource id registered internally
Bad request
Cluster or node not found
Failed to sync resource to database
Client error
Server error
POST /v1/cluster/sync HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Content-Type: application/json
Accept: */*
Content-Length: 62
{
"cluster_id": null,
"metadata": null,
"resource": {
"type": "None"
}
}textTakes a cluster name and workload specification, then creates a Kubernetes job on the specified cluster
Added workload to queue
Error parsing body
Server error
Client error
Server error
POST /v1/cluster/workload HTTP/1.1
Content-Type: application/json
Accept: */*
Content-Length: 61
{
"cluster_id": "text",
"deployment": null,
"job": null,
"pod": null
}textThis endpoint deletes a cluster and all its dependent entities in a single transaction which is rolled back if any part of the deletion fails
Delete the given cluster, and return Status OK
No content
Cluster not found
Failed to delete cluster from database
Client error
Server error
DELETE /v1/cluster/{id} HTTP/1.1
Authorization: Bearer YOUR_SECRET_TOKEN
Accept: */*
No content
Last updated
Was this helpful?