Queries the number of shards in an AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeDBClusterShardNumber |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
The region ID. Note
Call the DescribeRegions operation to query the most recent region list. |
cn-hangzhou |
| DBClusterId |
string |
Yes |
The cluster ID. Note
Call the DescribeDBClusters operation to query the IDs of all AnalyticDB for MySQL clusters within a region. |
am-uf6g8w25jacm7**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
CBE843D8-964D-5EA3-9D31-822125611B6E |
| ShardNumber |
integer |
The number of shards that you want to change during the data migration. |
128 |
| AvailableShardNumberList |
array<object> |
The available shard counts, including the current and desired number of shards. |
|
|
object |
The available shard counts, including the current and desired number of shards. |
||
| ShardNumber |
integer |
The number of shards. |
128 |
| AvailableShardNumbers |
array |
The available shard counts, excluding the current shard count. |
|
|
integer |
The number of shards. |
[ 128, 256, 512 ] |
Examples
Success response
JSON format
{
"RequestId": "CBE843D8-964D-5EA3-9D31-822125611B6E",
"ShardNumber": 128,
"AvailableShardNumberList": [
{
"ShardNumber": 128
}
],
"AvailableShardNumbers": [
0
]
}
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.