Call the DescribeClustersV1 API to retrieve a list of ACK clusters in your account based on 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 cluster name. |
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 |
The cluster subtype. This parameter applies only when
|
Default |
| cluster_spec |
string |
No |
The cluster specification. This parameter applies only when
Pro XL, Pro 2XL, and Pro 4XL are three tiers of the ACK Pro provisioned control plane. These tiers pre-allocate and pin dedicated control plane resources to ensure consistently high performance for API server requests and pod scheduling. They are ideal for AI training and inference, very large clusters, and mission-critical workloads. See cluster management fee for information about costs for Pro Edition clusters and clusters that use a provisioned control plane. |
ack.pro.small |
| region_id |
string |
No |
The cluster region. Use this parameter to filter for clusters in a specific region. |
cn-hangzhou |
| cluster_id |
string |
No |
The cluster ID. |
c3fb96524f9274b4495df0f12a6b5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The data returned. |
||
| clusters |
array<object> |
The list of clusters. |
|
|
array<object> |
The details of a cluster. |
||
| cluster_id |
string |
The ID of the cluster. |
c3fb96524f9274b4495df0f12a6b5**** |
| cluster_type |
string |
The type of the cluster. |
Kubernetes |
| created |
string |
The time the cluster was created. |
2025-04-07T09:57:26+08:00 |
| init_version |
string |
The initial Kubernetes version of the cluster. For more information about the Kubernetes versions supported by ACK, see Overview of Kubernetes versions. |
1.32.1-aliyun.1 |
| current_version |
string |
The current Kubernetes version of the cluster. |
1.32.1-aliyun.1 |
| next_version |
string |
The version that the cluster can be upgraded to. |
1.xx.x-aliyun.1 |
| deletion_protection |
boolean |
Specifies whether deletion protection is enabled for the cluster. This feature prevents you from accidentally deleting a 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 load balancer instance that is used as the ingress. The default instance type is slb.s1.small (guaranteed-performance). |
lb-2vcrbmlevo6kjpgch**** |
| master_url |
string |
The cluster's API server endpoint, which includes both internal and public endpoints. |
{\"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 for the cluster. Valid values:
|
false |
| profile |
string |
The subtype of the cluster. |
Default |
| region_id |
string |
The ID of the region in which 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 pod CIDR block. This parameter is used for Flannel network configurations. |
172.20.xx.xx/16 |
| service_cidr |
string |
The service CIDR block. |
172.21.xx.xx/20 |
| proxy_mode |
string |
The proxy mode of kube-proxy.
|
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 master and worker nodes in the cluster. |
5 |
| state |
string |
The state of the cluster. Valid values:
|
running |
subnet_cidr
deprecated
|
string |
Deprecated. Use the container_cidr parameter instead. |
null |
| tags |
array |
The tags attached to the cluster. |
|
| tag |
The details of a tag. |
||
| updated |
string |
The time 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. |
vsw-2vc41xuumx5z2rdma****,vsw-2vc41xuumx5z2rdma**** |
| vswitch_ids |
array |
The IDs of the vSwitches used for the control plane. |
|
|
string |
The ID of a vSwitch used for the control plane. |
vsw-2vc41xuumx5z2rdma**** |
|
worker_ram_role_name
deprecated
|
string |
The name of the worker RAM role that grants permissions to the worker nodes. |
KubernetesWorkerRole-ec87d15b-edca-4302-933f-c8a16bf0**** |
zone_id
deprecated
|
string |
The ID of the availability zone in which the cluster is deployed. |
cn-beijing-b |
| cluster_spec |
string |
The specification of the cluster. |
ack.standard |
| maintenance_window | maintenance_window |
The maintenance window of the cluster. This feature is available only in ACK managed clusters and ACK Serverless clusters. |
|
| operation_policy |
object |
The automatic O&M policy of the cluster. |
|
| cluster_auto_upgrade |
object |
The auto-upgrade settings of the cluster. |
|
| enabled |
boolean |
Specifies whether to enable auto-upgrade for the cluster. |
true |
| channel |
string |
The auto-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 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.