Modifies a backup policy for an ApsaraDB for MongoDB instance.
Debugging
Authorization information
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
DBInstanceId | string | Yes | The instance ID. | dds-bp16cb162771**** |
PreferredBackupTime | string | Yes | The start time of the backup. Specify the time in the ISO 8601 standard in the HH:mmZ-HH:mmZ format. The time must be in UTC. Note
The time range is 1 hour.
| 03:00Z-04:00Z |
PreferredBackupPeriod | string | Yes | The day of a week when the system regularly backs up data. Valid values:
Note
Separate multiple values with commas (,).
| Monday,Wednesday,Friday,Sunday |
BackupRetentionPeriod | long | No | The retention period of full backups. Note
| 30 |
EnableBackupLog | long | No | Specifies whether to enable the log backup feature. Valid values:
| 0 |
LogBackupRetentionPeriod | long | No | The number of days for which log backups are retained. Default value: 7. Valid values: 7 to 730. | 7 |
SnapshotBackupType | string | No | The snapshot backup type. Valid values:
| Standard |
BackupInterval | string | No | The frequency at which high-frequency backup is created. Valid values:
Note
| -1 |
HighFrequencyBackupRetention | long | No | The number of days for which high-frequency backups are retained. Before you use this parameter, make sure that you specify the BackupInterval parameter. By default, high-frequency backups are retained for one day. |
Response parameters
Examples
Sample success responses
JSON
format
{
"RequestId": "644A359C-B871-4DD3-97B5-ED91EF5809C2"
}
Error codes
HTTP status code | Error code | Error message |
---|---|---|
400 | InvalidPreferredBackupPeriod.Malformed | Specified parameter PreferredBackupPeriod is not valid. |
400 | InvalidPreferredBackupTime.Malformed | Specified parameter PreferredBackupTime is not valid. |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|---|---|
2024-02-22 | The Error code has changed. The request parameters of the API has changed | View Change Details |