Memulihkan database atau tabel ke kluster PolarDB.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:RestoreTable |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. Catatan
Panggil operasi DescribeDBClusters untuk mengkueri detail semua kluster dalam akun Anda. |
pc-bp*************** |
| TableMeta |
string |
Yes |
String JSON yang menentukan database dan tabel tujuan untuk dipulihkan. Semua nilai dalam string JSON harus berupa string.
Contoh: Catatan
Panggil operasi DescribeMetaList untuk mengkueri nama database dan tabel yang dapat dipulihkan. Kemudian, masukkan informasi tersebut ke dalam format contoh. |
[ { "tables":[ { "name":"testtb", "type":"table", "newname":"testtb_restore" } ], "name":"testdb", "type":"db", "newname":"testdb_restore" } ] |
| BackupId |
string |
No |
ID set cadangan. Catatan
Parameter ini wajib diisi jika Anda ingin memulihkan database dan tabel dari set cadangan. Panggil operasi DescribeBackups untuk mengkueri ID set cadangan. |
111111 |
| RestoreTime |
string |
No |
Titik waktu ke mana Anda ingin memulihkan data. Tentukan waktu dalam format YYYY-MM-DDThh:mmZ. Waktu harus dalam Coordinated Universal Time (UTC). Catatan
|
2020-10-04T01:40:00Z |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
0C47508C-9DC8-455B-985E-2F2FA8****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "0C47508C-9DC8-455B-985E-2F2FA8******"
}
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. | |
| 403 | OperationDenied.ArchiveRestore | Archive instance does not support restore table. | |
| 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.