All Products
Search
Document Center

Container Service for Kubernetes:DescribeHubClusters

Last Updated:Feb 26, 2025

Queries the Fleet instances in the Distributed Cloud Container Platform for Kubernetes (ACK One) cluster.

Debugging

You can run this interface directly in OpenAPI Explorer, saving you the trouble of calculating signatures. After running successfully, OpenAPI Explorer can automatically generate SDK code samples.

Authorization information

The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:

  • Operation: the value that you can use in the Action element to specify the operation on a resource.
  • Access level: the access level of each operation. The levels are read, write, and list.
  • Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
    • For mandatory resource types, indicate with a prefix of * .
    • If the permissions cannot be granted at the resource level, All Resources is used in the Resource type column of the operation.
  • Condition Key: the condition key that is defined by the cloud service.
  • Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
OperationAccess levelResource typeCondition keyAssociated operation
adcp:DescribeHubClusterslist
*Cluster
acs:adcp::{#accountId}:cluster/*
    none
none

Request parameters

ParameterTypeRequiredDescriptionExample
ProfilestringNo

The types of Fleet instances used in different scenarios. Valid values:

  • Default: The Fleet instances suitable for standard scenarios.
  • XFlow: The Fleet instance suitable for workflow scenarios.

Default value: Default.

Default
ResourceGroupIdstringNo

The resource group ID.

rg-aekz77rhypeu***
TagarrayNo

The tags. You can specify up to 20 tags.

TagNo

The tag.

Response parameters

ParameterTypeDescriptionExample
object

The response parameters.

RequestIdstring

The ID of the request.

2D676EFC-8C04-5CCE-A08E-BB97D24B47E8
Clustersarray<object>

The information about clusters.

Clusterobject

The cluster information.

Endpointsobject

The endpoints of the cluster.

IntranetApiServerEndpointstring

The internal endpoint of the API server.

https://172.16.6.**:6443
PublicApiServerEndpointstring

The public endpoint of the API server.

https://123.57.21.***:6443
ClusterInfoobject

The details of the cluster.

Profilestring

The configurations of the cluster.

Default
CreationTimestring

The time when the cluster was created.

2021-11-05T10:25:48Z
UpdateTimestring

The time when the cluster was last modified.

2021-09-02T13:39:50Z
ErrorMessagestring

The error message that is returned if the cluster failed to be created.

Success
Versionstring

The version of the cluster.

1.22.3-aliyun.1
Statestring

The state of the cluster. Valid values:

  • initial: The cluster is being initialized.
  • failed: The cluster failed to be created.
  • running: The cluster is running
  • inactive: The cluster is not activated.
  • deleting: The cluster is being deleted.
  • delete_failed: The cluster failed to be deleted.
  • deleted: The cluster is deleted.
running
ClusterIdstring

The cluster ID.

c2d3e0121ea214b438010502a8019****
Namestring

The cluster name.

ackone-heyuan
RegionIdstring

The region ID.

cn-beijing
ClusterSpecstring

The specifications of the cluster.

  • Only ack.pro.small may be returned.
ack.pro.small
ResourceGroupIDstring

The resource group ID.

rg-qh2zgjsdv52***
Tagsarray<object>

The tags.

Tagobject

The tag.

Keystring

The tag key.

headername
Valuestring

The tag value.

release
Networkobject

The network configurations of the cluster.

VpcIdstring

The ID of the virtual private cloud (VPC) to which the cluster belongs.

vpc-2zeusrwi7c2mlww4a****
VSwitchesarray

The IDs of vSwitches to which the cluster belongs.

VSwitchesstring

The vSwitch ID.

["vsw-2ze1h7tt2fgr1gxlx****"]
SecurityGroupIDsarray

The security group IDs.

SecurityGroupIDsstring

The security group ID.

["sg-2ze1h7tt2fgr****"]
ClusterDomainstring

The domain name of the cluster.

cluster.local
ApiServerobject

The information about the API server.

EnabledPublicboolean

Indicates whether the public endpoint is enabled for the API server. Valid values:

  • true
  • false
true
LoadBalancerIdstring

The ID of the Server Load Balancer (SLB) instance that is associated with the cluster.

lb-bp1qyp4l6bscqxw69****
ApiServerEipIdstring

The elastic IP address (EIP) ID.

eip-xxx
MeshConfigobject

The configurations of Alibaba Cloud Service Mesh (ASM).

EnableMeshboolean

Indicates whether ASM is enabled. Valid values:

  • true
  • false
false
MeshIdstring

The ASM instance ID.

c2d3e0121ea214b438010502a8019****
LogConfigobject

The logging configurations.

EnableLogboolean

Indicates whether the audit logging feature is enabled. Valid values:

  • true
  • false
true
LogProjectstring

The name of the project in Simple Log Service.

audit-log-abc
LogStoreTTLstring

The number of days that logs are retained by Simple Log Service.

7
Conditionsarray<object>

The deletion conditions of the cluster.

Conditionobject

The details of the condition.

Typestring

The type of deletion condition.

DeletionProtection
Statusstring

The state of the cluster that the deletion condition indicates. Valid values:

  • True: The cluster cannot be deleted.
  • False: The cluster can be deleted.
  • Unknow: Whether the cluster can be deleted is unknown.
True
Reasonstring

The reason for the deletion condition.

Successful
Messagestring

The error message returned.

Successful!

Examples

Sample success responses

JSONformat

{
  "RequestId": "2D676EFC-8C04-5CCE-A08E-BB97D24B47E8",
  "Clusters": [
    {
      "Endpoints": {
        "IntranetApiServerEndpoint": "https://172.16.6.**:6443\n",
        "PublicApiServerEndpoint": "https://123.57.21.***:6443\n"
      },
      "ClusterInfo": {
        "Profile": "Default",
        "CreationTime": "2021-11-05T10:25:48Z",
        "UpdateTime": "2021-09-02T13:39:50Z",
        "ErrorMessage": "Success",
        "Version": "1.22.3-aliyun.1\n",
        "State": "running",
        "ClusterId": "c2d3e0121ea214b438010502a8019****",
        "Name": "ackone-heyuan",
        "RegionId": "cn-beijing",
        "ClusterSpec": "ack.pro.small",
        "ResourceGroupID": "rg-qh2zgjsdv52***",
        "Tags": [
          {
            "Key": "headername",
            "Value": "release"
          }
        ]
      },
      "Network": {
        "VpcId": "vpc-2zeusrwi7c2mlww4a****",
        "VSwitches": [
          "[\"vsw-2ze1h7tt2fgr1gxlx****\"]"
        ],
        "SecurityGroupIDs": [
          "[\"sg-2ze1h7tt2fgr****\"]\n"
        ],
        "ClusterDomain": "cluster.local"
      },
      "ApiServer": {
        "EnabledPublic": true,
        "LoadBalancerId": "lb-bp1qyp4l6bscqxw69****",
        "ApiServerEipId": "eip-xxx"
      },
      "MeshConfig": {
        "EnableMesh": false,
        "MeshId": "c2d3e0121ea214b438010502a8019****"
      },
      "LogConfig": {
        "EnableLog": true,
        "LogProject": "audit-log-abc",
        "LogStoreTTL": "7"
      },
      "Conditions": [
        {
          "Type": "DeletionProtection",
          "Status": "True",
          "Reason": "Successful",
          "Message": "Successful!"
        }
      ]
    }
  ]
}

Error codes

For a list of error codes, visit the Service error codes.

Change history

Change timeSummary of changesOperation
2024-05-13The request parameters of the API has changed. The response structure of the API has changedView Change Details
2024-04-17The request parameters of the API has changed. The response structure of the API has changedView Change Details
2021-12-30Add OperationView Change Details