Modifies the scheduled switchover time of O&M tasks.

Alibaba Cloud sends notifications about the O&M tasks of ApsaraDB for HBase such as minor version upgrades by using text messages, voice messages, emails, internal messages, or messages in the ApsaraDB for HBase console. You can modify the scheduled switchover time by calling this operation or using the ApsaraDB for HBase console. For more information, see Query or manage pending events.

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 ModifyActiveOperationTasks

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

Ids String Yes 1111,2222

The ID of the O&M task. Separate multiple IDs with commas (,).

Note You can call the DescribeActiveOperationTask operation to query the IDs of O&M tasks.
SwitchTime String Yes 2022-02-17T18:50:00Z

The scheduled switchover time. Specify the time in yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC.

Note The time that you specify cannot be later than the deadline for performing the O&M task. You can call DescribeActiveOperationTasks to query the deadlines of O&M tasks. The deadline of a task is returned in the Deadline parameter.
ImmediateStart Integer No 1

Specifies whether to immediately perform the O&M task. Valid values:

  • 1: immediately performs the task.
  • 0: performs the task at the specified time.

Response parameters

Parameter Type Example Description
Ids String 1111,2222

The ID of the O&M task. IDs are separated by commas (,).

RequestId String 8C9CC46A-9532-4752-B59F-580112C5A45B

The ID of the request.

Examples

Sample requests

http(s)://hbase.aliyuncs.com/?Action=ModifyActiveOperationTasks
&Ids=11111,22222
&SwitchTime=2022-02-17T18:50:00Z
&ImmediateStart=1
&<Common request parameters>

Sample success responses

XML format

<ModifyActiveOperationTasksResponse>
    <RequestId>8C9CC46A-9532-4752-B59F-580112C5A45B</RequestId>
    <Ids>1111,2222</Ids>
</ModifyActiveOperationTasksResponse>

JSON format

{
    "RequestId":"8C9CC46A-9532-4752-B59F-580112C5A45B",
    "Ids":"1111,2222"
}

Error codes

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