Modifies the backup policy of an ApsaraDB for MongoDB 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. |
DBInstanceId | String | Yes | dds-bp16cb162771**** |
The ID of the instance. |
PreferredBackupTime | String | Yes | 03:00Z-04:00Z |
The time range to back up data. Specify the time in the HH:mmZ-HH:mmZ format. The time must be in UTC. Note The time range is 1 hour.
|
PreferredBackupPeriod | String | Yes | Monday,Wednesday,Friday,Sunday |
The day of a week on which to back up data. Valid values:
Note Separate multiple values with commas (,).
|
BackupRetentionPeriod | Long | No | 30 |
The retention period of full backups. Note
|
EnableBackupLog | Long | No | 0 |
Specifies whether to enable log backup. Default value: 0. Valid values:
|
LogBackupRetentionPeriod | Long | No | 7 |
The number of days for which log backups are retained. Default value: 7. Valid values: 7 to 730. |
SnapshotBackupType | String | No | Standard |
The snapshot backup type. Default value: Standard. Valid values:
|
BackupInterval | String | No | -1 |
The frequency at which high-frequency backups are created. Valid values:
Note
|
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 644A359C-B871-4DD3-97B5-ED91EF5809C2 |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/?Action=ModifyBackupPolicy
&DBInstanceId=dds-bp16cb162771****
&PreferredBackupPeriod=Monday,Wednesday,Friday,Sunday
&PreferredBackupTime=03:00Z-04:00Z
&<Common request parameters>
Sample success responses
XML
format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyBackupPolicyResponse>
<RequestId>657D2872-ED98-5778-A676-10132E30****</RequestId>
</ModifyBackupPolicyResponse>
JSON
format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "657D2872-ED98-5778-A676-10132E30****"
}
Error codes
For a list of error codes, visit the API Error Center.