You can call this operation to modify the O&M period of a MongoDB instance.

Debugging

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 ModifyDBInstanceMaintainTime

The operation that you want to perform. Set the value to ModifyDBInstanceMaintainTime.

DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance.

MaintainEndTime String Yes 02:00Z

The end time of the instance O&M period. The format is HH:mmZ.

Note The difference between the start time and end time must be one hour, For example, if MaintainStartTime is01:00Z, MaintainEndTime must be 02:00Z.
MaintainStartTime String Yes 01:00Z

The start time of the instance O&M period. The format is HH:mmZ.

Response parameters

Prameter Type Sample response Description
RequestId String A9310426-C763-42A2-A3AD-70A8DA204531

The ID of the request.

Examples

Sample requests

http(s)://mongodb.aliyuncs.com/? Action=ModifyDBInstanceMaintainTime
&MaintainStartTime=01:00Z
&MaintainEndTime=02:00Z
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameter>

Sample success response

XML format

<ModifyDBInstanceMaintainTimeResponse>
      <RequestId>A9310426-C763-42A2-A3AD-70A8DA204531</RequestId>
</ModifyDBInstanceMaintainTimeResponse>

JSON format

{
    "RequestId": "A9310426-C763-42A2-A3AD-70A8DA204531"
}

Error codes.

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