Modifies the collection types of audit logs for an ApsaraDB for MongoDB instance.
Operation description
The instance must be in the Running instance status when you invoke this operation.
This operation is limited to 30 calls per minute. If this limit is exceeded, the calls are throttled. Do not invoke this operation at a high frequency. If you require high-frequency calls, use a Logstore. For details, 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 collection types of audit logs. Separate multiple collection types with commas (,).
|
insert,query,update,delete |
| RoleType |
string |
No |
The role of the node in the instance. Valid values:
Note
Metric description
Valid values:
|
db |
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.