Queries the types of O&M tasks on an ApsaraDB for MongoDB instance and the number and details of tasks of each type.
Debugging
Request parameters
| Parameter | Type | Required | Example | Description |
|---|---|---|---|---|
| Action | String | Yes | DescribeActiveOperationTaskType |
The operation that you want to perform. Set the value to DescribeActiveOperationTaskType. |
| RegionId | String | No | cn-hangzhou |
The region ID of the instance. You can call the DescribeRegions operation to query the most recent region list. |
| IsHistory | Integer | No | 0 |
Specifies whether to return all O&M tasks. Valid values:
Default value: 0. |
| ResourceGroupId | String | No | rg-acfmyiu4ekp**** |
The ID of the resource group. |
Response parameters
| Parameter | Type | Example | Description |
|---|---|---|---|
| RequestId | String | C7EE83BF-7BA8-5087-BAC9-ED85ED54**** |
The ID of the request. |
| TypeList | Array of Items |
The list of tasks. |
|
| TaskType | String | rds_apsaradb_upgrade |
The type of the task. Valid values:
|
| TaskTypeInfoEn | String | Update of the minor version |
The task type (English). |
| TaskTypeInfoZh | String | rds_apsaradb_upgrade |
The task type (Chinese). |
| Count | Integer | 1 |
The number of pending tasks. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/?Action=DescribeActiveOperationTaskType
&RegionId=cn-hangzhou
&IsHistory=1
&<Common request parameters>Sample success responses
XML format
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeActiveOperationTaskTypeResponse>
<RequestId>C7EE83BF-7BA8-5087-BAC9-ED85ED54****</RequestId>
<TypeList>
<TaskTypeInfoZh>Update of the minor version</TaskTypeInfoZh>
<TaskType>rds_apsaradb_upgrade</TaskType>
<Count>0</Count>
<TaskTypeInfoEn>Minor version update</TaskTypeInfoEn>
</TypeList>
</DescribeActiveOperationTaskTypeResponse>JSON format
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "C7EE83BF-7BA8-5087-BAC9-ED85ED54****",
"TypeList" : [ {
"TaskTypeInfoZh" : "Update of the minor version",
"TaskType" : "rds_apsaradb_upgrade",
"Count" : 0,
"TaskTypeInfoEn" : "Minor version update"
} ]
}Error codes
For a list of error codes, visit the API Error Center.