Modifies the scheduled switchover time of an operations and maintenance (O&M) task.
You can receive notifications of events such as instance migration and version upgrades by SMS messages, phone calls, emails, internal messages, and notifications in the ApsaraDB for Redis console. In addition to modifying the scheduled switchover time by calling this operation, you can also modify the time in the ApsaraDB for Redis console. For more information, see Query or manage pending events.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | ModifyActiveOperationTask |
The operation that you want to perform. Set the value to: ModifyActiveOperationTask. |
Ids | String | Yes | 11111,22222 |
The ID of the O&M task. Separate multiple IDs with commas (,). Note You can call the DescribeActiveOperationTask operation to query IDs of O&M tasks.
|
SwitchTime | String | Yes | 2019-10-17T18:50:00Z |
The scheduled switchover time to be specified. Specify the time in the yyyy-MM-ddTHH:mm:ssZ format. The time must be in UTC. Note The time cannot be later than the latest operation time. You can call the DescribeActiveOperationTask operation. The Deadline parameter in the response indicates the latest operation time.
|
RegionId | String | No | cn-hangzhou |
The ID of the region where the instance is deployed. You can call the DescribeRegions operation to query the region IDs. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
Ids | String | 11111,22222 |
The ID of the O&M task. Multiple IDs are separated with commas (,). |
RequestId | String | 5D622714-AEDD-4609-9167-F5DDD3D1**** |
The ID of the request. |
Examples
Sample requests
http(s)://https://r-kvstore.aliyuncs.com/?Action=ModifyActiveOperationTask
&Ids=11111,22222
&SwitchTime=2019-10-17T18:50:00Z
&<Common request parameters>
Sample success responses
XML
format
<ModifyActiveOperationTaskResponse>
<RequestId>5D622714-AEDD-4609-9167-F5DDD3D1****</RequestId>
<Ids>11111,22222</Ids>
</ModifyActiveOperationTaskResponse>
JSON
format
{
"RequestId": "5D622714-AEDD-4609-9167-F5DDD3D1****",
"Ids": "11111,22222"
}
Error codes
For a list of error codes, visit the API Error Center.