Lists all clusters in a specified region.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClustersForRegion |
list |
*All Resource
|
None | None |
Request syntax
GET /regions/{region_id}/clusters HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| region_id |
string |
Yes |
The region ID. |
cn-hangzhou |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| name |
string |
No |
The name of the cluster. Fuzzy search is supported. |
test-cluster |
| cluster_type |
string |
No |
The type of the cluster. Valid values:
Valid values:
|
Kubernetes |
| page_size |
integer |
No |
The number of entries to return on each page. |
3 |
| page_number |
integer |
No |
The page number to return. |
10 |
| profile |
string |
No |
The subtype of the cluster. Valid values:
Valid values:
|
Serverless |
| cluster_spec |
string |
No |
The specification of the cluster. Valid values:
Pro XL, Pro 2XL, and Pro 4XL are three specifications available for the ACK Pro provisioned control plane. These specifications ensure a high and deterministic level of API concurrency and Pod scheduling capabilities by pre-allocating and dedicating control plane resources. They are suitable for AI training and inference, large-scale clusters, and mission-critical workloads. For information about the cluster management fees for Pro Edition and provisioned control plane clusters, see cluster management fee. Valid values:
|
ack.standard |
| cluster_id |
string |
No |
The ID of the cluster. |
c8155823d057948c69a**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The returned data. |
||
| clusters |
array<object> |
A list of clusters. |
|
|
object |
The details of a cluster. |
||
| cluster_id |
string |
The cluster ID. |
c905d1364c2dd4b6284a3f41790c4**** |
| cluster_type |
string |
The type of the cluster. Valid values:
|
ManagedKubernetes |
| created |
string |
The time the cluster was created. |
2020-12-01T20:40:40+08:00 |
| init_version |
string |
The initial version of the cluster. |
1.16.6-aliyun.1 |
| current_version |
string |
The current version of the cluster. |
1.16.6-aliyun.1 |
| next_version |
string |
The available upgrade version. |
1.18.8-aliyun.1 |
| deletion_protection |
boolean |
Specifies whether deletion protection is enabled for the cluster. If enabled, you cannot delete the cluster from the console or by an API call. Valid values:
|
false |
| name |
string |
The cluster name. |
test-cluster |
| profile |
string |
The subtype of the cluster. Valid values:
|
Default |
| region_id |
string |
The region ID. |
cn-beijing-a |
| resource_group_id |
string |
The ID of the resource group to which the cluster belongs. |
rg-acfmyvw3wjm**** |
| security_group_id |
string |
The security group ID of the cluster. |
sg-2zeihch86ooz9io4**** |
| container_cidr |
string |
The CIDR block for Pods in the cluster. |
172.20.0.0/16 |
| service_cidr |
string |
The CIDR block for the service network. |
172.21.0.0/20 |
| proxy_mode |
string |
The kube-proxy proxy mode of the cluster. Valid values:
|
ipvs |
| timezone |
string |
The time zone of the cluster. |
Asia/Shanghai |
| ip_stack |
string |
The IP stack of the cluster. |
ipv4 |
| cluster_domain |
string |
The cluster domain. |
cluster.local |
| size |
integer |
The number of nodes in the cluster. |
2 |
| state |
string |
The state of the cluster. Valid values:
|
running |
| tags |
array |
The tags attached to the cluster. |
|
| tag |
A tag attached to the cluster. |
||
| updated |
string |
The time the cluster was last updated. |
2020-12-08T15:37:00+08:00 |
| vpc_id |
string |
The VPC ID of the cluster. |
vpc-2zeg8nf1ukc0fcmvq**** |
| vswitch_ids |
array |
The IDs of the vSwitches for the control plane. |
|
|
string |
The ID of a vSwitch for the control plane. |
vsw-2vc41xuumx5z2rdma**** |
|
| cluster_spec |
string |
The specification of the cluster. Valid values:
Pro XL, Pro 2XL, and Pro 4XL are three specifications available for the ACK Pro provisioned control plane. These specifications ensure a high and deterministic level of API concurrency and Pod scheduling capabilities by pre-allocating and dedicating control plane resources. They are suitable for AI training and inference, large-scale clusters, and mission-critical workloads. For information about the cluster management fee for Pro Edition and ACK Pro provisioned control plane specifications, see the linked topic. |
ack.standard |
| page_info |
object |
The pagination information. |
|
| page_number |
integer |
The returned page number. |
1 |
| page_size |
integer |
The number of entries per page. |
10 |
| total_count |
integer |
The total number of entries that match the query. |
10 |
Examples
Success response
JSON format
{
"clusters": [
{
"cluster_id": "c905d1364c2dd4b6284a3f41790c4****",
"cluster_type": "ManagedKubernetes",
"created": "2020-12-01T20:40:40+08:00",
"init_version": "1.16.6-aliyun.1",
"current_version": "1.16.6-aliyun.1",
"next_version": "1.18.8-aliyun.1",
"deletion_protection": false,
"name": "test-cluster",
"profile": "Default",
"region_id": "cn-beijing-a",
"resource_group_id": "rg-acfmyvw3wjm****",
"security_group_id": "sg-2zeihch86ooz9io4****",
"container_cidr": "172.20.0.0/16",
"service_cidr": "172.21.0.0/20",
"proxy_mode": "ipvs",
"timezone": "Asia/Shanghai",
"ip_stack": "ipv4",
"cluster_domain": "cluster.local",
"size": 2,
"state": "running",
"tags": [
{
"key": "env",
"value": "prod"
}
],
"updated": "2020-12-08T15:37:00+08:00",
"vpc_id": "vpc-2zeg8nf1ukc0fcmvq****",
"vswitch_ids": [
"vsw-2vc41xuumx5z2rdma****"
],
"cluster_spec": "ack.standard"
}
],
"page_info": {
"page_number": 1,
"page_size": 10,
"total_count": 10
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.