Queries the details of recoverable databases and tables.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeMetaList |
get |
*DBCluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. Note
Call the DescribeDBClusters operation to query the details of all clusters in your account. |
pc-************** |
| BackupId |
string |
No |
The ID of the backup set. Note
|
111111 |
| RestoreTime |
string |
No |
The point in time to which you want to restore data. Specify the time in the YYYY-MM-DDThh:mmZ format. The time must be in UTC. Note
You must specify either the |
2020-10-04T01:40:00Z |
| GetDbName |
string |
No |
The name of the database, such as Note
|
test_db |
| PageSize |
integer |
No |
The number of entries to return on each page. Valid values:
|
30 |
| PageNumber |
integer |
No |
The page number. The value must be an integer that is greater than 0 and does not exceed the maximum value of the Integer data type. Default value: 1. |
1 |
| RegionCode |
string |
No |
The region ID of the instance. You can call DescribeDBClusterAttribute to query the region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| TotalPageCount |
string |
The total number of pages. |
1 |
| TotalRecordCount |
string |
The total number of records. |
2 |
| PageSize |
string |
The number of records on the current page. |
30 |
| RequestId |
string |
The request ID. |
AA815DE7-B576-4B22-B33C-3FB31A****** |
| PageNumber |
string |
The page number. |
1 |
| Items |
array<object> |
The details of recoverable databases and tables. |
|
|
object |
|||
| Database |
string |
The name of the database that can be recovered. |
test_db |
| Tables |
array |
The names of the tables that can be recovered. |
|
|
string |
The name of the recoverable table. |
test_tb1 |
|
| Size |
array |
The size of the database or table, in bytes. |
|
|
integer |
The size of the database or table in bytes. |
16384 |
|
| DBClusterId |
string |
The cluster ID. |
pc-bp1s826a1up****** |
Examples
Success response
JSON format
{
"TotalPageCount": "1",
"TotalRecordCount": "2",
"PageSize": "30",
"RequestId": "AA815DE7-B576-4B22-B33C-3FB31A******",
"PageNumber": "1",
"Items": [
{
"Database": "test_db",
"Tables": [
"test_tb1"
],
"Size": [
16384
]
}
],
"DBClusterId": "pc-bp1s826a1up******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRestoreType.Format | Specified restore type is not valid. | The specified restore type is invalid. |
| 400 | InvalidRestoreTime.Format | Specified restore time is not valid. | The specified restoration time is invalid. |
| 400 | InvalidBackupSetID.NotFound | Specified backup set ID does not exist. | |
| 400 | IncorrectBackupSetState | Current backup set state does not support operations. | |
| 400 | InvalidDBName.Duplicate | Specified DB name already exists in the This instance. | The specified DBName parameter already exists in the cluster. |
| 400 | InvalidParameters.Format | Specified parameters is not valid. | The specified parameters are invalid. |
| 400 | InsufficientResourceCapacity | There is insufficient capacity available for the requested instance. | Insufficient storage capacity for the specified cluster. |
| 400 | InvalidRestoreType.NotFound | At least one of BackupId and RestoreTime is malformed. | The format of the specified BackupId or RestoreTime parameter is invalid. |
| 400 | MissingUserID | The request is missing a user_id parameter. | You must specify the UserID parameter in the request. |
| 400 | MissingUID | The request is missing a uid parameter. | You must specify the UID parameter in the request. |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
| 404 | InvalidBackup.NotFound | The available backup does not exist in recovery time. | The specified backup does not exist within the time range for restoration. |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. | The specified DBClusterId parameter does not exist in the current record. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.