Modifies the automatic backup policy of an Apsara PolarDB cluster.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | No | ModifyBackupPolicy |
The operation that you want to perform. Set the value to ModifyBackupPolicy. |
DBClusterId | String | Yes | pc-************* |
The ID of the cluster. |
PreferredBackupPeriod | String | Yes | Monday,Tuesday |
The backup cycle. Valid values:
Note Select at least two values. Separate multiple values with commas (,).
|
PreferredBackupTime | String | Yes | 15:00Z-16:00Z |
The time range during which the automatic backup is performed. Specify the time range
in the |
DataLevel1BackupRetentionPeriod | String | No | 3 |
The retention period for the level-1 backups. Valid values: 3 to 14. Unit: days. |
DataLevel2BackupRetentionPeriod | String | No | 0 |
The retention period for the level-2 backups. Valid values:
|
BackupRetentionPolicyOnClusterDeletion | String | No | NONE |
The retention policy for the backup sets. The retention policy takes effect after you delete the cluster. Valid values:
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | C5A5DF0E-5968-4DC1-882E-AC2FE7****** |
The ID of the request. |
Examples
Sample request
http(s)://polardb.aliyuncs.com/? Action=ModifyBackupPolicy
&DBClusterId=pc-*************
&PreferredBackupPeriod=Monday,Tuesday
&PreferredBackupTime=15:00Z-16:00Z
&<Common request parameters>
Sample success responses
XML
format
<ModifyBackupPolicyResponse>
<RequestId>C5A5DF0E-5968-4DC1-882E-AC2FE7******</RequestId>
</ModifyBackupPolicyResponse>
JSON
format
{
"RequestId":"C5A5DF0E-5968-4DC1-882E-AC2FE7******"
}
Error codes
For a list of error codes, visit the API Error Center.