Use the DescribeClustersV1 API to list ACK clusters by criteria such as cluster type and cluster specification.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:GetClusters |
get |
*Cluster
|
None | None |
Request syntax
GET /api/v1/clusters HTTP/1.1
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the cluster. |
cluster-demo |
| cluster_type |
string |
No |
The cluster type.
|
Kubernetes |
| page_size |
integer |
No |
The number of entries per page. |
10 |
| page_number |
integer |
No |
The page number. |
1 |
| profile |
string |
No |
When
|
Default |
| cluster_spec |
string |
No |
The cluster specification. This parameter is valid only when
Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by the ACK Pro provisioned control plane. These tiers pre-allocate and dedicate control plane resources to ensure a consistently high, predictable level of performance for API concurrency and pod scheduling. They are suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads. For information about the cluster management fees for Pro and provisioned control plane editions, see Cluster management fee. |
ack.pro.small |
| region_id |
string |
No |
The ID of the region to which the clusters belong. |
cn-hangzhou |
| cluster_id |
string |
No |
The cluster ID. |
c3fb96524f9274b4495df0f12a6b5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| clusters |
array<object> |
A list of clusters. |
|
|
array<object> |
A cluster. |
||
| cluster_id |
string |
The cluster ID. |
c3fb96524f9274b4495df0f12a6b5**** |
| cluster_type |
string |
The cluster type. |
Kubernetes |
| created |
string |
The time when the cluster was created. |
2025-04-07T09:57:26+08:00 |
| init_version |
string |
The initial version of the cluster. For information about the Kubernetes versions supported by ACK, see Kubernetes release overview. |
1.32.1-aliyun.1 |
| current_version |
string |
The current version of the cluster. |
1.32.1-aliyun.1 |
| next_version |
string |
The version to which the cluster can be upgraded. |
1.xx.x-aliyun.1 |
| deletion_protection |
boolean |
Indicates whether deletion protection is enabled. If deletion protection is enabled, you cannot delete the cluster in the console or by calling an API operation. Valid values:
|
true |
docker_version
deprecated
|
string |
The Docker version of the cluster. |
19.03.5 |
external_loadbalancer_id
deprecated
|
string |
The ID of the Server Load Balancer (SLB) instance that is used for the Ingress. Default instance specification: slb.s1.small (performance-guaranteed). |
lb-2vcrbmlevo6kjpgch**** |
| master_url |
string |
The endpoints of the API server. The endpoints include an internal endpoint and a public endpoint. |
{\"api_server_endpoint\":\"\",\"intranet_api_server_endpoint\":\"https://192.168.xx.xx:6443\"} |
| meta_data |
string |
The metadata of the cluster. |
{\"Addons\":[{\"config\":***}} |
| name |
string |
The name of the cluster. |
cluster-demo |
network_mode
deprecated
|
string |
The network mode of the cluster. Valid values:
|
vpc |
private_zone
deprecated
|
boolean |
Indicates whether PrivateZone is enabled. Valid values:
|
false |
| profile |
string |
The subtype of the cluster. |
Default |
| region_id |
string |
The ID of the region where the cluster is deployed. |
cn-beijing |
| resource_group_id |
string |
The ID of the resource group to which the cluster belongs. |
rg-acfmyvw3wjm**** |
| security_group_id |
string |
The ID of the security group to which the cluster belongs. |
sg-2vcgwsrwgt5mp0yi**** |
| container_cidr |
string |
The CIDR block of pods. This parameter is applicable to Flannel networks. |
172.20.xx.xx/16 |
| service_cidr |
string |
The CIDR block of Services. |
172.21.xx.xx/20 |
| proxy_mode |
string |
The kube-proxy proxy mode.
|
ipvs |
| timezone |
string |
The time zone of the cluster. |
Asia/Shanghai |
| ip_stack |
string |
The IP stack of the cluster. Valid values:
|
ipv4 |
| cluster_domain |
string |
The domain name of the cluster. |
cluster.local |
| size |
integer |
The total number of nodes in the cluster. This includes master nodes and worker nodes. |
5 |
| state |
string |
The state of the cluster. Valid values:
|
running |
subnet_cidr
deprecated
|
string |
This parameter is deprecated. Use the |
null |
| tags |
array |
The tags of the cluster. |
|
| tag |
The tags of the cluster. |
||
| updated |
string |
The time when the cluster was last updated. |
2025-04-07T09:57:26+08:00 |
| vpc_id |
string |
The ID of the VPC in which the cluster is deployed. |
vpc-2vcg932hsxsxuqbgl**** |
vswitch_id
deprecated
|
string |
The ID of the vSwitch to which the cluster belongs. |
vsw-2vc41xuumx5z2rdma****,vsw-2vc41xuumx5z2rdma**** |
| vswitch_ids |
array |
The vSwitches of the cluster control plane. |
|
|
string |
The vSwitches of the cluster control plane. |
vsw-2vc41xuumx5z2rdma**** |
|
worker_ram_role_name
deprecated
|
string |
The name of the worker RAM role. This role is used to authorize Elastic Compute Service (ECS) instances to be used as worker nodes. |
KubernetesWorkerRole-ec87d15b-edca-4302-933f-c8a16bf0**** |
zone_id
deprecated
|
string |
The ID of the zone in which the cluster is deployed. |
cn-beijing-b |
| cluster_spec |
string |
The edition of the cluster. |
ack.standard |
| maintenance_window | maintenance_window |
The maintenance window of the cluster. This feature is available only for ACK managed clusters and ACK Serverless clusters. |
|
| operation_policy |
object |
The auto O&M policy of the cluster. |
|
| cluster_auto_upgrade |
object |
The cluster auto-upgrade policy. |
|
| enabled |
boolean |
Indicates whether auto-upgrade is enabled for the cluster. |
true |
| channel |
string |
The upgrade channel. For more information, see Upgrade channels. Valid values:
|
patch |
| page_info |
object |
The pagination information. |
|
| page_number |
integer |
The page number. |
3 |
| page_size |
integer |
The number of entries per page. |
20 |
| total_count |
integer |
The total number of entries that were returned. |
50 |
Examples
Success response
JSON format
{
"clusters": [
{
"cluster_id": "c3fb96524f9274b4495df0f12a6b5****",
"cluster_type": "Kubernetes",
"created": "2025-04-07T09:57:26+08:00",
"init_version": "1.32.1-aliyun.1",
"current_version": "1.32.1-aliyun.1",
"next_version": "1.xx.x-aliyun.1",
"deletion_protection": true,
"docker_version": "19.03.5",
"external_loadbalancer_id": "lb-2vcrbmlevo6kjpgch****",
"master_url": "{\\\"api_server_endpoint\\\":\\\"\\\",\\\"intranet_api_server_endpoint\\\":\\\"https://192.168.xx.xx:6443\\\"}",
"meta_data": "{\\\"Addons\\\":[{\\\"config\\\":***}}",
"name": "cluster-demo",
"network_mode": "vpc",
"private_zone": false,
"profile": "Default",
"region_id": "cn-beijing",
"resource_group_id": "rg-acfmyvw3wjm****",
"security_group_id": "sg-2vcgwsrwgt5mp0yi****",
"container_cidr": "172.20.xx.xx/16",
"service_cidr": "172.21.xx.xx/20",
"proxy_mode": "ipvs",
"timezone": "Asia/Shanghai",
"ip_stack": "ipv4",
"cluster_domain": "cluster.local",
"size": 5,
"state": "running",
"subnet_cidr": "null",
"tags": [
{
"key": "env",
"value": "prod"
}
],
"updated": "2025-04-07T09:57:26+08:00",
"vpc_id": "vpc-2vcg932hsxsxuqbgl****",
"vswitch_id": "vsw-2vc41xuumx5z2rdma****,vsw-2vc41xuumx5z2rdma****",
"vswitch_ids": [
"vsw-2vc41xuumx5z2rdma****"
],
"worker_ram_role_name": "KubernetesWorkerRole-ec87d15b-edca-4302-933f-c8a16bf0****",
"zone_id": "cn-beijing-b",
"cluster_spec": "ack.standard",
"maintenance_window": {
"enable": false,
"maintenance_time": "2020-10-15T12:31:00.000+08:00",
"duration": "3h",
"weekly_period": "Monday,Thursday",
"recurrence": "FREQ=WEEKLY;INTERVAL=4;BYDAY=MO,TU"
},
"operation_policy": {
"cluster_auto_upgrade": {
"enabled": true,
"channel": "patch"
}
}
}
],
"page_info": {
"page_number": 3,
"page_size": 20,
"total_count": 50
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.