DescribeClustersForRegion

Updated at:

Queries all clusters in a specified region.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

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.

cn-hangzhou

Request parameters

Parameter

Type

Required

Description

Example

name

string

No

The cluster name used for fuzzy search.

test-cluster

cluster_type

string

No

Queries clusters of a specified type. Valid values:

  • Kubernetes: ACK dedicated cluster.

  • ManagedKubernetes: ACK managed clusters, including ACK managed clusters (ACK Pro and ACK Basic), ACK Serverless clusters (Pro and Basic), ACK Edge clusters (Pro and Basic), and ACK Lingjun clusters (Pro).

  • ExternalKubernetes: Registered cluster.

Valid values:

  • ExternalKubernetes :

    ExternalKubernetes

  • ManagedKubernetes :

    ManagedKubernetes

  • Kubernetes :

    Kubernetes

Kubernetes

page_size

integer

No

The number of entries per page.

3

page_number

integer

No

The page number.

10

profile

string

No

Queries clusters of a specified subtype. Valid values:

  • Default: ACK managed clusters, including ACK Pro and ACK Basic.

  • Edge: ACK Edge clusters, including ACK Edge Pro and ACK Edge Basic.

  • Serverless: ACK Serverless clusters, including ACK Serverless Pro and ACK Serverless Basic.

  • LingJun: ACK Lingjun clusters, which provide the Pro edition.

Valid values:

  • LingJun :

    LingJun

  • Serverless :

    Serverless

  • Default :

    Default

  • Edge :

    Edge

Serverless

cluster_spec

string

No

Queries clusters of specified specifications. Valid values:

  • ack.standard: Basic edition.

  • ack.pro.small: Pro edition.

  • ack.pro.xlarge: Pro XL.

  • ack.pro.2xlarge: Pro 2XL.

  • ack.pro.4xlarge: Pro 4XL. You must contact customer service to apply for whitelist access.

Pro XL, Pro 2XL, and Pro 4XL are the three tiers provided by the ACK Pro provisioned control plane. By pre-allocating and dedicating control plane resources, these tiers ensure that API concurrency and pod scheduling capabilities remain consistently at a high level. They are suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads.

For the cluster management fees of the Pro edition and provisioned control plane editions, see Cluster management fees.

Valid values:

  • ack.pro.small :

    ack.pro.small

  • ack.standard :

    ack.standard

ack.standard

cluster_id

string

No

The cluster ID.

c8155823d057948c69a****

Response elements

Element

Type

Description

Example

object

The response body.

clusters

array<object>

The list of cluster details.

object

The cluster details.

cluster_domain

string

The local domain name of the cluster.

cluster.local

cluster_id

string

The cluster ID.

c905d1364c2dd4b6284a3f41790c4****

cluster_spec

string

The specification of the cluster. Valid values:

  • ack.standard: Basic Edition.

  • ack.pro.small: Pro Edition.

  • ack.pro.xlarge: Pro XL.

  • ack.pro.2xlarge: Pro 2XL.

  • ack.pro.4xlarge: Pro 4XL. To use this specification, contact customer service to apply for whitelist access.

Pro XL, Pro 2XL, and Pro 4XL are the three tiers provided by the ACK Pro provisioned control plane. By pre-allocating and reserving control plane resources, these tiers ensure that API concurrency and pod scheduling capabilities remain consistently high. They are suitable for AI training and inference, ultra-large-scale clusters, and mission-critical workloads.

For more information about the cluster management fees for Pro Edition and provisioned control plane clusters, see Cluster management fees.

ack.standard

cluster_type

string

The cluster type. Valid values:

  • Kubernetes: dedicated ACK cluster.

  • ManagedKubernetes: managed ACK cluster, including ACK managed clusters (Pro Edition and Basic Edition), ACK Serverless clusters (Pro Edition and Basic Edition), ACK Edge clusters (Pro Edition and Basic Edition), and ACK Lingjun clusters (Pro Edition).

  • ExternalKubernetes: registered cluster.

ManagedKubernetes

container_cidr

string

The CIDR block for pods in the cluster.

172.20.0.0/16

created

string

The time when the cluster was created.

2020-12-01T20:40:40+08:00

current_version

string

The current version of the cluster.

1.16.6-aliyun.1

deletion_protection

boolean

Indicates whether deletion protection is enabled for the cluster to prevent accidental deletion through the console or API. Valid values:

  • true: Deletion protection is enabled. The cluster cannot be deleted through the console or API.

  • false: Deletion protection is disabled. The cluster can be deleted through the console or API.

