This topic is generated by a machine translation engine without any human intervention. ALIBABA CLOUD DOES NOT GUARANTEE THE ACCURACY OF MACHINE TRANSLATED CONTENT. To request a human-translated version of this topic or provide feedback on this translation, please include it in the feedback form.
Queries information about a PolarDB cluster.
Debugging
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:
- The required resource types are displayed in bold characters.
- 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.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
polardb:DescribeDBClusterAttribute | get | *DBCluster acs:polardb:{#regionId}:{#accountId}:dbcluster/{#DbClusterId} |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | Cluster ID. Note
You can view detailed information about all clusters under your account, including the cluster ID, through the DescribeDBClusters interface.
| pc-***************** |
DescribeType | string | No | Whether to obtain information about AI-related nodes. | AI |
Response parameters
description
Examples
Sample success responses
JSON
format
{
"DeletionLock": 0,
"Category": "Normal",
"ResourceGroupId": "rg-***************",
"DataLevel1BackupChainSize": 74448896,
"DBClusterId": "pc-*****************",
"DBType": "MySQL",
"DBClusterNetworkType": "VPC",
"IsLatestVersion": false,
"HasCompleteStandbyRes": false,
"HotStandbyCluster": "StandbyClusterON",
"DataSyncMode": "AsyncSync",
"StandbyHAMode": "OFF",
"CompressStorageMode": "ON",
"StorageMax": 10995116277760,
"DBVersion": "8.0",
"DBNodes": [
{
"CreationTime": "2020-03-23T21:35:43Z",
"FailoverPriority": 1,
"MaxIOPS": 32000,
"DBNodeClass": "polar.mysql.x4.large",
"CpuCores": "2",
"MemorySize": "8192",
"DBNodeRole": "Reader",
"ZoneId": "cn-hangzhou-i",
"MaxConnections": 8000,
"DBNodeStatus": "Running",
"DBNodeId": "pi-****************",
"ImciSwitch": "ON",
"HotReplicaMode": "ON",
"AddedCpuCores": "6",
"MasterId": "pi-bp18z52akld3*****",
"SccMode": "ON",
"ServerWeight": "1",
"ServerlessType": "AgileServerless",
"SubCluster": "Primary",
"RemoteMemorySize": "3072",
"Orca": "off",
"MirrorInsName": "pi-bp18z52mirror*****",
"MultiMasterLocalStandby": "",
"MultiMasterPrimaryNode": "",
"DBNodeDescription": ""
}
],
"ZoneIds": "cn-hangzhou-i,cn-hangzhou-g",
"MaintainTime": "18:00Z-19:00Z",
"Engine": "POLARDB",
"Tags": [
{
"Key": "test",
"Value": "MySQL"
}
],
"RequestId": "074467EF-86B9-4C23-ACBF-E9B81A******",
"VPCId": "vpc-*******************",
"DBClusterStatus": "Running",
"VSwitchId": "vsw-*********************",
"DBClusterDescription": "test",
"Expired": "false",
"PayType": "Prepaid",
"StoragePayType": "Prepaid",
"LockMode": "Unlock",
"StorageUsed": 3012558848,
"CompressStorageUsed": 15529410560,
"StorageSpace": 50,
"DBVersionStatus": "Stable",
"CreationTime": "2020-08-14T05:58:42Z",
"SQLSize": 0,
"InodeTotal": 0,
"InodeUsed": 0,
"BlktagTotal": 0,
"BlktagUsed": 0,
"RegionId": "cn-hangzhou",
"ExpireTime": "2020-11-14T16:00:00Z",
"SubCategory": "Exclusive",
"IsProxyLatestVersion": false,
"StorageType": "HighPerformance",
"ServerlessType": "AgileServerless",
"StrictConsistency": "ON",
"ProxyCpuCores": "4",
"ProxyStandardCpuCores": "2",
"ProxyType": "Exclusive",
"ProxyStatus": "Running",
"ProxyServerlessType": "AgileServerless",
"Architecture": "X86",
"AiType": "DLNode",
"ProvisionedIops": "2500",
"AiCreatingTime": "2024-03-13T01:20:28Z",
"SupportInstantSwitchWithImci": "ON",
"Orca": "ON",
"SourceDBCluster": "pc-pz51ziv48317b2880",
"RestoreType": "RestoreByTime",
"RestoreDataPoint": "2179639137",
"SourceRegionId": "cn-beijing",
"ImciAutoIndex": "OFF",
"BurstingEnabled": ""
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | InvalidDBClusterId.Malformed | The specified parameter DBClusterId is not valid. | The specified DBClusterId parameter is invalid. |
403 | Forbidden.RAM | User not authorized to operate on the specified resource, or this API does not support RAM. | - |
404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-08-20 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-07-30 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-06-06 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-04-18 | The Error code has changed. The response structure of the API has changed | View Change Details |
2024-02-22 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-12-26 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-12-07 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-11-06 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-10-26 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-10-12 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-09-12 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-08-31 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-07-06 | The Error code has changed. The request parameters of the API has changed. The response structure of the API has changed | View Change Details |
2023-06-12 | The Error code has changed | View Change Details |
2023-04-11 | The Error code has changed. The response structure of the API has changed | View Change Details |
2023-03-28 | API Description Update. The Error code has changed. The response structure of the API has changed | View Change Details |
2022-11-02 | The Error code has changed. The response structure of the API has changed | View Change Details |
2022-06-02 | The Error code has changed. The response structure of the API has changed | View Change Details |
2021-12-07 | The Error code has changed. The response structure of the API has changed | View Change Details |
2021-12-07 | The Error code has changed. The response structure of the API has changed | View Change Details |