DescribeDBClusterAttribute

Updated at:
Copy as MD

Queries the details of a specified cluster.

Operation description

For the service registration address of the current service, refer to Service registration.

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:DescribeDBClusterAttribute

get

*DBClusterLakeVersion

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

None None

Request parameters

Parameter

Type

Required

Description

Example

DBClusterId

string

Yes

The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.

Note

You can call the DescribeDBClusters operation to query the cluster ID.

amv-wz9509beptiz****

Response elements

Element

Type

Description

Example

object

RequestId

string

The request ID.

A5C433C2-001F-58E3-99F5-3274C14DF8BD

Items

object

DBCluster

array<object>

The list of Enterprise Edition and Basic Edition clusters.

array<object>

The cluster details.

CreationTime

string

The time when the cluster was created. The time is displayed in UTC in the yyyy-MM-ddThh:mm:ssZ format.

2022-07-01T09:50:18Z

Expired

string

Indicates whether the subscription cluster has expired. Valid values:

  • true: The cluster has expired.

  • false: The cluster has not expired.

Note
  • If the cluster has expired, it will be locked or released within a specific period. Renew the cluster promptly. For more information, refer to Renewal policy.

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

false

MaintainTime

string

The maintenance window of the cluster. The time is displayed in UTC in the HH:mmZ-HH:mmZ format.

Note

For more information about the maintenance window, refer to Configure the maintenance window.

04:00Z-05:00Z

PayType

string

The billing method of the cluster. Valid values:

  • Postpaid: pay-as-you-go.

  • Prepaid: subscription.

Prepaid

Tags

object

Tag

array<object>

The list of tags.

object

Key

string

The tag key.

Note

You can call the TagResources operation to create tags for the cluster.

tag1

Value

string

The tag value.

test1

Mode

string

The cluster mode. Default value: flexible, which indicates an elastic mode cluster.

flexible

Port

integer

The port number of the cluster.

3306

LockMode

string

The lock mode of the cluster. Valid values:

  • Unlock: The cluster is not locked.

  • ManualLock: The cluster is manually locked.

  • LockByExpiration: The cluster is automatically locked upon expiration.

ManualLock

EngineVersion

string

The DPI engine version of the cluster.

3.1.16

StorageResource

string

The specifications of reserved storage resources. 1 ACU is approximately equal to 1 core and 4 GB of memory. Storage resources are used for data read and write operations. Increasing storage resources improves the read and write capabilities of the cluster.

24ACU

DBClusterId

string

The ID of the Enterprise Edition, Basic Edition, or Data Lakehouse Edition cluster.

amv-wz9509beptiz****

ConnectionString

string

The VPC endpoint of the cluster.

amv-wz9509beptiz****.ads.aliyuncs.com

DBClusterType

string

The cluster type. Default value: Common, which indicates a standard cluster.

Common

CommodityCode

string

The commodity billing type. Valid values:

  • ads: pay-as-you-go commodity.

  • ads_pre: subscription commodity.

ads_pre

ExpireTime

string

The expiration time of the cluster.

  • If the cluster uses the subscription billing method, the actual expiration time is returned.

  • If the cluster uses the pay-as-you-go billing method, an empty value is returned.

2022-10-01T09:50:18Z

LockReason

string

The reason why the cluster is locked.

Note

This parameter is returned only when the cluster is locked. The value is fixed as instance_expire.

instance_expire

VPCId

string

The virtual private cloud (VPC) ID.

vpc-bp13h7uzhulpu****

ComputeResource

string

The specifications of reserved compute resources. 1 ACU is approximately equal to 1 core and 4 GB of memory. Compute resources are used for data computing. Increasing compute resources accelerates query speeds. You can elastically scale compute resources based on the actual performance requirements of the cluster.

16ACU

RegionId

string

The region ID of the cluster.

cn-hangzhou

VSwitchId

string

The vSwitch ID.

vsw-uf629gydd54ld****

DBVersion

string

The version of the AnalyticDB for MySQL cluster. Only version 5.0 is supported.

5.0

DBClusterStatus

string