false

init_version

string

The initial version of the cluster.

1.16.6-aliyun.1

ip_stack

string

The IP stack of the cluster. Valid values:

  • ipv4: The cluster supports only the IPv4 stack.

  • dual: The cluster supports both the IPv4 and IPv6 stacks.

Valid values:

  • ipv4
  • dual

ipv4

name

string

The name of the cluster.

test-cluster

next_version

string

The version to which the cluster can be upgraded.

1.18.8-aliyun.1

profile

string

The subtype of the cluster. Valid values:

  • Default: ACK managed cluster, including ACK managed cluster Pro Edition and Basic Edition.

  • Edge: ACK Edge cluster, including ACK Edge cluster Pro Edition and Basic Edition.

  • Serverless: ACK Serverless cluster, including ACK Serverless cluster Pro Edition and Basic Edition.

  • LingJun: ACK Lingjun cluster, which provides only Pro Edition.

Default

proxy_mode

string

The kube-proxy mode of the cluster.

Valid values:

  • iptables :

    iptables

  • ipvs :

    ipvs

ipvs

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 ID of the security group to which the cluster belongs.

sg-2zeihch86ooz9io4****

service_cidr

string

The CIDR block for services.

172.21.0.0/20

size

integer

The number of nodes in the cluster.

2

state

string

The running status of the cluster. Valid values:

  • initial: The cluster is being created.

  • failed: The cluster failed to be created.

  • running: The cluster is running.

  • updating: The cluster is being updated.

  • upgrading: The cluster is being upgraded.

  • removing: Nodes are being removed from the cluster.

  • draining: Nodes are being drained.

  • scaling: The cluster is being scaled.

  • inactive: The cluster is inactive.

  • unavailable: The cluster is unavailable.

  • deleting: The cluster is being deleted.

  • deleted: The cluster is deleted.

  • delete_failed: The cluster failed to be deleted.

  • waiting: The cluster is waiting for the accessed state.

  • disconnected: The cluster is disconnected.

running

support_policy

string

The version support policy of the cluster. The values are case-sensitive. Valid values:

  • Standard: standard support.

  • Extended: extended support. After the standard support period ends, the cluster enters the extended support period and continues to receive CVE patch updates. If this policy is not configured for an existing cluster, Standard is returned.

Extended

tags

array

The list of tags for the cluster.

tag

The cluster tag.

timezone

string

The time zone.

Asia/Shanghai

updated

string

The time when the cluster was last updated.

2020-12-08T15:37:00+08:00

vpc_id

string

The ID of the VPC where the cluster is deployed.

vpc-2zeg8nf1ukc0fcmvq****

vswitch_ids

array

The list of vSwitches for the cluster control plane.

string

The vSwitch for the cluster control plane.

vsw-2vc41xuumx5z2rdma****

page_info

object

The pagination information.

page_number

integer

The page number.

1

page_size

integer

The number of entries per page.

10

total_count

integer

The total number of results.

10

Examples

Success response

JSON format

{
  "clusters": [
    {
      "cluster_domain": "cluster.local",
      "cluster_id": "c905d1364c2dd4b6284a3f41790c4****",
      "cluster_spec": "ack.standard",
      "cluster_type": "ManagedKubernetes",
      "container_cidr": "172.20.0.0/16",
      "created": "2020-12-01T20:40:40+08:00",
      "current_version": "1.16.6-aliyun.1",
      "deletion_protection": false,
      "init_version": "1.16.6-aliyun.1",
      "ip_stack": "ipv4",
      "name": "test-cluster",
      "next_version": "1.18.8-aliyun.1",
      "profile": "Default",
      "proxy_mode": "ipvs",
      "region_id": "cn-beijing-a",
      "resource_group_id": "rg-acfmyvw3wjm****",
      "security_group_id": "sg-2zeihch86ooz9io4****",
      "service_cidr": "172.21.0.0/20",
      "size": 2,
      "state": "running",
      "support_policy": "Extended",
      "tags": [
        {
          "key": "env",
          "value": "prod"
        }
      ],
      "timezone": "Asia/Shanghai",
      "updated": "2020-12-08T15:37:00+08:00",
      "vpc_id": "vpc-2zeg8nf1ukc0fcmvq****",
      "vswitch_ids": [
        "vsw-2vc41xuumx5z2rdma****"
      ]
    }
  ],
  "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.