You can call this operation to query the types of O&M tasks on an ApsaraDB for MongoDB instance and the number 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 region ID of the instance. |
IsHistory | Integer | No | 0 |
Specifies whether to return all O&M tasks. Valid values:
Default value: 0. |
ResourceGroupId | String | No | sg-bpxxxxxxxxxxxxxxxxxx |
The ID of the resource group. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
RequestId | String | 339BFDFD-BBC0-40C1-93E0-EE691DE28B21 |
The ID of the request. |
TypeList | Array of Items |
Details about the tasks. |
|
Count | Integer | 1 |
The number of pending tasks. |
TaskType | String | rds_apsaradb_upgrade |
The type of the task. Valid values:
|
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/? Action=DescribeActiveOperationTaskType
&<Common request parameters>
Sample success responses
XML
format
<RequestId>CCB7F6B4-A7EA-48C0-963C-5647AC38B784</RequestId>
<TypeList>
<Count>1</Count>
<TaskType>rds_apsaradb_network_upgrade</TaskType>
</TypeList>
JSON
format
{
"RequestId": "CCB7F6B4-A7EA-48C0-963C-5647AC38B784",
"TypeList": [{"Count": 1, "TaskType": "rds_apsaradb_network_upgrade"}]
}
Error codes
For a list of error codes, visit the API Error Center.