Modifies 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 the value to ModifyBackupPolicy.

InstanceId String Yes r-bp1zxszhcgatnx****

The ID of the instance.

PreferredBackupPeriod String Yes Tuesday

The period of backup. Valid values:

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

The time to back up data in the HH:mmZ-HH:mmZ format. The time is displayed in UTC.

EnableBackupLog Integer No 1

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

  • 1: enables incremental backup
  • 0: disables incremental backup. This is the default value.
RegionId String No cn-hangzhou

The ID of the region.

Response parameters

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

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

JSON format

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

Error codes

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