Modifies the switching time of a pending 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 ModifyPendingMaintenanceAction

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

RegionId String Yes cn-hangzhou

The region ID of the cluster.

Note You can call the DescribeRegions operation to query the region ID details.
Ids String Yes 111111

The ID of the task. You can specify multiple task IDs at a time to modify the switching time of the tasks in a unified manner. The task IDs must be separated with commas (,).

SwitchTime String Yes 2020-06-09T22:00:00Z

The time that you specify for the background 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.

ResourceGroupId String No rg-************

The ID of the resource group.

Response parameters

Parameter Type Example Description
RequestId String 93061E17-B56A-4324-BC95-D0FFD2******

The ID of the request.

Ids String 111111

The ID of the task.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/?Action=ModifyPendingMaintenanceAction
&RegionId=cn-hangzhou
&Ids=111111
&SwitchTime=2020-06-09T22:00:00Z
&<Common request parameters>

Sample responses

XML format

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

<ModifyPendingMaintenanceActionResponse>
    <RequestId>93061E17-B56A-4324-BC95-D0FFD2******</RequestId>
    <Ids>111111</Ids>
</ModifyPendingMaintenanceActionResponse>

JSON format

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

{
  "RequestId" : "93061E17-B56A-4324-BC95-D0FFD2******",
  "Ids" : "111111"
}

Error codes

HttpCode Error code Error message Description
400 RequiredParam.NotFound Required input param is not found. The error message returned because the specified parameter does not exist.
400 TaskModifyError Part of the tasks cannot be modified. The error message returned because some tasks cannot be modified. Try again later.
400 SwitchTimeAfterDeadline The switch time should be earlier than deadline. The error message returned because the time parameter is invalid. The error message returned because the switching time is not earlier than the deadline.
400 StartTimeBeforeNow The start time should not be earlier than the current time. The error message returned because the start time is earlier than the current time.

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