Queries a list of ACK clusters that meet specified conditions, such as cluster type and cluster specification, within the current account.
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 records per page. |
10 |
| page_number |
integer |
No |
The current page number. |
1 |
| profile |
string |
No |
When you set
|
Default |
| cluster_spec |
string |
No |
The cluster specification when
Pro XL, Pro 2XL, and Pro 4XL are three tiers provided by ACK Pro Provisioned Control Plane. By pre-allocating and dedicating control plane resources, these tiers ensure that API concurrency and pod scheduling capabilities remain at a consistently high level. 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 region of the cluster. Specify this parameter to filter the cluster list by region. |
cn-hangzhou |
| cluster_id |
string |
No |
The cluster ID. |
c3fb96524f9274b4495df0f12a6b5**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| clusters |
array<object> |
The list of cluster information. |
|
|
array<object> |
The cluster instance. |
||
| cluster_domain |
string |
The local domain name of the cluster. |
cluster.local |
| cluster_id |
string |
The cluster ID. |
c3fb96524f9274b4495df0f12a6b5**** |
| cluster_spec |
string |
The cluster specification. |
ack.standard |
| cluster_type |
string |
The cluster type. |
Kubernetes |
| container_cidr |
string |
The CIDR block of pods. This is the Flannel network configuration. |
172.20.xx.xx/16 |
| created |
string |
The time when the cluster was created. |
2025-04-07T09:57:26+08:00 |
| current_version |
string |
The current version of the cluster. |
1.32.1-aliyun.1 |
| deletion_protection |
boolean |
Indicates whether deletion protection is enabled for the cluster. Deletion protection prevents the cluster from being accidentally deleted in the console or by calling API operations. Valid values:
|
true |
docker_version
deprecated
|
string |
The Docker version used by the cluster. |
19.03.5 |
external_loadbalancer_id
deprecated
|
string |
The SLB instance associated with the Ingress of the cluster. Default instance type: guaranteed-performance instance (slb.s1.small). |
lb-2vcrbmlevo6kjpgch**** |
| init_version |
string |
The initial version of the cluster. For more information about the Kubernetes versions supported by ACK, see Kubernetes version release overview. |
1.32.1-aliyun.1 |
| ip_stack |
string |
The IP protocol stack of the cluster. Valid values:
|
ipv4 |
| maintenance_window | maintenance_window |
The maintenance window of the cluster. This feature takes effect only for ACK managed clusters and ACK Serverless clusters. |
|
| master_url |
string |
The access addresses of the cluster API server, including the internal network access address and the public network access address. |
{\"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 cluster name. |
cluster-demo |
network_mode
deprecated
|
string |
The network mode of the cluster. Valid values:
|
vpc |
| next_version |
string |
The version to which the cluster can be upgraded. |
1.xx.x-aliyun.1 |
| operation_policy |
object |
The automatic O&M policy of the cluster. |
|
| cluster_auto_upgrade |
object |
The cluster auto-upgrade configuration. |
|
| channel |
string |
The auto-upgrade frequency of the cluster. For more information, see Upgrade frequency. Valid values:
|
patch |
| enabled |
boolean |
Indicates whether cluster auto-upgrade is enabled. |
true |
private_zone
deprecated
|
boolean |
The Private Zone configuration of the cluster. Valid values:
|
false |
| profile |
string |
The subtype of the cluster. |
Default |
| proxy_mode |
string |
The kube-proxy mode. Valid values:
|
ipvs |
| 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 associated with the cluster. |
sg-2vcgwsrwgt5mp0yi**** |
| service_cidr |
string |
The CIDR block of Services. |
172.21.xx.xx/20 |
| size |
integer |
The current number of nodes in the cluster, including master nodes and worker nodes. |
5 |
| state |
string |
The running status of the cluster. Valid values:
|
running |
subnet_cidr
deprecated
|
string |
[Deprecated] Use container_cidr to obtain the Pod CIDR block. |
null |
| tags |
array |
The resource tags of the cluster. |
|
| tag |
The resource tags of the cluster. |
||
| timezone |
string |
The time zone. |
Asia/Shanghai |
| 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 associated with the cluster. |
vpc-2vcg932hsxsxuqbgl**** |
vswitch_id
deprecated
|
string |
The vSwitch ID of the cluster. |
vsw-2vc41xuumx5z2rdma****,vsw-2vc41xuumx5z2rdma**** |
| vswitch_ids |
array |
The vSwitches for the cluster control plane. |
|
|
string |
The vSwitches for the cluster control plane. |
vsw-2vc41xuumx5z2rdma**** |
|
worker_ram_role_name
deprecated
|
string |
The name of the Worker RAM role that authorizes ECS instances to serve as cluster worker nodes. |
KubernetesWorkerRole-ec87d15b-edca-4302-933f-c8a16bf0**** |
zone_id
deprecated
|
string |
The zone ID of the cluster. |
cn-beijing-b |
| 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 results. |
50 |
Examples
Success response
JSON format
{
"clusters": [
{
"cluster_domain": "cluster.local",
"cluster_id": "c3fb96524f9274b4495df0f12a6b5****",
"cluster_spec": "ack.standard",
"cluster_type": "Kubernetes",
"container_cidr": "172.20.xx.xx/16",
"created": "2025-04-07T09:57:26+08:00",
"current_version": "1.32.1-aliyun.1",
"deletion_protection": true,
"docker_version": "19.03.5",
"external_loadbalancer_id": "lb-2vcrbmlevo6kjpgch****",
"init_version": "1.32.1-aliyun.1",
"ip_stack": "ipv4",
"maintenance_window": {
"duration": "3h",
"enable": false,
"exclusions": [
{
"description": "All changes are prohibited during the freeze period",
"end_time": "2026-11-15T00:00:00+08:00",
"scope": "NoOperations",
"start_time": "2026-11-01T00:00:00+08:00"
}
],
"maintenance_time": "2020-10-15T12:31:00.000+08:00",
"recurrence": "FREQ=WEEKLY;INTERVAL=4;BYDAY=MO,TU",
"weekly_period": "Monday,Thursday"
},
"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",
"next_version": "1.xx.x-aliyun.1",
"operation_policy": {
"cluster_auto_upgrade": {
"channel": "patch",
"enabled": true
}
},
"private_zone": false,
"profile": "Default",
"proxy_mode": "ipvs",
"region_id": "cn-beijing",
"resource_group_id": "rg-acfmyvw3wjm****",
"security_group_id": "sg-2vcgwsrwgt5mp0yi****",
"service_cidr": "172.21.xx.xx/20",
"size": 5,
"state": "running",
"subnet_cidr": "null",
"tags": [
{
"key": "env",
"value": "prod"
}
],
"timezone": "Asia/Shanghai",
"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"
}
],
"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.