You can call this operation to back up an ApsaraDB for Redis instance.

For more information about how to perform the corresponding operation in the console, see Back up and recover data in the console.

Debugging

Alibaba Cloud provides OpenAPI Explorer to simplify API usage. You can use OpenAPI Explorer to search for APIs, call APIs, and dynamically generate SDK example code.

Request parameters

Parameter Type Required Example Description
Action String Yes CreateBackup

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

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance to back up.

AccessKeyId String No Lxxxxxxxxxxxxxxw

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Parameter Type Example Description
BackupJobID String 1111111

The ID of the backup job.

RequestId String 2D719BD9-A536-4D8B-BEA9-CD299DE2AE1B

The ID of the request.

Examples

Sample request


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

Sample success response

XML format

<CreateBackupResponse>
  <RequestId>2D719BD9-A536-4D8B-BEA9-CD299DE2AE1B</RequestId>
  <BackupJobID>1111111</BackupJobID>
</CreateBackupResponse>

JSON format

{
	"RequestId":"2D719BD9-A536-4D8B-BEA9-CD299DE2AE1B",
	"BackupJobID":"1111111"
}

Error codes

View error codes.