Modifies the audit log types collected for a MongoDB instance.
Operation description
-
The instance must be in the running state when you call this operation.
-
This operation is applicable only to general-purpose local-disk or dedicated local-disk instances.
-
You can call this operation up to 30 times per minute. To call this operation at a higher frequency, use a Logstore. For more information, see Manage a Logstore.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:ModifyAuditLogFilter |
update |
*dbinstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp12c5b040dc**** |
| Filter |
string |
Yes |
The type of logs collected by the audit log feature of the instance. Separate multiple types with commas (,). Valid values:
|
insert,query,update,delete |
| RoleType |
string |
No |
The role of the node in the instance. Valid values:
|
primary |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
E209BE2B-F264-4B9D-81F6-A5A5FB1FBF28 |
Examples
Success response
JSON format
{
"RequestId": "E209BE2B-F264-4B9D-81F6-A5A5FB1FBF28"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidParameters.Format | Specified parameters is not valid. | The parameter entered is invalid. |
| 400 | InvalidFilterParam | Specified filter is not valid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.