You can call this operation to modify the backup policy of a MongoDB instance.


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.

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

PreferredBackupPeriod String Yes Monday,Wednesday,Friday,Sunday

The period of backup. Valid values:

  • Monday
  • Tuesday
  • Wednesday
  • Thursday
  • Friday
  • Saturday
  • Sunday
Note Separate multiple values with commas (,).
PreferredBackupTime String Yes 03:00Z-04:00Z

The time when the backup is performed. The time is in the format of HH:mm Z- HH:mm Z.

Note The maximum period is 1 hour.
RegionId String No cn-hangzhou

The region ID of the instance. You can call the DescribeDBInstanceAttribute operation to query the region ID of the instance.

AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Prameter Type Sample response Description
RequestId String 644A359C-B871-4DD3-97B5-ED91EF5809C2

The ID of the request.


Sample requests

http(s):// Action=ModifyBackupPolicy
&<Common request parameters>

Sample success response

XML format


JSON format


Error codes

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