Queries the details of a specified cluster by cluster ID.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
cs:DescribeClusterDetail |
get |
*Cluster
|
None | None |
Request syntax
GET /clusters/{ClusterId} HTTP/1.1
Path Parameters
|
Parameter |
Type |
Required |
Description |
Example |
| ClusterId |
string |
Yes |
The cluster ID. |
cdde1f21ae22e483ebcb068a6eb7f**** |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
No parameters required.
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| cluster_id |
string |
The cluster ID. |
c82e6987e2961451182edacd74faf**** |
| 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 Kubernetes version of the cluster. |
1.32.1-aliyun.1 |
| current_version |
string |
The current Kubernetes version of the cluster. For more information about the Kubernetes versions supported by ACK, see Kubernetes version overview. |
1.32.1-aliyun.1 |
| next_version |
string |
The Kubernetes version to which the cluster can be upgraded. |
1.xx.x-aliyun.1 |
| deletion_protection |
boolean |
Indicates whether deletion protection is enabled for the cluster. Deletion protection prevents the cluster from being accidentally deleted through the console or API. Valid values:
|
true |
docker_version
deprecated
|
string |
The Docker version used in the cluster. |
19.03.5 |
external_loadbalancer_id
deprecated
|
string |
The instance ID of the Server Load Balancer (SLB) associated with the Ingress of the cluster. |
lb-2zehc05z3b8dwiifh**** |
| meta_data |
string |
The cluster metadata. |
\"Addons\":*** |
| name |
string |
The cluster name. |
cluster-demo |
network_mode
deprecated
|
string |
The network type used by the cluster, such as VPC. |
vpc |
| 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-25yq**** |
| size |
integer |
The number of nodes in the cluster, including master nodes and worker nodes. |
5 |
| state |
string |
The status of the cluster. Valid values:
|
running |
| tags |
array |
The resource tags of the cluster. |
|
| tag |
The resource tags of the cluster. |
||
| updated |
string |
The time when the cluster was last updated. |
2025-04-10T13:28:09+08:00 |
| vpc_id |
string |
The ID of the virtual private cloud (VPC) used by the cluster. This parameter is required when you create a cluster. |
vpc-2zecuu62b9zw7a7qn**** |
vswitch_id
deprecated
|
string |
The vSwitch ID. This field is deprecated. To query control plane vSwitches, use vswitch_ids. To query data plane vSwitches, use vswitch_ids in the node pool configuration. |
vsw-2zete8s4qocqg0mf6****,vsw-2zete8s4qocqg0mf6**** |
subnet_cidr
deprecated
|
string |
The pod CIDR block. |
172.20.xx.xx/16 |
zone_id
deprecated
|
string |
The ID of the zone where the cluster is deployed. |
cn-beijing-a |
| master_url |
string |
The access addresses of the cluster, including the internal network access address and public network access address. |
{\"intranet_api_server_endpoint\":\"https://192.168.xx.xx:6443\"***} |
private_zone
deprecated
|
boolean |
Indicates whether PrivateZone is enabled for the cluster.
Default value: false. |
false |
| profile |
string |
The cluster child class.
|
Default |
| cluster_spec |
string |
The specification of the cluster 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 fees. |
ack.pro.small |
| worker_ram_role_name |
string |
The name of the worker RAM role that authorizes ECS instances to serve as worker nodes of the cluster. |
KubernetesWorkerRole-ec87d15b-edca-4302-933f-c8a16bf0**** |
| maintenance_window | maintenance_window |
The maintenance window configuration of the cluster. This configuration takes effect only for managed clusters (ACK Pro clusters). |
|
parameters
deprecated
|
object |
The collection of Resource Orchestration Service (ROS) parameters for the cluster. |
|
|
string |
The ROS parameter. |
"ALIYUN::Region": "cn-qingdao" |
|
| container_cidr |
string |
The pod CIDR block, used for Flannel network configuration. |
172.20.xx.xx/16 |
| service_cidr |
string |
The service CIDR block. |
172.21.xx.xx/20 |
| proxy_mode |
string |
The kube-proxy mode.
|
ipvs |
| timezone |
string |
The time zone. |
Asia/Shanghai |
| node_cidr_mask |
string |
Applicable only to the Flannel network plugin. The subnet mask size assigned to each node, which controls the number of IP addresses that can be allocated to the node. |
26 |
| ip_stack |
string |
The IP protocol stack of the cluster. Valid values:
|
ipv4 |
| cluster_domain |
string |
The local domain name of the cluster. |
cluster.local |
| extra_sans |
array |
The custom Subject Alternative Name (SAN) for the API Server certificate. |
|
|
string |
The certificate SAN. |
192.168.xx.xx |
|
| rrsa_config |
object |
The RAM Roles for Service Accounts (RRSA) configuration. |
|
| enabled |
boolean |
Indicates whether RRSA is enabled. |
true |
| oidc_name |
string |
The name of the OIDC IdP. |
ack-rrsa-*** |
| oidc_arn |
string |
The Alibaba Cloud Resource Name (ARN) of the OIDC IdP. |
acs:ram::1138***:oidc-provider/ack-rrsa-*** |
| max_oidc_token_expiration |
string |
The maximum configurable validity period of the OIDC token. |
12h |
| audience |
string |
The default audience of the OIDC token. Multiple values are separated by commas (,). The values are included as an array in the aud field of the OIDC token. |
https://kubernetes.default.svc,https://example.***.com |
| issuer |
string |
The issuer information of the OIDC token. Multiple values are separated by commas (,). The first value becomes the value of the iss field in the OIDC token and the issuer URL of the OIDC IdP. |
https://oidc-ack-***,https://kubernetes.default.svc |
| open_api_configuration_url |
string |
The URL of the OIDC configuration document. |
https://oidc-ack-***/c12b990***/.well-known/openid-configuration |
| jwks_url |
string |
The URL of the OIDC public key information. |
https://oidc-ack-***/c12b990***/keys |
| vswitch_ids |
array |
The vSwitches used by the cluster control plane. |
|
|
string |
The vSwitches used by the cluster control plane. |
vsw-2zete8s4qocqg0mf6**** |
|
| operation_policy |
object |
The automatic O&M policy of the cluster. |
|
| cluster_auto_upgrade |
object |
The cluster auto upgrade configuration. |
|
| enabled |
boolean |
Whether cluster auto-upgrade is enabled. |
true |
| channel |
string |
Cluster auto-upgrade frequency. For more information, see Upgrade frequency. Valid values:
|
patch |
| control_plane_config |
object |
The control plane configuration for ACK dedicated clusters. |
|
| charge_type |
string |
The billing method of the control plane nodes. |
PrePaid |
| period |
integer |
The subscription duration of the nodes. |
1 |
| period_unit |
string |
The unit of the subscription duration. |
Month |
| auto_renew |
boolean |
Indicates whether auto-renewal is enabled for the nodes. |
true |
| auto_renew_period |
integer |
The auto-renewal period of the nodes. |
1 |
| instance_types |
array |
The instance types of the nodes. |
|
|
string |
The instance type. |
ecs.g6.large |
|
| image_type |
string |
The operating system image type. |
AliyunLinux3 |
| image_id |
string |
The image ID. |
aliyun_3_x64_20G_alibase_20240819 |
| key_pair |
string |
The name of the key pair. Specify either this parameter or login_password. |
ack |
| system_disk_category |
string |
The type of the system cloud disk for the nodes. |
cloud_essd |
| system_disk_size |
integer |
The size of the system cloud disk for the nodes. Minimum value: 40. |
120 |
| system_disk_snapshot_policy_id |
string |
The automatic snapshot backup policy for the nodes. |
sp-2zej1nogjvovnz4z**** |
| system_disk_performance_level |
string |
The performance level of the system cloud disk. This parameter takes effect only for ESSD cloud disks. |
PL1 |
| system_disk_provisioned_iops |
integer |
The provisioned read/write IOPS of the system cloud disk. |
1000 |
| system_disk_bursting_enabled |
boolean |
Indicates whether burst (I/O performance burst) is enabled for the system cloud disk. |
true |
| deploymentset_id |
string |
The deployment set ID. |
ds-bp10b35imuam5amw**** |
| cloud_monitor_flags |
boolean |
Indicates whether the CloudMonitor agent is installed on the nodes. |
true |
| soc_enabled |
boolean |
Indicates whether MLPS 2.0 security hardening is enabled. |
false |
| security_hardening_os |
boolean |
Indicates whether Alibaba Cloud OS security hardening is enabled. |
true |
| cpu_policy |
string |
The CPU management policy of the nodes. |
none |
| runtime |
string |
The container runtime name. |
containerd |
| node_port_range |
string |
The service port range of the nodes. |
30000-32767 |
| size |
integer |
The number of control plane nodes. |
3 |
| instance_metadata_options | InstanceMetadataOptions |
The metadata access configuration of the ECS instances. |
|
| auto_mode |
object |
The intelligent managed mode configuration. |
|
| enable |
boolean |
Indicates whether intelligent managed mode is enabled. |
false |
| control_plane_endpoints_config |
object |
The cluster connection configuration. |
|
| load_balancers_config |
array<object> |
The load balancing configuration for cluster access. |
|
|
object |
|||
| endpoint_type |
string |
||
| load_balancer_id |
string |
||
| endpoint |
string |
||
| internal_dns_config |
object |
The internal DNS configuration of the cluster, applicable to ACK managed clusters. The internal domain name is used by node-side system components such as kubelet and kube-proxy to access the API Server. If internal domain name access is not enabled, node-side system components access the API Server through the CLB IP address. |
|
| bind_vpcs |
array |
The VPC scope within which the internal DNS record resolution takes effect. The VPC where the cluster is located is included by default. |
|
|
string |
The VPC where the internal DNS record resolution takes effect. |
vpc-xxxxxx |
|
| enabled |
boolean |
Whether to enable internal DNS access for the cluster.
|
true |
Examples
Success response
JSON format
{
"cluster_id": "c82e6987e2961451182edacd74faf****",
"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-2zehc05z3b8dwiifh****",
"meta_data": "\\\"Addons\\\":***",
"name": "cluster-demo",
"network_mode": "vpc",
"region_id": "cn-beijing",
"resource_group_id": "rg-acfmyvw3wjm****",
"security_group_id": "sg-25yq****",
"size": 5,
"state": "running",
"tags": [
{
"key": "env",
"value": "prod"
}
],
"updated": "2025-04-10T13:28:09+08:00",
"vpc_id": "vpc-2zecuu62b9zw7a7qn****",
"vswitch_id": "vsw-2zete8s4qocqg0mf6****,vsw-2zete8s4qocqg0mf6****",
"subnet_cidr": "172.20.xx.xx/16",
"zone_id": "cn-beijing-a",
"master_url": "{\\\"intranet_api_server_endpoint\\\":\\\"https://192.168.xx.xx:6443\\\"***}",
"private_zone": false,
"profile": "Default",
"cluster_spec": "ack.pro.small",
"worker_ram_role_name": "KubernetesWorkerRole-ec87d15b-edca-4302-933f-c8a16bf0****",
"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"
},
"parameters": {
"key": "\"ALIYUN::Region\": \"cn-qingdao\""
},
"container_cidr": "172.20.xx.xx/16",
"service_cidr": "172.21.xx.xx/20",
"proxy_mode": "ipvs",
"timezone": "Asia/Shanghai",
"node_cidr_mask": "26",
"ip_stack": "ipv4",
"cluster_domain": "cluster.local",
"extra_sans": [
"192.168.xx.xx"
],
"rrsa_config": {
"enabled": true,
"oidc_name": "ack-rrsa-***",
"oidc_arn": "acs:ram::1138***:oidc-provider/ack-rrsa-***",
"max_oidc_token_expiration": "12h",
"audience": "https://kubernetes.default.svc,https://example.***.com",
"issuer": "https://oidc-ack-***,https://kubernetes.default.svc",
"open_api_configuration_url": "https://oidc-ack-***/c12b990***/.well-known/openid-configuration",
"jwks_url": "https://oidc-ack-***/c12b990***/keys"
},
"vswitch_ids": [
"vsw-2zete8s4qocqg0mf6****"
],
"operation_policy": {
"cluster_auto_upgrade": {
"enabled": true,
"channel": "patch"
}
},
"control_plane_config": {
"charge_type": "PrePaid",
"period": 1,
"period_unit": "Month",
"auto_renew": true,
"auto_renew_period": 1,
"instance_types": [
"ecs.g6.large"
],
"image_type": "AliyunLinux3",
"image_id": "aliyun_3_x64_20G_alibase_20240819",
"key_pair": "ack",
"system_disk_category": "cloud_essd",
"system_disk_size": 120,
"system_disk_snapshot_policy_id": "sp-2zej1nogjvovnz4z****",
"system_disk_performance_level": "PL1",
"system_disk_provisioned_iops": 1000,
"system_disk_bursting_enabled": true,
"deploymentset_id": "ds-bp10b35imuam5amw****",
"cloud_monitor_flags": true,
"soc_enabled": false,
"security_hardening_os": true,
"cpu_policy": "none",
"runtime": "containerd",
"node_port_range": "30000-32767",
"size": 3,
"instance_metadata_options": {
"http_tokens": "optional"
}
},
"auto_mode": {
"enable": false
},
"control_plane_endpoints_config": {
"load_balancers_config": [
{
"endpoint_type": "",
"load_balancer_id": "",
"endpoint": ""
}
],
"internal_dns_config": {
"bind_vpcs": [
"vpc-xxxxxx"
],
"enabled": true
}
}
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.