You can call this operation to restore backup sets to the old instances.

Note This operation is deprecated.

Debugging

You can use OpenAPI Explorer to perform debugging. OpenAPI Explorer allows you to perform various operations to simplify API usage. For example, you can retrieve APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required? Example Description
Action String Yes RestoreDBInstance

The operation that you want to perform. Set this parameter to RestoreDBInstance.

DBInstanceId String Yes rm-uf6wjk5xxxxx

The ID of the instance.

ClientToken String No ETnLKlblzczshOTUbOCzxxxxx

The client token that is used to guarantee the idempotency of requests. The client token is generated by the client and is unique among different requests. It is a string of up to 64 ASCII characters.

BackupId String No 327329803

The ID of the backup set. You can call the DescribeBackups API operation to query the IDs of backup sets.

Note At least one of the BackupId and RestoreTime parameters must be entered.
RestoreTime String No 2011-06-11T16:00:00Z

The specified point in time within the backup retention period. Format: yyyy-MM-ddTHH:mm:ssZ.

Note At least one of the BackupId and RestoreTime parameters must be entered.
AccessKeyId String No LTAIfCxxxxxxx

The AccessKey ID issued by Alibaba Cloud for users to access services.

Response parameters

Parameter Type Example Description
RequestId String 37441409-FFD1-40AA-8EC5-9ECF5E2F7C29

The ID of the request.

Examples

Sample requests


http(s)://rds.aliyuncs.com/? Action=RestoreDBInstance
&DBInstanceId=rm-uf6wjk5xxxxx
&BackupId=327329803
&<Common request parameters>

Successful response examples

XML format

<RestoreDBInstanceResponse>
       <RequestId>37441409-FFD1-40AA-8EC5-9ECF5E2F7C29</RequestId>
</RestoreDBInstanceResponse>

JSON format

{
	"RequestId":"37441409-FFD1-40AA-8EC5-9ECF5E2F7C29"
}

Error codes

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