Queries the detailed information about Kubernetes versions, including the version number, release date, expiration date, compatible OSs, and runtime.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeKubernetesVersionMetadata |
get |
*All Resource
|
None | None |
Request syntax
GET /api/v1/metadata/versions HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
Yes |
The region ID of the cluster. |
cn-beijing |
| ClusterType |
string |
Yes |
The cluster type that you want to use. Valid values:
|
Kubernetes |
| KubernetesVersion |
string |
No |
The Kubernetes version of the cluster. The Kubernetes versions supported by ACK are the same as the Kubernetes versions supported by open source Kubernetes. We recommend that you specify the latest Kubernetes version. If you do not configure this parameter, the latest Kubernetes version is used. For more information about the Kubernetes versions supported by ACK, see Release notes for Kubernetes versions. |
1.32.1-aliyun.1 |
| Profile |
string |
No |
The scenario where clusters are used. Valid values:
Default value: |
Default |
| runtime |
string |
No |
The container runtime type that you want to use. You can specify a runtime type to query only OS images that support the runtime type. Valid values:
If you specify a runtime type, only the OS images that support the specified runtime type are returned. Otherwise, all OS images are returned. |
containerd |
| Mode |
string |
No |
The query mode. Valid values:
If you specify If you do not specify a query mode, Kubernetes versions of clusters that you can create are returned. |
supported |
| QueryUpgradableVersion |
boolean |
No |
Specifies whether to query the Kubernetes versions available for updates. This parameter takes effect only when the KubernetesVersion parameter is specified.
|
1.30.1-aliyun.1 |
Response elements
|
Element |
Type |
Description |
Example |
|
array |
The details of the queried Kubernetes version. |
||
|
array<object> |
The Kubernetes version details. |
||
| capabilities |
object |
Features of the queried Kubernetes version. |
{ "AnyAZ": true, "ChargeType": "PostPaid" } |
| images |
array<object> |
The OS images that are returned. |
|
|
object |
The details of the image. |
||
| image_id |
string |
The ID of the image. |
aliyun_3_x64_20G_alibase_20241218.vhd |
| image_name |
string |
The image name. |
Alibaba Cloud Linux 3.2104 |
| platform |
string |
The OS platform. You can obtain the terminal ID by calling one of the following operations:
|
AliyunLinux |
| os_version |
string |
The version of the image. |
3.2104 |
| image_type |
string |
The type of operating system distribution that you want to use. We recommend that you use this parameter to specify the node operating system. You can obtain the terminal ID by calling one of the following operations:
|
AliyunLinux3 |
| os_type |
string |
The type of OS. Examples:
|
Linux |
| image_category |
string |
The type of image. Valid values:
|
system |
| architecture |
string |
The architecture of the image. |
x86_64 |
| meta_data |
object |
The metadata of the Kubernetes version. |
{ "KubernetesVersion": "1.31.1-aliyun.1", "SubClass": "default", "ServiceCIDR": "" } |
| runtimes |
array |
The container runtime configurations. |
|
| runtime |
The container runtime configurations. |
||
| version |
string |
The Kubernetes version supported by ACK. For more information, see Release notes for Kubernetes versions. |
1.31.1-aliyun.1 |
| release_date |
string |
The release date of the Kubernetes version. |
2025-01-30T00:00:00Z |
| expiration_date |
string |
The expiration date of the Kubernetes version. |
2026-01-30T00:00:00Z |
| creatable |
boolean |
Indicates whether you can create clusters that run the Kubernetes version. |
true |
| upgradable_versions |
array |
The list of available Kubernetes versions for updates. |
|
|
string |
The Kubernetes version available for updates. |
1.32.1-aliyun.1 |
Examples
Success response
JSON format
[
{
"capabilities": {
"AnyAZ": true,
"ChargeType": "PostPaid"
},
"images": [
{
"image_id": "aliyun_3_x64_20G_alibase_20241218.vhd",
"image_name": "Alibaba Cloud Linux 3.2104",
"platform": "AliyunLinux",
"os_version": "3.2104",
"image_type": "AliyunLinux3",
"os_type": "Linux",
"image_category": "system",
"architecture": "x86_64"
}
],
"meta_data": {
"KubernetesVersion": "1.31.1-aliyun.1",
"SubClass": "default",
"ServiceCIDR": ""
},
"runtimes": [
{
"name": "containerd",
"version": "1.6.20"
}
],
"version": "1.31.1-aliyun.1",
"release_date": "2025-01-30T00:00:00Z",
"expiration_date": "2026-01-30T00:00:00Z",
"creatable": true,
"upgradable_versions": [
"1.32.1-aliyun.1"
]
}
]
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.