Skip to main content
GET
Get current Kubernetes 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

Path Parameters

cluster_id
string<uuid>
required

Response

Kubernetes version retrieved successfully

current_version
string | null
required
distribution
string
required
auto_patch_upgrade_enabled
boolean
default:false
auto_patch_upgrade_last_run_at
string<date-time> | null

When the automatic patch-upgrade sweep last judged the cluster; null until it first does, and again whenever automatic patch upgrades are turned on or off.

auto_patch_upgrade_last_run_detail
string | null

Why the sweep decided what auto_patch_upgrade_last_run_status says: the version it started and anything it went on without, the refusal, which checks could not read what, or why starting the upgrade failed; null when the sweep has not judged the cluster or recorded no reason.

auto_patch_upgrade_last_run_status
string | null

What the sweep last decided: initiated (it started a patch upgrade), up_to_date (no newer patch), skipped (it started nothing for a reason that does not pass on its own: the upgrade preflight refused the hop, a choice leaves it for a person, or the cluster cannot be patched automatically; looked at again after a day), unknown (the upgrade preflight could not judge the hop: a check could not read what it judges, or the gate could not be asked; asked again after an hour) or failed (starting the upgrade failed); null until the sweep first judges the cluster.

desired_version
string | null
nodes
K8sNodeVersion · object[]
observed_version
string | null
upgrade_execution
K8sUpgradeExecution · object | null

The execution that owns the rollout to the cluster's desired version, with the park its steps recorded.

version_drift
boolean
default:false