DescribeActiveOperationTasks
Queries the details of scheduled O&M tasks for MongoDB instances.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeActiveOperationTasks |
list |
*Instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Region |
string |
No |
The ID of the region to which the pending event belongs. You can call the DescribeRegions operation to query the region ID. Note
A value of all specifies all region IDs. |
cn-beijing |
| TaskType |
string |
No |
The task type. Valid values:
|
all |
| PageSize |
integer |
No |
The number of entries per page. Valid values: 30, 50, and 100. Default value: 30. |
30 |
| PageNumber |
integer |
No |
The page number. The value must be greater than 0. Default value: 1. |
1 |
| ProductId |
string |
No |
The product name. For MongoDB instances, set the value to MongoDB. |
MongoDB |
| DbType |
string |
No |
The database type. Default value: all. |
mongoDb |
| Status |
integer |
No |
The task status, which is used to filter the returned tasks. Valid values:
|
-1 |
| InsName |
string |
No |
The name of the instance. This parameter is optional. If you specify this parameter, you can specify only one instance name. |
dds-bp16aaccfe10**** |
| AllowChange |
integer |
No |
Specifies whether the execution time can be modified. Valid values:
|
-1 |
| AllowCancel |
integer |
No |
Specifies whether the task can be canceled. Valid values:
|
-1 |
| ChangeLevel |
string |
No |
The change level. Valid values:
|
all |
| ResourceGroupId |
string |
No |
The ID of the resource group. |
rg-acfmyiu4ekp**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| PageNumber |
integer |
The page number. |
1 |
| RequestId |
string |
The request ID. |
111E7B16-0A87-4CBA-B271-F34AD61E**** |
| PageSize |
integer |
The number of entries per page. |
30 |
| TotalRecordCount |
integer |
The total number of returned task records. |
1 |
| Items |
array<object> |
The O&M tasks. |
|
|
object |
|||
| Status |
integer |
The task status. Valid values:
|
3 |
| ChangeLevelEn |
string |
The event level in English. |
System maintenance |
| TaskType |
string |
The task type. Valid values:
|
rds_apsaradb_upgrade |
| InsName |
string |
The name of the instance. |
dds-bp16aaccfe10**** |
| Region |
string |
The ID of the region to which the pending event belongs. |
cn-beijing |
| ImpactZh |
string |
The event impact in Chinese. |
Transient instance disconnection |
| CreatedTime |
string |
The creation time. The time follows the yyyy-mm-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-05-30T14:30:00Z |
| SwitchTime |
string |
The time when the backend initiates the switchover. The time follows the yyyy-mm-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-05-30T14:30:00Z |
| ChangeLevelZh |
string |
The event level in Chinese. |
System O&M |
| Deadline |
string |
The deadline for adjusting the task execution time. The time follows the yyyy-mm-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-05-30T23:59:59Z |
| PrepareInterval |
string |
The preparation time required between the start time of the O&M task and the switchover time. The time follows the HH:mm:ss format. |
04:00:00 |
| TaskTypeZh |
string |
The task reason in Chinese. |
Minor version upgrade |
| CurrentAVZ |
string |
The current zone. |
cn-beijing-h |
| AllowChange |
string |
Specifies whether the execution time can be modified. Valid values:
|
1 |
| DbVersion |
string |
The database DPI engine version number. |
5.6 |
| ImpactEn |
string |
The event impact in English. |
Transient instance disconnection |
| InsComment |
string |
The alias or description of the instance. |
test |
| StartTime |
string |
The time when the backend executes the task. The time follows the yyyy-mm-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-05-30T00:00:00Z |
| ModifiedTime |
string |
The modification time. The time follows the yyyy-mm-ddThh:mm:ssZ format. The time is displayed in UTC. |
2023-05-30T14:30:00Z |
| AllowCancel |
string |
Specifies whether the task can be canceled. Valid values:
|
1 |
| DbType |
string |
The type of the database engine. |
mongoDb |
| ChangeLevel |
string |
The event level code. Valid values:
|
S1 |
| TaskTypeEn |
string |
The task reason in English. |
Minor version update |
| ResultInfo |
string |
The execution result information. |
userCancel |
| Id |
integer |
The task ID. |
11111 |
| SubInsNames |
array |
The child instances. |
|
|
string |
The name of the child task. |
sub1369716295573-tes2cy6****.2013052818**** |
|
| TaskParams |
string |
The task parameters. |
"" |
Examples
Success response
JSON format
{
"PageNumber": 1,
"RequestId": "111E7B16-0A87-4CBA-B271-F34AD61E****",
"PageSize": 30,
"TotalRecordCount": 1,
"Items": [
{
"Status": 3,
"ChangeLevelEn": "System maintenance",
"TaskType": "rds_apsaradb_upgrade",
"InsName": "dds-bp16aaccfe10****",
"Region": "cn-beijing\n",
"ImpactZh": "实例闪断",
"CreatedTime": "2023-05-30T14:30:00Z",
"SwitchTime": "2023-05-30T14:30:00Z",
"ChangeLevelZh": "系统运维",
"Deadline": "2023-05-30T23:59:59Z",
"PrepareInterval": "04:00:00",
"TaskTypeZh": "小版本升级",
"CurrentAVZ": "cn-beijing-h",
"AllowChange": "1",
"DbVersion": "5.6",
"ImpactEn": "Transient instance disconnection\n",
"InsComment": "test",
"StartTime": "2023-05-30T00:00:00Z",
"ModifiedTime": "2023-05-30T14:30:00Z\n",
"AllowCancel": "1",
"DbType": "mongoDb",
"ChangeLevel": "S1",
"TaskTypeEn": "Minor version update\n",
"ResultInfo": "userCancel",
"Id": 11111,
"SubInsNames": [
"sub1369716295573-tes2cy6****.2013052818****"
],
"TaskParams": "\"\""
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.