Checks whether an ApsaraDB for MongoDB instance meets the conditions for data restoration.
Operation description
This operation applies to replica set instances and sharded cluster instances.
After you confirm that the instance data can be restored, call the CreateDBInstance operation to restore data to a new instance.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:CheckRecoveryCondition |
get |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| SourceDBInstance |
string |
Yes |
The ID of the source instance. |
dds-bp1378**** |
| DatabaseNames |
string |
No |
The name of the source database. The value is a JSON array. Note
If you do not specify this parameter, all databases are restored. |
["db1","db2"] |
| RestoreTime |
string |
No |
The point in time to which the instance is restored. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format (ISO 8601, UTC). Note
|
2022-08-22T08:00:00Z |
| BackupId |
string |
No |
The backup ID. Note
|
5664**** |
| ResourceGroupId |
string |
No |
The ID of the resource group to which the instance belongs. |
sg-bp179**** |
| SourceDBInstance |
string |
Yes |
The ID of the source instance. |
dds-bp1378**** |
| SrcRegion |
string |
No |
The region where the source instance resides. Note
|
cn-beijing |
| DestRegion |
string |
No |
The region of the backup set used for cross-region restoration. Note
Required when RestoreType is set to 3. |
cn-hangzhou |
| RestoreType |
string |
No |
The restoration type. Note
|
0 |
| InstanceType |
string |
No |
The instance architecture. Valid values:
Note
|
replicate |
| EngineVersion |
string |
No |
The database engine version of the instance.
|
4.2 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response body. |
||
| RequestId |
string |
The request ID. |
D563A3E7-6010-45FE-A0CD-9283414C9657 |
| DBInstanceName |
string |
The instance ID. |
dds-bp1378**** |
| IsValid |
boolean |
Whether the instance data can be restored. Valid values:
|
true |
Examples
Success response
JSON format
{
"RequestId": "D563A3E7-6010-45FE-A0CD-9283414C9657",
"DBInstanceName": "dds-bp1378****",
"IsValid": true
}
Error codes
|
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. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.