Queries oversized non-partitioned tables in an AnalyticDB for MySQL cluster.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
adb:DescribeOversizeNonPartitionTableInfos |
get |
*DBClusterLakeVersion
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
am-8vb46cpn2aaxxxxxx |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
| StartTime |
string |
No |
The start of the time range to query. Specify the time in ISO 8601 format: yyyy-MM-ddTHH:mm:ssZ. The time must be in UTC. |
2022-09-06T03:06:00Z |
| EndTime |
string |
No |
The end of the time range to query. Specify the time in ISO 8601 format: yyyy-MM-ddTHH:mm:ssZ. The time must be in UTC. |
2021-05-03T15:01:00Z |
| PageSize |
integer |
No |
The number of entries per page. |
30 |
| PageNumber |
integer |
No |
The page number. Pages start from page 1. |
1 |
| Lang |
string |
No |
The language of file titles and error messages. Valid values:
|
zh |
| Order |
string |
No |
The sort order for query results. Specify the value in JSON format. Example:
Note
If this parameter is not specified, results are sorted by total data size per table in descending order. |
[{\"Field\":\"SchemaName\",\"Type\":\"Asc\"}] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| TotalCount |
string |
The total number of entries returned. |
21 |
| PageNumber |
integer |
The page number. |
1 |
| PageSize |
integer |
The number of entries per page. |
100 |
| RequestId |
string |
The request ID. |
F67B5AC5-6CDE-5187-9E25-B1EEE9AC4D91 |
| DBClusterId |
string |
The cluster ID. |
am-8vb46cpn2aaxxxxxx |
| Tables |
array<object> |
The queried oversized non-partitioned tables. |
|
|
object |
The queried oversized non-partitioned table. |
||
| SchemaName |
string |
The name of the database. |
adb_demo |
| TableName |
string |
The name of the table. |
test |
| RowCount |
integer |
The number of rows in the table. |
3294 |
| IndexSize |
integer |
The data size of regular indexes. Unit: bytes. |
1073741824 |
| DataSize |
integer |
The data size of table records. Unit: bytes. Note
Table record data size excludes regular and primary key indexes. |
21474836480 |
| LocalDataSize |
integer |
The size of hot data. Unit: bytes. |
24696061952 |
| PrimaryKeySize |
integer |
The data size of the primary key index. Unit: bytes. |
2147483648 |
| RemoteDataSize |
integer |
The size of cold data. Unit: bytes. |
0 |
| SpaceRatio |
number |
The storage percentage of the table. Unit: %. Note
Formula: Table storage percentage = Total table data size / Total cluster data size × 100%. |
23 |
| DetectionItems |
array<object> |
Detection items and results. |
|
|
object |
A detection item and its result. |
||
| Name |
string |
The name of the detection item. |
Oversized non-partitioned tables |
| Message |
string |
Details about the detection result. |
Multiple oversized non-partitioned tables are detected. |
| Status |
string |
The severity level of the detection result. Valid values:
|
WARNING |
Examples
Success response
JSON format
{
"TotalCount": "21",
"PageNumber": 1,
"PageSize": 100,
"RequestId": "F67B5AC5-6CDE-5187-9E25-B1EEE9AC4D91",
"DBClusterId": "am-8vb46cpn2aaxxxxxx",
"Tables": [
{
"SchemaName": "adb_demo",
"TableName": "test",
"RowCount": 3294,
"IndexSize": 1073741824,
"DataSize": 21474836480,
"LocalDataSize": 24696061952,
"PrimaryKeySize": 2147483648,
"RemoteDataSize": 0,
"SpaceRatio": 23
}
],
"DetectionItems": [
{
"Name": "Oversized non-partitioned tables",
"Message": "Multiple oversized non-partitioned tables are detected.",
"Status": "WARNING"
}
]
}
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.