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

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 No CreateBackup

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

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance.

Response parameters

Parameter Type Example Description
RequestId String 2D719BD9-A536-4D8B-BEA9-CD299DE2AE1B

The ID of the request.

BackupJobID String 1111111

The ID of the backup job.

Examples

Sample requests

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

Sample success responses

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

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