Queries O&M events by calling the DescribeActiveOperationTasks operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:DescribeActiveOperationTasks |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
The region. |
cn-hangzhou |
| TaskType |
string |
No |
The task type. A value of all indicates that all tasks of the user are queried. Set the value to all. |
all |
| ProductId |
string |
No |
The product name. Default value: polarx. |
polarx |
| DbType |
string |
No |
The database type. Set the value to polarx. |
polarx |
| InsName |
string |
No |
The instance name. Default value: empty string. |
pxc-xxxxx |
| ChangeLevel |
string |
No |
The change level. Default value: all. Valid values:
|
all |
| PageSize |
integer |
No |
The number of entries per page. Default value: 25. |
25 |
| PageNumber |
integer |
No |
The page number. The value must be greater than 0. Default value: 1. |
1 |
| Status |
integer |
No |
The task status. Valid values:
|
-1 |
| AllowChange |
integer |
No |
Specifies whether the time can be modified. Valid values:
|
-1 |
| AllowCancel |
integer |
No |
Specifies whether cancellation is allowed. Valid values:
|
-1 |
| RegionId |
string |
Yes |
The region ID. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| PageSize |
integer |
The number of entries per page. |
12 |
| RequestId |
string |
The request ID. |
xxxx |
| PageNumber |
integer |
The page number. |
1 |
| TotalRecordCount |
integer |
The total number of records. |
23 |
| Items |
array<object> |
The list of parameters. |
|
|
object |
The list of parameters. |
||
| AllowCancel |
string |
Indicates whether cancellation is allowed. Valid values:
|
0 |
| AllowChange |
string |
Indicates whether modification is allowed. Valid values:
|
0 |
| ChangeLevel |
string |
The change level (can be ignored). |
Risk |
| ChangeLevelEn |
string |
The change level in English. |
Risk repairment |
| ChangeLevelZh |
string |
The change level in Chinese. |
风险修复 |
| CreatedTime |
string |
The creation time. |
2021-06-15T16:00:00Z |
| CurrentAVZ |
string |
The current availability zone. |
cn-shanghai-et-a |
| DbType |
string |
The database type. |
polarx |
| DbVersion |
string |
The database version. |
2.0 |
| Deadline |
string |
The deadline. |
2021-06-15T16:00:00Z |
| Id |
integer |
The task ID. |
1 |
| Impact |
string |
The impact (not output). |
-- |
| ImpactEn |
string |
The impact in English. |
Transient instance disconnection |
| ImpactZh |
string |
The impact in Chinese. |
中断 |
| InsComment |
string |
The description. |
xxx |
| InsName |
string |
The instance name. |
pxc-dd |
| ModifiedTime |
string |
The modification time. |
2021-06-15T16:00:00Z |
| PrepareInterval |
string |
The preparation interval. |
03:00:00 |
| Region |
string |
The region. |
cn-shanghai-et15-b01 |
| ResultInfo |
string |
The result information (can be ignored). |
-- |
| StartTime |
string |
The start time. |
2021-06-15T16:00:00Z |
| Status |
integer |
The status. Valid values:
|
3 |
| SubInsNames |
array |
The list of child instances. |
|
|
string |
The child instance list entry. |
pxc-xx |
|
| SwitchTime |
string |
The switchover time. |
2021-06-15T16:00:00Z |
| TaskType |
string |
The task type. |
rds_apsaradb_transfer |
| TaskTypeEn |
string |
The task type in English (can be ignored). |
-- |
| TaskTypeZh |
string |
The task type in Chinese (can be ignored). |
-- |
Examples
Success response
JSON format
{
"PageSize": 12,
"RequestId": "xxxx",
"PageNumber": 1,
"TotalRecordCount": 23,
"Items": [
{
"AllowCancel": "0",
"AllowChange": "0",
"ChangeLevel": "Risk",
"ChangeLevelEn": "Risk repairment",
"ChangeLevelZh": "风险修复",
"CreatedTime": "2021-06-15T16:00:00Z",
"CurrentAVZ": "cn-shanghai-et-a",
"DbType": "polarx",
"DbVersion": "2.0",
"Deadline": "2021-06-15T16:00:00Z",
"Id": 1,
"Impact": "--",
"ImpactEn": "Transient instance disconnection",
"ImpactZh": "中断",
"InsComment": "xxx",
"InsName": "pxc-dd",
"ModifiedTime": "2021-06-15T16:00:00Z",
"PrepareInterval": "03:00:00",
"Region": "cn-shanghai-et15-b01",
"ResultInfo": "--",
"StartTime": "2021-06-15T16:00:00Z",
"Status": 3,
"SubInsNames": [
"pxc-xx"
],
"SwitchTime": "2021-06-15T16:00:00Z",
"TaskType": "rds_apsaradb_transfer",
"TaskTypeEn": "--",
"TaskTypeZh": "--"
}
]
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | IdempotentParameterMismatch | The request uses the same client token as a previous, but non-identical request. Do not reuse a client token with different requests, unless the requests are identical. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.