Clusters

Cedana API for clusters

List clusters

get

Returns all clusters associated with the authenticated user's organization

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Responses
200

Returns a list of clusters

application/json
get
/v2/cluster

Create cluster

post

Creates or updates info regarding a Kubernetes cluster

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body

CreateClusterRequest is the request body for creating a cluster

cluster_namestringRequired
Responses
200

Returns the cluster id for the newly created or updated cluster

text/plain
Responsestring
post
/v2/cluster

Sync cluster

post

Syncs cluster resources such as pods, jobs, and nodes

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Body
cluster_idstring | nullOptional
metadataanyOptional
resourceone ofOptional
or
or
or
Responses
200

Resource id registered internally

text/plain
Responsestring
post
/v2/cluster/sync

Create workload

post

Takes a cluster name and workload specification, then creates a Kubernetes job on the specified cluster

Body
cluster_idstringRequired
cluster_namestring | nullOptionalDeprecated
deploymentanyOptional
jobanyOptional
podanyOptional
Responses
200

Added workload to queue

text/plain
Responsestring
post
/v2/cluster/workload

Delete cluster

delete

This endpoint deletes a cluster and all its dependent entities in a single transaction which is rolled back if any part of the deletion fails

Authorizations
AuthorizationstringRequired
Bearer authentication header of the form Bearer <token>.
Path parameters
idstring · uuidRequired
Responses
200

Delete the given cluster, and return Status OK

No content

delete
/v2/cluster/{id}

No content

Last updated

Was this helpful?