You can call ModifyBackupPolicy to modify the backup policy of an ApsaraDB for Redis instance.

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 ModifyBackupPolicy

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

InstanceId String Yes r-bp1xxxxxxxxxxxxx

The ID of the instance.

PreferredBackupPeriod String Yes Tuesday

The backup cycle. Valid values:

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
PreferredBackupTime String Yes 00:00Z-04:00Z

Backup time in UTC. Format: HH:mmZ-HH:mmZ.

EnableBackupLog Integer No 1

Specifies whether to enable or disable incremental backup. Valid values:

  • 1 means to enable.
  • 0 means to disable. It is the default value)
RegionId String No cn-hangzhou

The ID of the region where the instance resides.

Response parameters

Parameter Type Example Description
RequestId String 8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76

The ID of the request.

Examples

Sample requests

https://r-kvstore.aliyuncs.com/
?Action=ModifyBackupPolicy
&InstanceId=r-bp1xxxxxxxxxxxxx
&PreferredBackupTime=00:00Z-04:00Z
&PreferredBackupPeriod=Tuesday
&<Common request parameters>

Sample success responses

XML format

<ModifyBackupPolicyResponse>
      <RequestId>8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76</RequestId>
</ModifyBackupPolicyResponse>

JSON format

{
    "RequestId":"8D0C0AFC-E9CD-47A4-8395-5C31BF9B3E76"
}

Error codes

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