Resume a hibernated cluster
const url = 'https://example.com/api/v1/teams/example/clusters/example/resume/';const options = {method: 'POST', headers: {cookie: 'sessionid=<sessionid>'}};
try { const response = await fetch(url, options); const data = await response.json(); console.log(data);} catch (error) { console.error(error);}curl --request POST \ --url https://example.com/api/v1/teams/example/clusters/example/resume/ \ --cookie sessionid=<sessionid>/api/v1/teams/{team}/clusters (docs/58 §3.4).
The custom POST actions (hibernate/resume/kubeconfig) are routed manually via
as_view({"post": …}) rather than DRF’s @action, so their @extend_schema must live
on the method directly — @extend_schema_view only matches recognised ViewSet actions.
Authorizations
Section titled “Authorizations ”Parameters
Section titled “ Parameters ”Path Parameters
Section titled “Path Parameters ”Responses
Section titled “ Responses ”202 Accepted body for a mutating call (docs/58 §5.3): the queued Operation + the
resource as last observed.
object
An async Operation resource (docs/58 §3.11, §5.3) — poll to convergence.
object
object
object
A Cluster resource (docs/58 §3.2): {apiVersion, kind, metadata, spec, status}.
object
object
object
object
object
object
Example generated
{ "operation": { "id": "example", "kind": "example", "target": { "additionalProperty": "example" }, "state": "example", "progress": 1, "error": { "additionalProperty": "example" }, "desiredHash": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z", "self": "example" }, "resource": { "apiVersion": "example", "kind": "example", "metadata": { "name": "example", "id": "example", "team": "example", "generation": 1, "observedGeneration": 1, "etag": "example", "createdAt": "2026-04-15T12:00:00Z", "updatedAt": "2026-04-15T12:00:00Z" }, "spec": { "additionalProperty": "example" }, "status": { "phase": "example", "seedName": "example", "conditions": [ { "additionalProperty": "example" } ], "migrationPhase": "example", "cost": { "additionalProperty": "example" } } }}RFC 7807 problem document
RFC 7807 application/problem+json — every non-2xx response (docs/58 §5.10).
object
Stable machine code clients switch on
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "instance": "example", "operationId": "example"}RFC 7807 problem document
RFC 7807 application/problem+json — every non-2xx response (docs/58 §5.10).
object
Stable machine code clients switch on
Example generated
{ "type": "https://example.com", "title": "example", "status": 1, "detail": "example", "code": "example", "instance": "example", "operationId": "example"}