Starts a backup-based restoration task.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

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 yyyy-MM-dd HH:mm:ss.

BackupLevel String No db

The level of the backup. Valid values:

  • db: The database level.
  • instance: the instance level.
BackupMode String No phy

The backup method. Valid values:

  • logic: the logical backup.
  • phy: fast backup
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.