Queries the data distribution of a table across partitions.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeTableDetail |
get |
DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
You can call the DescribeDBClusters operation to query the cluster IDs of all AnalyticDB for MySQL clusters in a region. |
am-bp1xxxxxxxx47 |
| SchemaName |
string |
Yes |
The database name. |
adb_demo |
| TableName |
string |
Yes |
The table name. |
test |
| RegionId |
string |
No |
The region ID of the cluster. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| AvgSize |
integer |
The average row count per partition. |
0 |
| RequestId |
string |
The request ID. |
1AD222E9-E606-4A42-BF6D-8A4442913CEF |
| Items |
object |
The queried shards. |
|
| Shard |
array<object> |
The queried shards. |
|
|
object |
|||
| Size |
integer |
The row count of the partition. |
0 |
| Id |
integer |
The partition ID. Only the numeric portion of the partition name is returned. |
1 |
Examples
Success response
JSON format
{
"AvgSize": 0,
"RequestId": "1AD222E9-E606-4A42-BF6D-8A4442913CEF",
"Items": {
"Shard": [
{
"Size": 0,
"Id": 1
}
]
}
}
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.