Queries the detailed information about O\&M tasks of an ApsaraDB for Redis instance.
Operation description
After you have called this API operation and queried the information about a specific O&M task, you can also call the ModifyActiveOperationTask operation to modify the scheduled switchover time of the O&M task.
Debugging
Authorization information
The following table shows the authorization information corresponding to the API. The authorization information can be used in the Action
policy element to grant a RAM user or RAM role the permissions to call this API operation. Description:
- Operation: the value that you can use in the Action element to specify the operation on a resource.
- Access level: the access level of each operation. The levels are read, write, and list.
- Resource type: the type of the resource on which you can authorize the RAM user or the RAM role to perform the operation. Take note of the following items:
- The required resource types are displayed in bold characters.
- If the permissions cannot be granted at the resource level,
All Resources
is used in the Resource type column of the operation.
- Condition Key: the condition key that is defined by the cloud service.
- Associated operation: other operations that the RAM user or the RAM role must have permissions to perform to complete the operation. To complete the operation, the RAM user or the RAM role must have the permissions to perform the associated operations.
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
kvstore:DescribeActiveOperationTask | get |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Region | string | Yes | The region ID of the O&M task. You can call the DescribeRegions operation to query the most recent region list. Note
A value of all indicates all region IDs.
| all |
TaskType | string | Yes | The type of the O&M task. Valid values:
| all |
IsHistory | integer | No | Specifies whether to return the historical tasks. Default value: 0. Valid values:
| 1 |
PageSize | integer | No | The number of entries to return on each page. Specify a value greater than 10. Default value: 30. | 30 |
PageNumber | integer | No | The number of the page to return. The value must be an integer that is greater than 0. Default value: 1. | 1 |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageNumber": 1,
"RequestId": "2E1FF0CC-F42A-4B6F-A1F4-A17B1451****",
"PageSize": 30,
"TotalRecordCount": 1,
"Items": [
{
"Status": 5,
"Deadline": "2018-07-19 23:59:59",
"PrepareInterval": "14:00:00",
"TaskType": "rds_apsaradb_upgrade",
"StartTime": "2018-07-19 10:00:00",
"ModifiedTime": "2018-07-19 14:00:00",
"InsName": "r-bp1lgal1sdvxrz****",
"DbType": "redis",
"Region": "cn-hanghzou",
"CreatedTime": "2018-07-15 23:59:59",
"Id": 114111,
"SwitchTime": "2018-07-19 14:00:00"
}
]
}
Error codes
HTTP status code | Error code | Error message | Description |
---|---|---|---|
400 | RequiredParam.NotFound | Required input param is not found. | Missing input parameter |
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|