Queries the O\\\\\\&M event details of an instance.
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:
- For mandatory resource types, indicate with a prefix of * .
- 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 |
---|
Operation | Access level | Resource type | Condition key | Associated operation |
---|---|---|---|---|
kvstore:DescribeActiveOperationTasks | get | *All Resources * |
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Region | string | No | The region ID of the O&M task. You can call the DescribeRegions operation to query the most recent region list.
A value of all indicates all region IDs.
| cn-shanghai |
TaskType | string | No | The type of the O&M event. If this parameter is not specified, all types of O&M events are queried. Valid values:
| all |
PageSize | integer | No | The number of entries per page. Default value: 25. Maximum value: 100. | 25 |
PageNumber | integer | No | The page number. Pages start from page 1. Default value: 1. | 1 |
ProductId | string | No | The name of the service. Valid values: RDS, POLARDB, MongoDB, and Redis. For Redis instances, set the value to Redis. | Redis |
DbType | string | No | The database type. Valid values: redis | redis |
Status | integer | No | The status of an O&M event. This parameter is used to filter returned tasks. Valid values:
| 3 |
InsName | string | No | The name of the instance. You can leave this parameter empty. If you configure this parameter, you can specify the name only of one instance. | r-wz96fzmpvpr2qnqnlb |
AllowChange | integer | No | The filter condition that is used to return events based on the settings of the switching time. Default value: -1. Valid values:
| -1 |
AllowCancel | integer | No | The filter condition that is used to return events based on the settings of event cancellation. Default value: -1. Valid values:
| 1 |
ChangeLevel | string | No | The type of task configuration change. Valid values:
| all |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageNumber": 1,
"RequestId": "2D9F3768-EDA9-4811-943E-42C8006E****",
"PageSize": 25,
"TotalRecordCount": 1,
"Items": [
{
"Status": 5,
"ChangeLevelEn": "System maintenance\n",
"TaskType": "rds_apsaradb_transfer",
"InsName": "r-bp1lgal1sdvxrz****",
"Region": "cn-hanghzou",
"ImpactZh": "",
"CreatedTime": "2018-05-30T14:30:00Z\n",
"SwitchTime": "2018-05-30T14:30:00Z\n",
"ChangeLevelZh": "",
"Deadline": "2018-05-30T23:59:59Z",
"PrepareInterval": "04:00:00\n",
"TaskTypeZh": "",
"CurrentAVZ": "cn-beijing-h\n",
"AllowChange": "1",
"DbVersion": "5.0",
"ImpactEn": "Transient instance disconnection",
"InsComment": "test",
"StartTime": "2018-05-30T00:00:00Z\n",
"ModifiedTime": "2018-05-30T14:30:00Z\n",
"AllowCancel": "1",
"DbType": "redis",
"ChangeLevel": "S1",
"TaskTypeEn": "Minor version update",
"ResultInfo": "userCancel",
"Id": 11111,
"SubInsNames": [
"sub1369716295573-tes2cy6****.2013052818****\n"
],
"TaskParams": "{\n \"Action\": \"UpgradeDBInstance\"\n}",
"Impact": "TransientDisconnection"
}
]
}
Error codes
For a list of error codes, visit the Service error codes.
Change history
Change time | Summary of changes | Operation |
---|
Change time | Summary of changes | Operation |
---|