DescribeAckClusters

Updated at:

Queries a list of Alibaba Cloud Container Service for Kubernetes (ACK) clusters that meet specified conditions, such as cluster type and specifications.

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

yundun-cloudfirewall:DescribeAckClusters

get

*All Resource

*

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionNo

string

Yes

The region ID of the ACK cluster.

cn-hangzhou

MemberUid

string

No

The Alibaba Cloud account ID to which the ACK cluster resources belong.

135809047715****

PageSize

string

Yes

The number of entries to return on each page.

10

PageNo

string

Yes

The page number.

1

ClusterId

string

No

The ID of the ACK cluster.

cb0f5640b1b2d404cad6ba21509d7847b

ClusterName

string

No

The name of the ACK cluster.

ack-cluster-name

ClusterSpec

string

No

The specifications of the ACK cluster.

Valid values:

  • ack.pro.small :

    ACK Pro cluster.

ack.pro.small

ConnectorStatus

string

No

The instance status of the connector in the ACK cluster.

ready

Response elements

Element

Type

Description

Example

object

Clusters

array<object>

The list of ACK clusters.

object

The ACK cluster.

MemberUid

string

The Alibaba Cloud account ID to which the ACK cluster resources belong.

135809047715****

RegionId

string

The region ID of the ACK cluster.

cn-hangzhou

ClusterId

string

The ID of the ACK cluster.

cb0f5640b1b2d404cad6ba21509d7847b

ClusterName

string

The name of the ACK cluster.

ack-cluster-name

ClusterType

string

The type of the ACK cluster. Valid values:

  • ManagedKubernetes: managed ACK clusters, 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 clusters

  • Kubernetes: dedicated ACK clusters

Valid values:

  • ExternalKubernetes :

    Registered clusters.

  • ManagedKubernetes :

    Managed ACK clusters, 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).

  • Kubernetes :

    Dedicated ACK clusters.

ManagedKubernetes

Profile

string

When ClusterType is set to ManagedKubernetes (managed ACK clusters), this parameter indicates the subtype of the cluster. Valid values:

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

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

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

  • Lingjun: ACK Lingjun clusters, available only in Pro Edition

Valid values:

  • Lingjun :

    ACK Lingjun clusters, available only in Pro Edition.

  • Serverless :

    ACK Serverless clusters, including ACK Serverless clusters Pro Edition and Basic Edition.

  • Default :

    ACK managed clusters, including ACK managed clusters Pro Edition and Basic Edition.

  • Edge :

    ACK Edge clusters, including ACK Edge clusters Pro Edition and Basic Edition.

Default

VpcId

string

The ID of the VPC to which the ACK cluster belongs.

vpc-2vcg932hsxsxuqbgl****

Network

string

The network plug-in of the ACK cluster. Valid values:

  • terway-eniip: the Terway-eniip network plug-in

  • Flannel: the Flannel network plug-in

Valid values:

  • terway-eniip :

    Terway-eniip

  • Flannel :

    Flannel

terway-eniip

ClusterSpec

string

The specifications of the ACK cluster.

Valid values:

  • ack.pro.small :

    ACK Pro cluster.

ack.pro.small

State

string

The running status of the ACK cluster. Valid values:

  • initial: The cluster is being created.

  • running: The cluster is running.

  • scaling: The cluster is being scaled.

  • stopped: The cluster is stopped.

  • upgrading: The cluster is being upgraded.

  • updating: The cluster configurations are being updated.

  • deleting: The cluster is being deleted.

  • deleted: The cluster is deleted.

  • draining: Nodes are being drained.

  • removing: Nodes are being removed.

  • failed: The cluster failed to be created.

  • delete_failed: The cluster failed to be deleted.

Valid values:

  • running :

    The cluster is running.

  • scaling :

    The cluster is being scaled.

  • stopped :

    The cluster is stopped.

  • upgrading :

    The cluster is being upgraded.

  • updating :

    The cluster configurations are being updated.

  • deleting :

    The cluster is being deleted.

  • deleted :

    The cluster is deleted.

  • initial :

    The cluster is being created.

  • draining :

    Nodes are being drained.

  • delete_failed :

    The cluster failed to be deleted.

  • failed :

    The cluster failed to be created.

  • removing :

    Nodes are being removed.

running

PageNo

integer

The page number.

1

PageSize

integer

The number of entries to return on each page.

10

RequestId

string

The request ID.

C5DDD596-1191-5F36-A504-8733045A****

TotalCount

integer

The total number of entries.

1

Examples

Success response

JSON format

{
  "Clusters": [
    {
      "MemberUid": "135809047715****",
      "RegionId": "cn-hangzhou",
      "ClusterId": "cb0f5640b1b2d404cad6ba21509d7847b",
      "ClusterName": "ack-cluster-name",
      "ClusterType": "ManagedKubernetes",
      "Profile": "Default",
      "VpcId": "vpc-2vcg932hsxsxuqbgl****",
      "Network": "terway-eniip",
      "ClusterSpec": "ack.pro.small",
      "State": "running"
    }
  ],
  "PageNo": 1,
  "PageSize": 10,
  "RequestId": "C5DDD596-1191-5F36-A504-8733045A****",
  "TotalCount": 1
}

Error codes

HTTP status code

Error code

Error message

Description

400 ErrorParametersUid The aliUid parameter is invalid. The aliUid parameter is invalid.
400 ErrorParameters Parameters error. Parameter error.
400 ErrorDBSelect An error occurred while querying database. An error occurred while querying database.
400 ErrorRegionNo regionNo error. Region selection error, please re-enter.
400 ErrorAckNotOpen ACK service is not open. ACK service is not open.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.