The cluster status. Valid values:

  • Preparing: Preparing

  • Creating: Creating

  • Running: Running

  • Deleting: Deleting

  • Restoring: Restoring from backup

  • ClassChanging: Changing specifications

  • NetAddressCreating: Creating network

  • NetAddressDeleting: Deleting network

  • NetAddressModifying: Modifying network

Running

ResourceGroupId

string

The resource group ID.

rg-acfmyiu4ekp****

DBClusterNetworkType

string

The network type of the cluster. Only VPC is supported.

VPC

DBClusterDescription

string

The description of the cluster.

adb_test

UserENIStatus

boolean

Indicates whether the network interface controller (NIC) for elastic network interfaces (ENIs) is enabled. Valid values:

  • true: The ENI network is enabled.

  • false: The ENI network is disabled.

false

ZoneId

string

The zone ID of the cluster.

cn-hangzhou-h

Engine

string

The cluster engine. The value is fixed as AnalyticDB.

AnalyticDB

ReservedACU

string

The remaining allocatable reserved compute resources of the cluster. 1 ACU is approximately equal to 1 core and 4 GB of memory.

24ACU

ComputeResourceTotal

string

The total compute resources of the cluster. 1 ACU is approximately equal to 1 core and 4 GB of memory.

48ACU

StorageResourceTotal

string

The total storage resources of the cluster. 1 ACU is approximately equal to 1 core and 4 GB of memory.

24ACU

SupportedFeatures

object

The reserved parameter.

string

The reserved parameter.

The reserved parameter

ProductForm

string

The reserved parameter.

Valid values:

  • IntegrationForm
  • LegacyForm

IntegrationForm

ReservedNodeSize

string

The reserved parameter.

The reserved parameter

ReservedNodeCount

integer

The reserved parameter.

1

ClickhouseEngineEnabled

boolean

Indicates whether the ClickHouse wide-table engine is enabled. Valid values:

  • true: The ClickHouse wide-table engine is enabled.

  • false: The ClickHouse wide-table engine is disabled.

Valid values:

  • true :

    true

  • false :

    false

true

AINodeNumber

integer

The number of AI nodes.

3

ProductVersion

string

The product edition. Valid values:

  • BasicVersion: Basic Edition.

  • EnterpriseVersion: Enterprise Edition.

BasicVersion

KmsId

string

The ID of the key used to encrypt cloud disk data.

Note

This parameter is returned only when cloud disk encryption is enabled for the AnalyticDB for MySQL cluster.

e1935511-cf88-1123-a0f8-1be8d251****

TaskInfo

object

The task information.

Name

string

The task name.

ScaleUpDBCluster

Status

string

The task status. Valid values:

  • NOT_RUN: Waiting to run.

  • RUNNING: Running.

  • SUCCEED: Completed.

Valid values:

  • RUNNING
  • SUCCEED
  • NOT_RUN

RUNNING

Progress

string

The task progress. Unit: %.

10

StepList

object

StepList

array<object>

The task steps.

object

The task steps.

StepName

string

The step name.

PrepareResources

StepDesc

string

The step description.

Prepare resources

StepStatus

string

The step status. Valid values:

  • NOT_RUN: Waiting to run.

  • RUNNING: Running.

  • SUCCEED: Completed.

Valid values:

  • RUNNING
  • SUCCEED
  • NOT_RUN

RUNNING

StepProgress

string

The step progress. Unit: %.

50

StartTime

string

The start time of the step. The time is in the YYYY-MM-DDThh:mm:ssZ format.

2024-03-10T09:28:34Z

EndTime

string

The end time of the step. The time is in the YYYY-MM-DDThh:mm:ssZ format.

2024-03-10T10:28:34Z

UserENIVpcId

string

The VPC information of the ENI.

vpc-rj9hnedlfm645uj******

UserENIVSwitchOptions

string

The list of ENI vSwitches. Multiple vSwitches are separated by commas (,).

vsw-rj9ixufmywqq98z******,vsw-rj95ij6wcz656v7******

UserENIZoneOptions

string

The zone information of the ENI. Multiple zones are separated by commas (,).

cn-hangzhou-k,cn-hangzhou-h

SecondaryZoneId

string

The secondary zone ID.

cn-hangzhou-k

SecondaryVSwitchId

string

The secondary vSwitch ID.

vsw-8vbl7kfaxxxxx

