You can call DescribeKubernetesVersionMetadata to query the details of a cluster version.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameter types

This operation uses only common request parameters. For more information, see Common parameters.

Request syntax

get /api/v1/metadata/versions http|https

Request parameters

Parameter Type Required Example Description
Region String Yes cn-beijing

The ID of the region.

MultiAZ Boolean No false

Specifies whether to query a multi-zone cluster.

ClusterType String Yes Kubernetest

The type of the cluster. For more information about the cluster types, see Create a cluster.

KubernetesVersion String No 1.16.9-aliyun.1

The version of the cluster. For example, 1.16.9-aliyun.1.

Profile String No Default

The identifier of an edge cluster.

  • Default: The cluster is not an edge cluster.
  • Edge: The cluster is an edge cluster.

Response parameters

Parameter Type Example Description
Array of data

The returned data.

capabilities Object

The features of the cluster version.

images Array

The system images of the Elastic Compute Service (ECS) instances.

image_id String "centos_7_7_x64_20G_alibase_20200426.vhd"

The ID of the image.

image_name String "CentOS 7.7"

The name of the image.

image_type String "centos_7_7_2"

The type of the image.

os_type String "Linux"

The type of the operating system. Valid values: Windows and Linux. Default value: Linux.

os_version String "7.7"

The version number of the operating system.

platform String "CentOS"

The release version of the operating system. Valid values: CentOS, AliyunLinux, Windows, and WindowsCore.

meta_data Object

The metadata of the cluster version.

multi_az String "false"

Indicates whether the cluster is a multi-zone cluster.

runtimes Array

The configuration of the container runtime.

name String "docker"

The name of the container runtime.

version String "19.05.3"

The version of the container runtime.

version String "1.16.9-aliyun.1"

The version of the cluster.


Sample requests

GET /api/v1/metadata/versions HTTP/1.1

Sample success responses

XML format

        <image_name>CentOS 7.7</image_name>

JSON format

                "image_name":"CentOS 7.7",

Error codes

For a list of error codes, visit the API Error Center.