Queries the details of an AnalyticDB for MySQL cluster.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes DescribeDBClusterAttribute

The operation that you want to perform. Set the value to DescribeDBClusterAttribute.

DBClusterId String Yes am-bp111m2cfrdl1****

The ID of the cluster.

Note You can call the DescribeDBClusters operation to query the details of all AnalyticDB for MySQL clusters within a specific region, including cluster IDs.

Response parameters

Parameter Type Example Description
RequestId String 2895BB82-B2C1-408E-AA73-DB8D59******

The ID of the request.

Items Array of DBCluster

Details of the cluster.

DBCluster
CreationTime String 2021-04-01T09:50:18Z

The time when the cluster was created. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC.

EnableSpark Boolean false

Indicates whether a Spark cluster was created. Valid values:

  • true: A Spark cluster was created.
  • false: No Spark cluster was created.
DtsJobId String dtsb1hp3790****

The ID of the Data Transmission Service (DTS) synchronization task. This parameter is returned only for MySQL analytic instances.

DBNodeCount Long 1

The number of node groups.

Expired String false

Indicates whether the cluster has expired. Valid values:

  • true: The cluster has expired.
  • false: The cluster has not expired.
MaintainTime String 04:00Z-05:00Z

The maintenance window of the cluster. The window follows the ISO 8601 standard in the HH:mmZ- HH:mmZ format. The time is displayed in UTC. An example is 04:00Z-05:00Z, which indicates that routine maintenance can be performed from 04:00 to 05:00.

Note For more information about the maintenance window, see Set a maintenance window.
PayType String Postpaid

The billing method of the cluster. Valid values:

  • Postpaid: pay-as-you-go
  • Prepaid: subscription
DiskType String cloud_essd

The disk type of the cluster. Valid values:

  • local_ssd: local disk
  • cloud: basic disk
  • cloud_ssd: standard SSD
  • cloud_efficiency: ultra disk
  • cloud_essd: enhanced SSD (ESSD) at performance level 1 (PL1)
  • cloud_essd2: ESSD at performance level 2 (PL2)
  • cloud_essd3: ESSD at performance level 3 (PL3)
Note For more information about ESSDs, see ESSDs.
Tags Array of Tag

Details of the tags.

Tag
Key String tag1

The key of the tag.

Note You can call the TagResources operation to add a tag to the cluster.
Value String test1

The value of the tag.

Mode String flexible

The mode of the cluster. Valid values:

  • flexible: the elastic mode
  • reserver: the reserved mode
Note For more information about cluster modes, see Editions.
Port Integer 3306

The port number that is used to connect to the cluster.

LockMode String Unlock

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 after it expires.
  • LockByRestoration: The cluster is automatically locked before a rollback.
  • LockByDiskQuota: The cluster is automatically locked when it has used 90% of its storage.
EngineVersion String 3.1.1.9

The minor engine version.

EnableAirflow Boolean true

Indicates whether an Airflow cluster was created. Valid values:

  • true: An Airflow cluster was created.
  • false: No Airflow cluster was created.
ExecutorCount String 1

The number of compute nodes that are used by the cluster in elastic mode.

StorageResource String 8Core32GB

The specifications of storage resources in elastic mode. These resources are used to read and write data. You can increase the value of this parameter to improve the read and write capabilities of the cluster.

DBClusterId String am-bp111m2cfrdl1****

The ID of the cluster.

ConnectionString String am-bp111m2cfrdl1****.ads.aliyuncs.com

The Virtual Private Cloud (VPC) endpoint of the cluster.

RdsInstanceId String rm-bp837jsdp2****

The ID of the ApsaraDB RDS instance from which data is synchronized to the cluster. This parameter is returned only for MySQL analytic instances.

DBClusterType String Common

The type of the cluster. Valid values:

  • Common: common cluster
  • RDS_ANALYSIS: MySQL analytic instance
CommodityCode String ads

The commodity code. Valid values:

  • ads: This value is returned if the billing method of the cluster is pay-as-you-go.
  • ads_pre: This value is returned if the billing method of the cluster is subscription.
