Memeriksa apakah data instans ApsaraDB for MongoDB dapat dipulihkan.
Deskripsi operasi
Operasi ini berlaku untuk instans set replika dan instans kluster sharded.
Setelah memanggil operasi ini untuk mengonfirmasi bahwa data instans dapat dipulihkan, Anda dapat memanggil operasi CreateDBInstance guna memulihkan data ke instans baru.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CheckRecoveryCondition |
get |
*Instance
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| SourceDBInstance |
string |
Yes |
ID instans sumber. |
dds-bp1378**** |
| DatabaseNames |
string |
No |
Nama database sumber. Nilainya berupa array JSON. Catatan
Jika Anda tidak menentukan parameter ini, semua database akan dipulihkan secara default. |
["db1","db2"] |
| RestoreTime |
string |
No |
Titik waktu pemulihan instans. Tentukan waktu dalam standar ISO 8601 dengan format yyyy-MM-ddTHH:mm:ssZ. Waktu harus dalam UTC. Catatan
|
2022-08-22T08:00:00Z |
| BackupId |
string |
No |
ID backup. Catatan
|
5664**** |
| ResourceGroupId |
string |
No |
ID kelompok sumber daya tempat instans tersebut berada. |
sg-bp179**** |
| SourceDBInstance |
string |
Yes |
ID instans sumber. |
dds-bp1378**** |
| SrcRegion |
string |
No |
Wilayah tempat instans sumber berada. Catatan
|
cn-beijing |
| DestRegion |
string |
No |
Wilayah set cadangan yang digunakan untuk cadangan lintas wilayah dan pemulihan. Catatan
Parameter ini wajib ditentukan ketika Anda mengatur parameter RestoreType ke 3. |
cn-hangzhou |
| RestoreType |
string |
No |
Tipe pemulihan. Catatan
|
0 |
| InstanceType |
string |
No |
Arsitektur instans. Nilai yang valid:
Catatan
|
replicate |
| EngineVersion |
string |
No |
Versi engine database instans.
|
4.2 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Informasi yang dikembalikan. |
||
| RequestId |
string |
ID permintaan. |
D563A3E7-6010-45FE-A0CD-9283414C9657 |
| DBInstanceName |
string |
ID instans |
dds-bp1378**** |
| IsValid |
boolean |
Menunjukkan apakah data instans dapat dipulihkan. Nilai yang valid:
|
true |
Contoh
Respons sukses
JSONformat
{
"RequestId": "D563A3E7-6010-45FE-A0CD-9283414C9657",
"DBInstanceName": "dds-bp1378****",
"IsValid": true
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidMeta.WrongFormat | Meta information is wrong formatter. | |
| 400 | InvalidRestoreTime.Format | Specified restore time is not valid. | The specified RestoreTime value is invalid. |
| 403 | InvalidDBName | The specified database name is not allowed. | The specified database name is invalid. |
| 403 | InvalidMeta.TooLarge | Meta information is too large. | The metadata is too large. |
| 403 | SingleDBRestore.BackupSetNotSupport | This backup set do not support this operation. | Single-database recovery is not supported for the specified time point or backup file. |
| 403 | IncorrectDBInstanceType | Current DB instance type does not support this operation. | |
| 403 | IncorrectEngineVersion | Current engine version does not support operations. | |
| 403 | InvalidBackupLogStatus | Current backup log enable status does not support this operation. | The operation is not supported when log backup is enabled. |
| 403 | IncorrectBackupSetState | Current backup set state does not support operations.. | |
| 404 | InvalidBackupSetID.NotFound | Specifiedbackup set ID does not exist. | |
| 404 | InvalidBackup.NotFound | Theavailable backup does not exist in recovery time. | No backup set is available during the specified recovery period. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.