Mengkueri database dan tabel yang dapat dipulihkan.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:DescribeMetaList |
get |
*DBCluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID Kluster. Catatan
Panggil operasi DescribeDBClusters untuk mengkueri detail semua kluster di akun Anda. |
pc-************** |
| BackupId |
string |
No |
ID set cadangan. Catatan
|
111111 |
| RestoreTime |
string |
No |
Pengatur waktu untuk memulihkan data. Tentukan waktu dalam format YYYY-MM-DDThh:mmZ. Waktu harus dalam UTC. Catatan
Anda harus menentukan parameter |
2020-10-04T01:40:00Z |
| GetDbName |
string |
No |
Nama database, seperti Catatan
|
test_db |
| PageSize |
integer |
No |
Jumlah entri yang dikembalikan per halaman. Nilai valid:
|
30 |
| PageNumber |
integer |
No |
Nomor halaman. Nilai harus berupa bilangan bulat yang lebih besar dari 0 dan tidak melebihi nilai maksimum tipe data Integer. Nilai default: 1. |
1 |
| RegionCode |
string |
No |
ID Wilayah Instans. Anda dapat memanggil DescribeDBClusterAttribute untuk mengkueri ID Wilayah. |
cn-hangzhou |
Elemen respons
|
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****** |
Contoh
Respons sukses
JSONformat
{
"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******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidRestoreType.Format | Specified restore type is not valid. | |
| 400 | InvalidRestoreTime.Format | Specified restore time is not valid. | |
| 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. | |
| 400 | InvalidParameters.Format | Specified parameters is not valid. | |
| 400 | InsufficientResourceCapacity | There is insufficient capacity available for the requested instance. | |
| 400 | InvalidRestoreType.NotFound | At least one of BackupId and RestoreTime is malformed. | |
| 400 | MissingUserID | The request is missing a user_id parameter. | |
| 400 | MissingUID | The request is missing a uid parameter. | |
| 404 | InvalidDBCluster.NotFound | The DBClusterId provided does not exist in our records. | |
| 404 | InvalidBackup.NotFound | The available backup does not exist in recovery time. | |
| 404 | InvalidDBClusterId.NotFound | The DBInstanceId provided does not exist in our records. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.