You can call this operation to start a DBS 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 Required StartRestoreTask

The parameter specified by the system. Value: StartRestoreTask.

RestoreTaskId String Required s102h7rfXXXX

The ID of the restoration task.

RegionId String No cn-hangzhou

The region ID, which you can call DescribeRegions query.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxxxx

The client token that is used to ensure the idempotence of the request.

Response parameters

Parameter Type Example Description
ErrCode String Param.NotFound

The error code.

ErrMessage String The specified parameter %s value is not valid.

The error message.

HttpStatusCode Integer 200

The HTTP status code.

RequestId String 60AF7C5D-EF4D-4D48-8FD523FDF28AC

The ID of the request.

RestoreTaskId String s102h7rfXXXX

The ID of the restoration task.

Success Boolean true

Indicates whether the request succeeded.

Examples

Sample requests

http(s)://dbs-api.cn-hangzhou.aliyuncs.com/? Action=StartRestoreTask
&RestoreTaskId=s102h7rfXXXX
&<Common request parameters>

Sample success responses

XML format

<RestoreTaskId>s102h7rf5anq</RestoreTaskId>
<RequestId>60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC</RequestId>
<HttpStatusCode>200</HttpStatusCode>
<Success>true</Success>

JSON format

{
    "RestoreTaskId": "s102h7rf5anq",
    "RequestId": "60AF7C5D-EF4D-4D48-8FD5-C0823FDF28AC",
    "HttpStatusCode": 200,
    "Success": true
}

Errors

For a list of error codes, visit the API Error Center.