Backs up an ApsaraDB for Redis instance.

You can also back up an instance in the ApsaraDB for Redis console. For more information, see Back up and recover data in the console.

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 CreateBackup

The operation that you want to perform. Set the value to CreateBackup.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

RegionId String No cn-hangzhou

The ID of the region where the instance is deployed.

Response parameters

Parameter Type Example Description
RequestId String 2FF6158E-3394-4A90-B634-79C49184****

The ID of the request.

BackupJobID String 1162****

The ID of the backup job.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/?Action=CreateBackup
&InstanceId=r-bp1zxszhcgatnx****
&<Common request parameters>

Sample success responses

XML format

<CreateBackupResponse>
      <RequestId>2FF6158E-3394-4A90-B634-79C49184****</RequestId>
      <BackupJobID>1162****</BackupJobID>
</CreateBackupResponse>

JSON format

{
	"RequestId": "2FF6158E-3394-4A90-B634-79C49184****",
	"BackupJobID": "1162****"
}

Error codes

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