DescribeDBClusters
Queries the list of PolarDB clusters or the details of clusters with RAM authorization.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeDBClusters |
list |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region ID. Note
You can call the DescribeRegions operation to query available regions. |
cn-hangzhou |
| DBClusterIds |
string |
No |
The cluster IDs. Separate multiple cluster IDs with commas (,). |
pc-**************** |
| DBClusterDescription |
string |
No |
The cluster description. Fuzzy match is supported. |
pc-**************** |
| ConnectionString |
string |
No |
The database endpoint. |
********.rwlb.polardb-pg-public.rds.aliyuncs.com |
| DBClusterStatus |
string |
No |
The cluster status. For valid values, see Cluster status table. |
Running |
| DBType |
string |
No |
The database type. Valid values:
|
MySQL |
| DescribeType |
string |
No |
The query mode for the list. A value of Simple indicates the brief mode, in which only the basic metadata of the clusters is returned. Note
If this parameter is not specified, the detailed mode is used by default, and the detailed information of the clusters is returned. |
Simple |
| DBVersion |
string |
No |
The database version. |
5.6 |
| RecentCreationInterval |
integer |
No |
Filters the clusters created in the last N days. Valid values: 0 to 15. |
7 |
| RecentExpirationInterval |
integer |
No |
Filters the clusters that expire in N days. Valid values: 0 to 15. |
6 |
| Expired |
boolean |
No |
Specifies whether the cluster has expired. Valid values:
|
true |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. The value must be a positive integer that does not exceed the maximum value of the Integer data type. Default value: 1. |
10 |
| ResourceGroupId |
string |
No |
The resource group ID. |
rg-********** |
| Tag |
array<object> |
No |
The list of tags. |
|
|
object |
No |
|||
| Key |
string |
No |
The tag key. You can filter the cluster list based on tags. You can specify up to 20 tag key-value pairs. The number n in each tag key-value pair must be unique and must be a consecutive integer starting from 1. The value of Tag.n.Key is Tag.n.Value. Note
The tag key can be up to 64 characters in length and cannot start with |
MySQL |
| Value |
string |
No |
The tag value that corresponds to the tag key. Note
The tag value can be up to 64 characters in length and cannot start with |
5.6 |
| PayType |
string |
No |
The billing method. Valid values:
|
Postpaid |
| DBNodeIds |
string |
No |
The node IDs. You can specify multiple node IDs and separate them with commas (,). |
pi-*************** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalRecordCount |
integer |
The total number of entries. |
16 |
| PageRecordCount |
integer |
The number of clusters returned on the current page. |
5 |
| RequestId |
string |
The request ID. |
9B7BFB11-C077-4FE3-B051-F69CEB****** |
| PageNumber |
integer |
The page number. |
12 |
| Items |
object |
||
| DBCluster |
array<object> |
The list of clusters. |
|
|
array<object> |
|||
| VpcId |
string |
The VPC ID. |
vpc-**************** |
| VswitchId |
string |
The vSwitch ID. |
vsw-*************** |
| ExpireTime |
string |
The expiration time of the cluster. Note
A specific value is returned only for Prepaid (subscription) clusters. For Postpaid (pay-as-you-go) clusters, an empty value is returned. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2020-11-14T16:00:00Z |
| Expired |
string |
Indicates whether the cluster has expired. Valid values:
Note
This parameter is returned only for Prepaid (subscription) clusters. |
false |
| DBNodeNumber |
integer |
The number of nodes. |
2 |
| CreateTime |
string |
The creation time of the cluster. The time follows the ISO 8601 standard in the yyyy-MM-ddTHH:mm:ssZ format. The time is displayed in UTC. |
2020-08-14T05:58:42Z |
| PayType |
string |
The billing method. Valid values:
|
Prepaid |
| StoragePayType |
string |
The storage billing method. Valid values:
|
Prepaid |
| ServerlessType |
string |
The Serverless type. A value of AgileServerless indicates that the cluster is a Serverless cluster. An empty value indicates common clusters. |
AgileServerless |
| StrictConsistency |
string |
Indicates whether cross-zone strong data consistency is enabled for the cluster. Valid values:
|
ON |
| DBNodeClass |
string |
The node specifications. |
polar.mysql.x4.large |
| Tags |
object |
||
| Tag |
array<object> |
The list of tags. |
|
|
object |
|||
| Key |
string |
The tag key. |
MySQL |
| Value |
string |
The tag value. |
5.6 |
| DBType |
string |
The database type. |
MySQL |
| LockMode |
string |
The lock status of the cluster. Valid values:
|
Unlock |
| DBNodes |
object |
||
| DBNode |
array<object> |
The list of nodes. |
|
|
object |
|||
| DBNodeClass |
string |
The node specifications. |
polar.mysql.x4.large |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| DBNodeRole |
string |
The node role. Valid values:
|
Reader |
| DBNodeId |
string |
The node ID. |
pi-**************** |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| Serverless |
string |
Indicates whether the Serverless feature is enabled for the current node.
|
ON |
| ImciSwitch |
string |
Indicates whether IMCI is enabled. Valid values:
Valid values:
|
OFF |
| HotReplicaMode |
string |
Indicates whether hot standby is enabled. Valid values:
|
OFF |
| RegionId |
string |
The region ID. |
cn-hangzhou |
| DeletionLock |
integer |
The deletion protection status of the cluster. Valid values:
Note
You cannot delete a cluster that is in the Locked state. |
0 |
| DBVersion |
string |
The database version. |
5.6 |
| DBClusterId |
string |
The cluster ID. |
pc-**************** |
| DBClusterStatus |
string |
The cluster status. |
Running |
| ResourceGroupId |
string |
The resource group ID. |
rg-************ |
| SearchStorageUsed |
integer |
The storage usage of the Search node. |
89227945573 |
| StorageSpace |
integer |
The storage space for subscription clusters billed by space. Unit: bytes. |
50 |
| DBClusterNetworkType |
string |
The network type of the cluster. |
VPC |
| DBClusterDescription |
string |
The cluster description. |
GDN-1 |
| ZoneId |
string |
The zone ID. |
cn-hangzhou-i |
| Engine |
string |
The cluster engine. |
POLARDB |
| Category |
string |
The cluster edition. Valid values:
|
Normal |
| AiType |
string |
The status of the AI node information. Valid values:
Valid values:
|
SearchNode |
| CpuCores |
string |
The number of CPU cores. |
1 |
| MemorySize |
string |
The memory size of the node. Unit: MB. |
2048 |
| StorageType |
string |
The storage type. Valid values for Enterprise Edition:
Valid values for Standard Edition:
|
essdautopl |
| HotStandbyCluster |
string |
The hot standby storage cluster. Valid values:
|
OFF |
| SubCategory |
string |
The specification type of the compute node. Valid values:
|
Exclusive |
| StorageUsed |
integer |
The storage space used by the cluster. Unit: bytes. |
3009413120 |
| RemoteMemorySize |
string |
The size of the remote memory. Unit: MB. |
3612 |
| ConnectionResourceQuota |
integer |
||
| ConnectionResourceUsed |
integer |
The connection resources used by AgenticDB. |
Examples
Success response
JSON format
{
"TotalRecordCount": 16,
"PageRecordCount": 5,
"RequestId": "9B7BFB11-C077-4FE3-B051-F69CEB******",
"PageNumber": 12,
"Items": {
"DBCluster": [
{
"VpcId": "vpc-****************",
"VswitchId": "vsw-***************",
"ExpireTime": "2020-11-14T16:00:00Z",
"Expired": "false",
"DBNodeNumber": 2,
"CreateTime": "2020-08-14T05:58:42Z",
"PayType": "Prepaid",
"StoragePayType": "Prepaid",
"ServerlessType": "AgileServerless",
"StrictConsistency": "ON",
"DBNodeClass": "polar.mysql.x4.large",
"Tags": {
"Tag": [
{
"Key": "MySQL",
"Value": "5.6"
}
]
},
"DBType": "MySQL",
"LockMode": "Unlock",
"DBNodes": {
"DBNode": [
{
"DBNodeClass": "polar.mysql.x4.large",
"ZoneId": "cn-hangzhou-i",
"DBNodeRole": "Reader",
"DBNodeId": "pi-****************",
"RegionId": "cn-hangzhou",
"Serverless": "ON",
"ImciSwitch": "OFF",
"HotReplicaMode": "OFF"
}
]
},
"RegionId": "cn-hangzhou",
"DeletionLock": 0,
"DBVersion": "5.6",
"DBClusterId": "pc-****************",
"DBClusterStatus": "Running",
"ResourceGroupId": "rg-************",
"SearchStorageUsed": 89227945573,
"StorageSpace": 50,
"DBClusterNetworkType": "VPC",
"DBClusterDescription": "GDN-1",
"ZoneId": "cn-hangzhou-i",
"Engine": "POLARDB",
"Category": "Normal",
"AiType": "SearchNode",
"CpuCores": "1",
"MemorySize": "2048",
"StorageType": "essdautopl",
"HotStandbyCluster": "OFF",
"SubCategory": "Exclusive",
"StorageUsed": 3009413120,
"RemoteMemorySize": "3612",
"ConnectionResourceQuota": 0,
"ConnectionResourceUsed": 0
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRegionId.Malformed | The specified parameter RegionId is not valid. | The specified RegionId parameter is invalid. |
| 400 | NumberExceed.Tags | The Tags parameter's number is exceed. | The number of tags specified in the tags parameter exceeds the limit. |
| 400 | InvalidPageSize.Malformed | The specified parameter PageSize is not valid. | The specified PageSize parameter is invalid. |
| 400 | InvalidPageNumber.Malformed | The specified parameter PageNumber is not valid. | The specified PageNumber parameter is invalid. |
| 400 | InvalidRecentCreationInterval.Malformed | The specified parameter RecentCreationInterval is not valid. | The specified RecentCreationInterval parameter is invalid. |
| 400 | InvalidRecentExpirationInterval.Malformed | The specified parameter RecentExpirationInterval is not valid. | The specified RecentExpirationInterval parameter is invalid. |
| 500 | InternalError | The request processing has failed due to some unknown error, exception or failure. | The request failed to be processed because unknown errors, exceptions, or failures have occurred. |
| 404 | DBTypeOrDBVersion.Malformed | The specified DBType does not match DBVersion. | The specified values of DBType and DBVersion do not match. |
| 503 | ServiceUnavailable | The request has failed due to a temporary failure of the server. | A temporary server error occurred. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.