Modifies the backup policy of an ApsaraDB for Redis instance.
Debugging
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:
|
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:
|
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.