Skip to main content

List Kubernetes Cluster Versions

GET https://infrahub-api.nexgencloud.com/v1/core/clusters/versions

Retrieve a list of supported Kubernetes versions that can be used in the kubernetes_version field of the Create Cluster API when deploying a cluster.


Parameters


No parameters.


Attributes


status boolean

Indicates the result of the request to list compatible Kubernetes versions. true signifies success, while false indicates an error.


message string

A description of the status of the request.


versions array

An array listing the compatible Kubernetes cluster versions.

Example request
curl -X GET "https://infrahub-api.nexgencloud.com/v1/core/clusters/versions" \
-H "accept: application/json"\
-H "api_key: YOUR API KEY"
  • To authenticate Infrahub API requests, add an api_key header to your API request that contains an API Key.
Response
{
"status": true,
"message": "Retrieved Cluster Versions.",
"versions": [
"1.27.8"
]
}

Returns


Returns the request status and an array of versions, which lists the compatible Kubernetes versions that can be used for cluster deployment.


Back to top