Queries the scheduled O\\\&M tasks of an ApsaraDB for MongoDB 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:
- 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 |
---|---|---|---|---|
dds:DescribeActiveOperationTasks | list |
|
| none |
Request parameters
Parameter | Type | Required | Description | Example |
---|---|---|---|---|
Region | string | No | The region ID of the instance. Note
If you set the Region parameter to all, all tasks created within your Alibaba Cloud account are queried. In this case, you must set the taskType parameter to all.
| cn-beijing |
TaskType | string | No | The task type. | *** |
PageSize | integer | No | The number of entries to return on each page. Valid values: 30, 50, and 100. Default value: 30. | 30 |
PageNumber | integer | No | The page number of the page to return. | 1 |
ProductId | string | No | The ID of the service. | *** |
DbType | string | No | The type of the database engine. | *** |
Status | integer | No | The status of the task. Valid values:
| 0 |
InsName | string | No | The name of the instance. | dds-bp16aaccfe10e3e4 |
AllowChange | integer | No | Specifies whether to allow the modification operation. Valid values:
| -1 |
AllowCancel | integer | No | Specifies whether to allow the cancellation operation. Valid values:
| *** |
ChangeLevel | string | No | The type of task configuration change. Valid values:
| *** |
Response parameters
Examples
Sample success responses
JSON
format
{
"PageNumber": 1,
"RequestId": "111E7B16-0A87-4CBA-B271-F34AD61E099F",
"PageSize": 30,
"TotalRecordCount": 727,
"Items": [
{
"Status": 0,
"ChangeLevelEn": "***",
"TaskType": "***",
"InsName": "***",
"Region": "cn-hangzhou",
"ImpactZh": "***",
"CreatedTime": "2021-07-14 10:48:43",
"SwitchTime": "2022-11-24T11:20:00Z",
"ChangeLevelZh": "***",
"Deadline": "1646014421633",
"PrepareInterval": "***",
"TaskTypeZh": "***",
"CurrentAVZ": "***",
"AllowChange": "0",
"DbVersion": "5.6",
"ImpactEn": "***",
"InsComment": "***",
"StartTime": "2022-12-24T06:01:05Z",
"ModifiedTime": "2022-12-24T09:48:01Z",
"AllowCancel": "***",
"DbType": "mongoDb",
"ChangeLevel": "***",
"TaskTypeEn": "***",
"ResultInfo": "***",
"Id": 0,
"SubInsNames": [
"***"
]
}
]
}
Error codes
For a list of error codes, visit the Service error codes.