DiskEncryption

boolean

Indicates whether cloud disk encryption is enabled. Valid values:

  • true: Enabled.

  • false: Disabled.

false

ClickhouseEngineCacheSize

integer

The cache size of the ClickHouse wide-table engine. Unit: GB. A value of -1 indicates that the wide-table engine is disabled. A specific number indicates the cloud disk cache size.

100

AINodeSpec

string

The AI node specifications.

ADB.MLGrand.5

RoutingControllerNodeCountFree

integer

The number of free RC nodes.

1

RoutingControllerNodeCountPaid

integer

The number of paid RC nodes.

1

RoutingControllerNodeSize

string

The RC node specifications.

2

Examples

Success response

JSON format

{
  "RequestId": "A5C433C2-001F-58E3-99F5-3274C14DF8BD",
  "Items": {
    "DBCluster": [
      {
        "CreationTime": "2022-07-01T09:50:18Z",
        "Expired": "false",
        "MaintainTime": "04:00Z-05:00Z",
        "PayType": "Prepaid",
        "Tags": {
          "Tag": [
            {
              "Key": "tag1",
              "Value": "test1"
            }
          ]
        },
        "Mode": "flexible",
        "Port": 3306,
        "LockMode": "ManualLock",
        "EngineVersion": "3.1.16",
        "StorageResource": "24ACU",
        "DBClusterId": "amv-wz9509beptiz****",
        "ConnectionString": "amv-wz9509beptiz****.ads.aliyuncs.com",
        "DBClusterType": "Common",
        "CommodityCode": "ads_pre",
        "ExpireTime": "2022-10-01T09:50:18Z",
        "LockReason": "instance_expire",
        "VPCId": "vpc-bp13h7uzhulpu****",
        "ComputeResource": "16ACU",
        "RegionId": "cn-hangzhou",
        "VSwitchId": "vsw-uf629gydd54ld****",
        "DBVersion": "5.0",
        "DBClusterStatus": "Running",
        "ResourceGroupId": "rg-acfmyiu4ekp****",
        "DBClusterNetworkType": "VPC",
        "DBClusterDescription": "adb_test",
        "UserENIStatus": false,
        "ZoneId": "cn-hangzhou-h",
        "Engine": "AnalyticDB",
        "ReservedACU": "24ACU",
        "ComputeResourceTotal": "48ACU",
        "StorageResourceTotal": "24ACU",
        "SupportedFeatures": {
          "key": "预留参数,不涉及。"
        },
        "ProductForm": "Reserved parameter. Not applicable.",
        "ReservedNodeSize": "Reserved parameter. Not applicable.",
        "ReservedNodeCount": 0,
        "ClickhouseEngineEnabled": true,
        "AINodeNumber": 3,
        "ProductVersion": "BasicVersion",
        "KmsId": "e1935511-cf88-1123-a0f8-1be8d251****",
        "TaskInfo": {
          "Name": "ScaleUpDBCluster",
          "Status": "RUNNING",
          "Progress": "10",
          "StepList": {
            "StepList": [
              {
                "StepName": "PrepareResources",
                "StepDesc": "Prepare resources",
                "StepStatus": "RUNNING",
                "StepProgress": "50",
                "StartTime": "2024-03-10T09:28:34Z",
                "EndTime": "2024-03-10T10:28:34Z"
              }
            ]
          }
        },
        "UserENIVpcId": "vpc-rj9hnedlfm645uj******",
        "UserENIVSwitchOptions": "vsw-rj9ixufmywqq98z******,vsw-rj95ij6wcz656v7******",
        "UserENIZoneOptions": "cn-hangzhou-k,cn-hangzhou-h",
        "SecondaryZoneId": "cn-hangzhou-k",
        "SecondaryVSwitchId": "vsw-8vbl7kfaxxxxx",
        "DiskEncryption": false,
        "ClickhouseEngineCacheSize": 100,
        "AINodeSpec": "ADB.MLGrand.5",
        "RoutingControllerNodeCountFree": 1,
        "RoutingControllerNodeCountPaid": 1,
        "RoutingControllerNodeSize": "2"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The specified DBClusterId parameter does not exist. Make sure that the DBClusterId value is valid.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.