Changes the switching time of a pending O&M event.

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 ModifyMaintenanceAction

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

Ids String Yes 11111

The ID of the pending O&M event. You can specify multiple IDs to batch change the switching time. Separate multiple IDs with commas (,).

Note
  • You can also call the DescribeMaintenanceAction operation to view the details of the pending O&M event, including the ID of the event.
  • You can change the switching time only for pending O&M events. The switching time of historical O&M events cannot be changed. For more information about the status of pending and historical O&M events, see DescribeMaintenanceAction.
SwitchTime String Yes 2021-07-09T22:00:00Z

The point in time that you specify for the backend to perform the action that corresponds to the pending event. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

RegionId String Yes cn-hangzhou

The ID of the region where the pending O&M event occurs.

Note
  • You can call the DescribeRegions operation to query the regions and zones supported by AnalyticDB for MySQL, including the region IDs.

Response parameters

Parameter Type Example Description
Ids String 11111

The ID of the O&M event.

RequestId String 7856CBE7-5BD0-4EE1-AC62-749392******

The ID of the request.

Examples

Sample requests

http(s)://adb.aliyuncs.com/?Action=ModifyMaintenanceAction
&Ids=11111
&SwitchTime=2021-07-09T22:00:00Z
&RegionId=cn-hangzhou
&<Common request parameters>

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<ModifyMaintenanceActionResponse>
    <Ids>11111</Ids>
    <RequestId>7856CBE7-5BD0-4EE1-AC62-749392******</RequestId>
</ModifyMaintenanceActionResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Ids" : "11111",
  "RequestId" : "7856CBE7-5BD0-4EE1-AC62-749392******"
}

Error codes

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