Skip to main content
POST
Roll a cluster back to a resource version

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Headers

authorization
string | null
x-ankra-organisation-id
string | null

Body

application/json
cluster_id
string<uuid4>
required
version_id
string
required

Response

Successful Response

ok
boolean
default:true
git_push
RollToClusterResourceVersionGitPush · object

Present when the cluster has a GitHub or Bitbucket Cloud repository row: what the push that followed the saved roll did. Absent for a cluster with no such repository, whose roll pushes nothing. The roll is saved whatever this says.

commit_sha
string

Present only when git_push.status is pushed: the commit the roll's push landed, the same as git_push.commit_sha.

commit_url
string

Present with commit_sha: the provider's link to that commit (empty when the provider gave none), the same as git_push.commit_url.

skipped_resources
Skipped Resources · object[]

Present only when the target version held servers, Kubernetes nodes, bastions or VMs: a version roll never replays those, and each listed one keeps its current definition. Change them through their node group, control plane or VM settings.

uninstalled_stacks
RollToClusterResourceVersionUninstalledStack · object[]

Present only when the roll met uninstalled stacks. A version roll leaves a stack installed or uninstalled as it is, so each listed stack stays uninstalled. The roll wrote the version's definition to each of its held_members and deployed none of them; each is in the state shown. Down means off the cluster and stopping means still being removed from it; up, creating or updating means it may still be on the cluster, and the version changes nothing it deploys there. Installing the stack is what deploys its members again; a roll cannot.

resources_pending_delete
RollToClusterResourceVersionResource · object[]

Present only when the version has resources whose delete-for-good is still pending (state stopping with delete_permanently): the roll does not bring those back. They can be of any kind the roll replays, not only stack members: a stack description or a SOPS key, for example. Each listed resource took the version's definition and stays stopping, and the pending delete removes it. Once that delete has finished, rolling the cluster to the version again restores it.