Starts a backup-based restoration task.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | StartRestore |
Required parameter. Set this parameter to StartRestore. |
DrdsInstanceId | String | Yes | rds******** |
The ID of the DRDS instance. |
PreferredBackupTime | String | No | 2019-09-10 20:18:18 |
The restoration time of the instance, in the format of |
BackupLevel | String | No | db |
The level of the backup. Valid values:
|
BackupMode | String | No | phy |
The backup method. Valid values:
|
BackupDbNames | String | No | test1,test2 |
The name of the database to be restored. Separate multiple databases with commas (,). Note If you do not specify any database name, all databases in the instance are restored
by default.
|
BackupId | String | No | 23*** |
The ID of the DRDS backup set. Note If you do not specify this parameter, the system restores data by time (PreferredBackupTime).
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 721C71DD-D3D0-4327-BFDD-678326****** |
The ID of the request. |
Result | String | success |
Indicates whether SQL audit was disabled for the DRDS database. |
Success | Boolean | True |
Indicates whether the request was successful. |
Examples
Sample requests
http(s)://drds.aliyuncs.com/? Action=StartRestore
&DrdsInstanceId=drds********
&<Common request parameters>
Sample success responses
XML
format
<Result>success</Result>
<RequestId>721C71DD-D3D0-4327-BFDD-678326******</RequestId>
<Success>true</Success>
JSON
format
{
"Result": "success",
"RequestId": "721C71DD-D3D0-4327-BFDD-678326******",
"Success": true
}
Error codes
For a list of error codes, visit the API Error Center.