You can call this operation to query the types of audit logs collected from MongoDB instances.

The instance must be in the running state when you call this operation.

Note This operation is applicable to replica set instances. DescribeAuditLogFilter cannot be performed on standalone instances and sharded cluster instances.


OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
DBInstanceId String Yes dds-bpxxxxxxxx

The ID of the instance for which you want to query the maximum internal bandwidth.

Action String No DescribeAuditLogFilter

The operation that you want to perform. Set the value to DescribeAuditLogFilter.

RoleType String No primary

The role of the node in the instance. Valid values:

  • primary
  • secondary
AccessKeyId String No LTAIgbTGpxxxxxx

The AccessKey ID that Alibaba Cloud provides for you to access services.

Response parameters

Parameter Type Example Description
Filter String admin,slow,insert,query,update,delete,command

The operation log types of the database. The types are as follows:

  • admin: O&M and management operations
  • slow: slow operations
  • query: query operations
  • insert: insert operations
  • update: update operations
  • delete: delete operations
  • command: protocol commands such as the aggregate method
RequestId String D7C8BA0C-9350-487D-9B70-D69AF27FB1EB

The ID of the request.

RoleType String primary

The role of the node.


Sample requests

http(s):// Action=DescribeAuditLogFilter
&<Common request parameters>

Sample success responses

XML format


JSON format


Error codes

For a list of error codes, visit the API Error Center.