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 |
---|---|---|---|---|
adb:DescribeTableAccessCount | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBClusterId | string | Yes | The ID of the cluster. Note
You can call the DescribeDBClusters operation to query the details of all AnalyticDB for MySQL clusters within a specified region, including cluster IDs.
| am-bp1r053byu48p**** |
TableName | string | No | The name of the specific table. Note
If this parameter is not specified, the number of accesses to all tables within the specified cluster for a specified date is returned.
| CUSTOMER |
StartTime | string | Yes | The date to query. Specify the time in the yyyy-MM-dd format. The time must be in UTC. Note
Only data for the last 30 days can be queried.
| 2021-08-30 |
Order | string | No | The order by which to sort query results. Specify the parameter value in the JSON string format. Example:
Note
If this parameter is not specified, query results are sorted in ascending order of the database to which a specific table belongs.
| [{"Field":"TableSchema","Type":"Asc"}] |
PageNumber | integer | No | The number of the page to return. The value must be an integer that is greater than 0. Default value: 1. | 1 |
PageSize | integer | No | The number of entries to return on each page. The value must be a positive integer. Default value: 30. | 30 |
RegionId | string | Yes | The ID of the region. Note
You can call the DescribeRegions operation to query the regions and zones supported by AnalyticDB for MySQL, including region IDs.
| cn-hangzhou |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "C242707A-01D1-54DA-A5F6-671557******",
"PageNumber": 1,
"PageSize": 30,
"TotalCount": 1,
"Items": [
{
"ReportDate": "2021-08-30",
"TableSchema": "tpch",
"AccessCount": "6",
"TableName": "CUSTOMER",
"InstanceName": "am-bp1r053byu48p****"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
503 | ServiceUnavailable | An error occurred while processing your request. | The system is unavailable. Please try again later. |
For a list of error codes, visit the Service error codes.