ExpireTime String 2999-09-08T16:00:00Z

The time when the cluster expires. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. Example: 2999-09-08T16:00:00Z.

Note
  • If the billing method of the cluster is subscription, the actual expiration time is returned.
  • If the billing method of the cluster is pay-as-you-go, 2999-09-08T16:00:00Z is returned.
DBNodeStorage Long 300

The storage capacity of the cluster. Unit: GB.

DBNodeClass String E8

The node specification of the cluster.

LockReason String instance_expired

The reason why the cluster is locked.

Note This parameter is returned only when the cluster is locked. The value is instance_expire.
VPCId String vpc-bp13h7uzhulpuxvnp****

The ID of the VPC.

ComputeResource String 8Core32GB

The specifications of computing resources in elastic mode. The increase of computing resources can speed up queries. You can adjust the value of this parameter to scale the cluster.

RegionId String cn-hangzhou

The region ID of the cluster.

ElasticIOResource Integer 0

The elastic I/O unit (EIU). For more information, see EIUs.

Note This parameter is returned only for clusters in elastic mode.
VSwitchId String vsw-bp1syh8vvw8yech7n****

The ID of the vSwitch.

DBVersion String 3.0

The version of the database engine. Only 3.0 is supported.

VPCCloudInstanceId String am-bp111m2cfrdl1****-controller

The ID of the cluster that is deployed in the VPC.

DBClusterStatus String Running

The state of the cluster. For more information, see Cluster states.

ResourceGroupId String rg-acfmyiu4ekp****

The ID of the resource group.

DBClusterNetworkType String vpc

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

DBClusterDescription String adb_test

The description of the cluster.

UserENIStatus Boolean true

Indicates whether Elastic Network Interface (ENI) is enabled. Valid values:

  • true
  • false
ZoneId String cn-hangzhou-h

The zone ID of the cluster.

Category String MIXED_STORAGE

The edition of the cluster. Valid values:

  • BASIC: reserved mode for Basic Edition
  • CLUSTER: reserved mode for Cluster Edition
  • MIXED_STORAGE: elastic mode for Cluster Edition
Note For more information about cluster editions, see Editions.
Engine String AnalyticDB

The engine of the cluster. AnalyticDB is returned.

KmsId String sdfsdfdsf-sdfsdfsdf-sdfsdf-sdfsdf

The ID of the key that is used to encrypt disk data.

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

Examples

Sample requests

http(s)://adb.aliyuncs.com/?Action=DescribeDBClusterAttribute
&DBClusterId=am-bp111m2cfrdl1****
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<DescribeDBClusterAttributeResponse>
    <RequestId>2895BB82-B2C1-408E-AA73-DB8D59******</RequestId>
    <Items>
        <CreationTime>2021-04-01T09:50:18Z</CreationTime>
        <EnableSpark>false</EnableSpark>
        <DtsJobId>dtsb1hp3790****</DtsJobId>
        <DBNodeCount>1</DBNodeCount>
        <Expired>false</Expired>
        <MaintainTime>04:00Z-05:00Z</MaintainTime>
        <PayType>Postpaid</PayType>
        <DiskType>cloud_essd</DiskType>
        <Tags>
            <Key>tag1</Key>
            <Value>test1</Value>
        </Tags>
        <Mode>flexible</Mode>
        <Port>3306</Port>
        <LockMode>Unlock</LockMode>
        <EngineVersion>3.1.1.9</EngineVersion>
        <EnableAirflow>true</EnableAirflow>
        <ExecutorCount>1</ExecutorCount>
        <StorageResource>8Core32GB</StorageResource>
        <DBClusterId>am-bp111m2cfrdl1****</DBClusterId>
        <ConnectionString>am-bp111m2cfrdl1****.ads.aliyuncs.com</ConnectionString>
        <RdsInstanceId>rm-bp837jsdp2****</RdsInstanceId>
        <DBClusterType>Common</DBClusterType>
        <CommodityCode>ads</CommodityCode>
        <ExpireTime>2999-09-08T16:00:00Z</ExpireTime>
        <DBNodeStorage>300</DBNodeStorage>
        <DBNodeClass>E8</DBNodeClass>
        <LockReason>instance_expired</LockReason>
        <VPCId>vpc-bp13h7uzhulpuxvnp****</VPCId>
        <ComputeResource>8Core32GB</ComputeResource>
        <RegionId>cn-hangzhou</RegionId>
        <ElasticIOResource>0</ElasticIOResource>
        <VSwitchId>vsw-bp1syh8vvw8yech7n****</VSwitchId>
        <DBVersion>3.0</DBVersion>
        <VPCCloudInstanceId>am-bp111m2cfrdl1****-controller</VPCCloudInstanceId>
        <DBClusterStatus>Running</DBClusterStatus>
        <ResourceGroupId>rg-acfmyiu4ekp****</ResourceGroupId>
        <DBClusterNetworkType>vpc</DBClusterNetworkType>
        <DBClusterDescription>adb_test</DBClusterDescription>
        <UserENIStatus>true</UserENIStatus>
        <ZoneId>cn-hangzhou-h</ZoneId>
        <Category>MIXED_STORAGE</Category>
        <Engine>AnalyticDB</Engine>
        <KmsId>sdfsdfdsf-sdfsdfsdf-sdfsdf-sdfsdf</KmsId>
    </Items>
</DescribeDBClusterAttributeResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "RequestId" : "2895BB82-B2C1-408E-AA73-DB8D59******",
  "Items" : {
    "CreationTime" : "2021-04-01T09:50:18Z",
    "EnableSpark" : false,
    "DtsJobId" : "dtsb1hp3790****",
    "DBNodeCount" : 1,
    "Expired" : false,
    "MaintainTime" : "04:00Z-05:00Z",
    "PayType" : "Postpaid",
    "DiskType" : "cloud_essd",
    "Tags" : {
      "Key" : "tag1",
      "Value" : "test1"
    },
    "Mode" : "flexible",
    "Port" : 3306,
    "LockMode" : "Unlock",
    "EngineVersion" : "3.1.1.9",
    "EnableAirflow" : true,
    "ExecutorCount" : 1,
    "StorageResource" : "8Core32GB",
    "DBClusterId" : "am-bp111m2cfrdl1****",
    "ConnectionString" : "am-bp111m2cfrdl1****.ads.aliyuncs.com",
    "RdsInstanceId" : "rm-bp837jsdp2****",
    "DBClusterType" : "Common",
    "CommodityCode" : "ads",
    "ExpireTime" : "2999-09-08T16:00:00Z",
    "DBNodeStorage" : 300,
    "DBNodeClass" : "E8",
    "LockReason" : "instance_expired",
    "VPCId" : "vpc-bp13h7uzhulpuxvnp****",
    "ComputeResource" : "8Core32GB",
    "RegionId" : "cn-hangzhou",
    "ElasticIOResource" : 0,
    "VSwitchId" : "vsw-bp1syh8vvw8yech7n****",
    "DBVersion" : 3,
    "VPCCloudInstanceId" : "am-bp111m2cfrdl1****-controller",
    "DBClusterStatus" : "Running",
    "ResourceGroupId" : "rg-acfmyiu4ekp****",
    "DBClusterNetworkType" : "vpc",
    "DBClusterDescription" : "adb_test",
    "UserENIStatus" : true,
    "ZoneId" : "cn-hangzhou-h",
    "Category" : "MIXED_STORAGE",
    "Engine" : "AnalyticDB",
    "KmsId" : "sdfsdfdsf-sdfsdfsdf-sdfsdf-sdfsdf"
  }
}

Error codes

HTTP status code Error code Error message Description
404 InvalidDBCluster.NotFound The DBClusterId provided does not exist in our records. The error message returned because the specified DBClusterId parameter does not exist. Check whether the cluster ID is valid.

For a list of error codes, visit the API Error Center.