v13

latestOpenAPI 3.0.0zlibraw.githubusercontent.com2026-08-01265409652.5 KB
kubernetes

Get the Kubernetes cluster version and Portainer-relevant capabilities

Get the Kubernetes cluster version (major, minor, gitVersion, ...) as reported by the cluster's discovery API, augmented with capability flags Portainer uses to gate UI features (e.g. supportsPodRestart). Access policy: Authenticated user.

get/kubernetes/{id}/version

Path parameters

idinteger required

Environment(Endpoint) identifier

Response

Success

buildDatestring
compilerstring
emulationMajorstring

EmulationMajor is the major version of the emulation version

emulationMinorstring

EmulationMinor is the minor version of the emulation version

gitCommitstring
gitTreeStatestring
gitVersionstring
goVersionstring
majorstring

Major is the major version of the binary version

minCompatibilityMajorstring

MinCompatibilityMajor is the major version of the minimum compatibility version

minCompatibilityMinorstring

MinCompatibilityMinor is the minor version of the minimum compatibility version

minorstring

Minor is the minor version of the binary version

platformstring
supportsPodRestartboolean

SupportsPodRestart is true when the cluster exposes the pods/restart subresource via API discovery — i.e. the feature gate is enabled and the cluster version is recent enough. This is the authoritative signal for whether Portainer can call the pod-restart endpoint, and is preferred over a raw Kubernetes-version comparison.