DescribeDBClusters

Updated at:
Copy as MD

Lists Data Lakehouse Edition clusters in a specified region.

Operation description

For current service endpoints, see Service Endpoints.

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

adb:DescribeDBClusters

list

*DBClusterLakeVersion

acs:adb:{#regionId}:{#accountId}:dbcluster/{#DBClusterId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

The region ID.

Note

Call DescribeRegions to query available region IDs.

cn-hangzhou

DBClusterIds

string

No

The cluster ID.

If omitted, returns all clusters in the specified region.

amv-bp1r053byu48p****

DBClusterDescription

string

No

The cluster description.

  • Cannot start with http:// or https://.

  • The description must be 2 to 256 characters long.

test

DBClusterStatus

string

No

The cluster status. Valid values:

  • Preparing: The cluster is preparing.

  • Creating: The cluster is being created.

  • Running: The cluster is running.

  • Deleting: The cluster is being deleted.

  • Restoring: The cluster is being restored from a backup.

  • ClassChanging: The cluster specifications are changing.

  • NetAddressCreating: A network connection is being created for the cluster.

  • NetAddressDeleting: The network connection of the cluster is being deleted.

  • NetAddressModifying: The network connection of the cluster is being modified.

Running

PageSize

integer

No

Entries per page. Valid values:

  • 30 (default)

  • 50

  • 100

30

PageNumber

integer

No

Page number. Must be a positive integer. Default: 1.

1

ResourceGroupId

string

No

Resource group ID. If omitted, returns clusters across all resource groups.

rg-4690g37929****

Tag

array<object>

No

The tags to filter clusters by.

object

No

Information about a cluster tag.

Key

string

No

The tag key.

tag1

Value

string

No

The tag value.

test1

ProductVersion

string

No

The product version. Valid values:

  • EnterpriseVersion: Enterprise edition.

  • BasicVersion: Basic edition.

Note

If omitted, returns clusters of all product versions.

BasicVersion

DBClusterVersion

string

No

The cluster version. Valid values:

  • 3.0: Data Warehouse edition.

  • 5.0 (default): Includes the Lakehouse, Enterprise, and Basic editions.

  • All: All editions, including the Data Warehouse, Lakehouse, Enterprise, and Basic editions.

5.0

Response elements

Element

Type

Description

Example

object

TotalCount

integer

The total number of entries returned.

1

PageSize

integer

The number of entries per page.

30

RequestId

string

The request ID.

A5EDBA27-AF3E-5966-9503-FD1557E19167

PageNumber

integer

The page number.

1

Items

object

DBCluster

array<object>

The details of the clusters.

array<object>

The details of the cluster.

Expired

string

Whether the subscription cluster has expired. Valid values:

  • true: The cluster has expired.

  • false: The cluster has not expired.

Note
  • If a subscription cluster expires, it is locked and may be released after a period of time. Renew the cluster promptly. Renewal.

  • This parameter is not returned for pay-as-you-go clusters.

false

CreateTime

string

Cluster creation time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

2022-04-01T09:50:18Z

PayType

string

Billing method. Valid values:

  • Postpaid: pay-as-you-go.

  • Prepaid: subscription.

Prepaid

Mode

string

Cluster mode. flexible indicates elastic mode.

flexible

Port

string

Cluster port number.

3306

LockMode

string

Lock state. Valid values:

  • Unlock: The cluster is not locked.

  • ManualLock: The cluster is manually locked.

  • LockByExpiration: The cluster is automatically locked upon expiration.

Unlock

StorageResource

string

Reserved storage resources. Each ACU equals 1 vCPU and 4 GB memory. Storage resources handle data read/write; increasing them improves read/write performance.

24ACU

DBClusterId

string

The ID of the Data Lakehouse Edition cluster.

amv-bp163885f8q21****

ConnectionString

string

The public endpoint of the cluster.

amv-bp163885f8q21****.ads.aliyuncs.com

DBClusterType

string

Cluster type. Common indicates a regular cluster.

Common

CommodityCode

string

Commodity code. Valid values:

  • ads: a pay-as-you-go cluster.

  • ads_pre: a subscription cluster.

ads_pre

ExpireTime

string

Cluster expiration time in UTC. Format: yyyy-MM-ddTHH:mm:ssZ.

Note
  • For subscription clusters, the actual expiration time is returned.

  • For pay-as-you-go clusters, no value is returned.

2022-07-01T09:50:18Z

LockReason

string

Lock reason.

Note

Returned only when the cluster is locked. Fixed value: instance_expired.

instance_expired

VPCId

string

VPC ID.

vpc-bp13h7uzhulpuxvnp****

RegionId

string

Region ID.

cn-hangzhou

ComputeResource

string

Reserved computing resources. Each ACU equals 1 vCPU and 4 GB memory. Computing resources handle queries; increase them to accelerate performance or scale elastically.

16ACU

VSwitchId

string

The vSwitch ID.

vsw-bp1syh8vvw8yech7n****

DBVersion

string

Database engine version. Only 5.0 is supported.

5.0

DBClusterStatus

string

Cluster status. Valid values:

  • Preparing: The cluster is being prepared.

  • Creating: The cluster is being created.

  • Running: The cluster is running.

  • Deleting: The cluster is being deleted.

  • Restoring: The cluster is being restored from a backup.

  • ClassChanging: The cluster specifications are being changed.

  • NetAddressCreating: A network connection is being created.

  • NetAddressDeleting: A network connection is being deleted.

  • NetAddressModifying: A network connection is being modified.

Running

ResourceGroupId

string

The ID of the resource group.

rg-acfmyiu4ekp****

DBClusterNetworkType

string

Network type. Only VPC is supported.

VPC

DBClusterDescription

string

The description of the cluster.

adb_test

ZoneId

string

Zone ID.

cn-hangzhou-h

Engine

string

Database engine. Fixed value: AnalyticDB.

AnalyticDB

ReservedACU

string

Remaining reserved computing resources. Each ACU equals 1 vCPU and 4 GB memory.

32ACU

Tags

object

Tag

array<object>

The list of tags.

object

The tags.

Key

string

The tag key.

Note

Call TagResources to add tags to the cluster.

tag1

Value

string

The tag value.

test1

Category

string

Cluster edition. Returned only for Data Warehouse Edition clusters. Valid values:

  • BASIC: Basic Edition in reserved mode.

  • CLUSTER: Cluster Edition in reserved mode.

  • MIXED_STORAGE: Elastic Mode Cluster Edition (New).

MIXED_STORAGE

InnerPort

string

The internal port of the cluster.

3306

VPCCloudInstanceId

string

The internal endpoint.

am-bp163885f8q21****-controller

InnerIp

string

The internal IP address of the cluster.

10.1.xx.xx

DtsJobId

string

DTS synchronization task ID. Returned only for MySQL analysis instances. Overview of MySQL analysis instances.

dtsb1578j90XXXX

ElasticIOResource

integer

Number of EIUs. EIU details.

Note

Returned only for elastic mode clusters.

2

RdsInstanceId

string

Source ApsaraDB RDS instance ID. Returned only for MySQL analysis instances. Overview of MySQL analysis instances.

rm-bp11q28kvl688****

ExecutorCount

string

Number of compute nodes in an elastic mode cluster.

1

DBNodeClass

string

Node specification. Returned only for Data Warehouse Edition clusters.

E8

DiskType

string

Disk type. Valid values:

  • local_ssd: local SSD.

  • cloud: standard cloud disk.

  • cloud_ssd: SSD cloud disk.

  • cloud_efficiency: ultra disk.

  • cloud_essd: PL1 ESSD.

  • cloud_essd2: PL2 ESSD.

  • cloud_essd3: PL3 ESSD.

cloud_essd

DBNodeStorage

integer

Storage capacity in GB.

300

DBNodeCount

integer

Number of node groups.

2

TaskInfo

object

Information about the task.

Name

string

The name of the task.

analyticDBFlexibleScaleOut

Status

string

The status of the task. Valid values:

  • NOT_RUN: The task is pending.

  • RUNNING: The task is running.

  • SUCCEED: The task is complete.

RUNNING

Progress

string

The task progress, specified as a percentage.

10%

StepList

object

StepList

array<object>

The steps of the task.

object

The steps of the task.

StepName

string

The name of the step.

ApplyResource

StepDesc

string

The description of the step.

Apply resource

StepStatus

string

The status of the step. Valid values:

  • NOT_RUN: The step is pending.

  • RUNNING: The step is running.

  • SUCCEED: The step is complete.

SUCCEED

StepProgress

string

The progress of the step, specified as a percentage.

50%

StartTime

string

The time when the step started. The time is formatted as YYYY-MM-DDThh:mm:ssZ.

2024-03-10T09:28:34Z

EndTime

string

The time when the step ended. The time is formatted as YYYY-MM-DDThh:mm:ssZ.

2024-03-10T10:28:34Z

ProductForm

string

The product form. Valid values:

  • LegacyForm: The legacy form.

  • IntegrationForm: The integrated form.

IntegrationForm

ProductVersion

string

The product version. Valid values:

  • BasicVersion: Basic Edition.

  • EnterpriseVersion: Enterprise Edition.

EnterpriseVersion

ReservedNodeSize

string

The resource specification of a single reserved node.

8ACU

ReservedNodeCount

integer

The number of reserved resource nodes.

1

AINodeSpec

string

The AI node specification.

ADB.MLGrand.5

AINodeNumber

integer

The number of AI nodes.

1

Examples

Success response

JSON format

{
  "TotalCount": 1,
  "PageSize": 30,
  "RequestId": "A5EDBA27-AF3E-5966-9503-FD1557E19167",
  "PageNumber": 1,
  "Items": {
    "DBCluster": [
      {
        "Expired": "false",
        "CreateTime": "2022-04-01T09:50:18Z",
        "PayType": "Prepaid",
        "Mode": "flexible",
        "Port": "3306",
        "LockMode": "Unlock",
        "StorageResource": "24ACU",
        "DBClusterId": "amv-bp163885f8q21****",
        "ConnectionString": "amv-bp163885f8q21****.ads.aliyuncs.com",
        "DBClusterType": "Common",
        "CommodityCode": "ads_pre",
        "ExpireTime": "2022-07-01T09:50:18Z",
        "LockReason": "instance_expired",
        "VPCId": "vpc-bp13h7uzhulpuxvnp****",
        "RegionId": "cn-hangzhou",
        "ComputeResource": "16ACU",
        "VSwitchId": "vsw-bp1syh8vvw8yech7n****",
        "DBVersion": "5.0",
        "DBClusterStatus": "Running",
        "ResourceGroupId": "rg-acfmyiu4ekp****",
        "DBClusterNetworkType": "VPC",
        "DBClusterDescription": "adb_test",
        "ZoneId": "cn-hangzhou-h",
        "Engine": "AnalyticDB",
        "ReservedACU": "32ACU",
        "Tags": {
          "Tag": [
            {
              "Key": "tag1",
              "Value": "test1"
            }
          ]
        },
        "Category": "MIXED_STORAGE",
        "InnerPort": "3306",
        "VPCCloudInstanceId": "am-bp163885f8q21****-controller",
        "InnerIp": "10.1.xx.xx",
        "DtsJobId": "dtsb1578j90XXXX",
        "ElasticIOResource": 2,
        "RdsInstanceId": "rm-bp11q28kvl688****",
        "ExecutorCount": "1",
        "DBNodeClass": "E8",
        "DiskType": "cloud_essd",
        "DBNodeStorage": 300,
        "DBNodeCount": 2,
        "TaskInfo": {
          "Name": "analyticDBFlexibleScaleOut",
          "Status": "RUNNING",
          "Progress": "10%",
          "StepList": {
            "StepList": [
              {
                "StepName": "ApplyResource",
                "StepDesc": "Apply resource",
                "StepStatus": "SUCCEED",
                "StepProgress": "50%",
                "StartTime": "2024-03-10T09:28:34Z",
                "EndTime": "2024-03-10T10:28:34Z"
              }
            ]
          }
        },
        "ProductForm": "IntegrationForm",
        "ProductVersion": "EnterpriseVersion",
        "ReservedNodeSize": "8ACU",
        "ReservedNodeCount": 1,
        "AINodeSpec": "ADB.MLGrand.5",
        "AINodeNumber": 1
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

500 InternalError An error occurred while processing your request. An internal error occurred. Please try again later.
503 ServiceUnavailable An error occurred while processing your request. The system is unavailable. Please try again later.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.