Document Database Service

Query the Number of O&M Tasks in an Instance

2025-07-25 01:20:09
API Introduction

Call the describeOperationTaskCount API to query the number of O&M tasks of the MongoDB instance.

API Restrictions

None

URI
GET  /v1/eventManageOpenApi/describeOperationTaskCount

Path Parameter

None

Query Parameter

None

Request Parameters

Request Header Parameter

None

Request Body Parameter

None

Response Parameter

Parameter

Required or Not

Parameter Type

Description

Example

Lower-level Object

statusCode

Yes

Integer

Response Code

Value range: 800 indicates success, 900 indicates failure

800


message

Yes

String

Response information

The XXX information is queried successfully


returnObj

Yes

Object

Return object.


returnObj

Table returnObj

Parameter

Required or Not

Parameter Type

Description

Example

Lower-level Object

count

Yes

Integer

Number of pending O&M tasks

1


Sample Request

Request Header

None

Request Body

None

Response Example
{
    "statusCode": 800,
    "message": "the number of O&M tasks of the MongoDB instance is queried successfully",
    "returnObj": {
        "count": 3
    }
}
Status Code

Status Code

Description

800

Indicate that the request succeeded

900

Indicates that the request failed

Error Codes

None


L.nxYSK9Ecrc