Modifies the maintenance window of an ApsaraDB for 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. |
| RegionId | String | No | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the region ID. |
| DBInstanceId | String | Yes | dds-bpac2345**** |
The ID of the instance. |
| MaintainStartTime | String | Yes | 01:00Z |
The start time of the maintenance window. Specify the time in the HH:mmZ format. The time must be in UTC. |
| MaintainEndTime | String | Yes | 02:00Z |
The end time of the maintenance window. Specify the time in the HH:mmZ format. The time must be in UTC. Note The end time must be later than the start time of the maintenance window.
|
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | A9310426-C763-42A2-A3AD-70A8DA204531 |
The ID of the request. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/?Action=ModifyDBInstanceMaintainTime
&DBInstanceId=dds-bpac2345****
&MaintainStartTime=01:00Z
&MaintainEndTime=02:00Z
&<Common request parameters>
Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<ModifyDBInstanceMaintainTimeResponse>
<RequestId>A9310426-C763-42A2-A3AD-70A8DA204531</RequestId>
</ModifyDBInstanceMaintainTimeResponse>
JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "A9310426-C763-42A2-A3AD-70A8DA204531"
}
Error codes
For a list of error codes, visit the API Error Center.