Queries whether the audit log feature is enabled for a MongoDB instance.
Operation description
The instance must be in the running state.
This operation is available only for General-purpose Local Disk Edition and Dedicated Local Disk Edition instances.
You can call this operation up to 30 times per minute. Calls that exceed this limit are throttled. To make frequent calls, use Log Service. For more information, see Manage a Logstore.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dds:DescribeAuditPolicy |
get |
*dbinstance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBInstanceId |
string |
Yes |
The instance ID. |
dds-bp12c5b040dc**** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
111E7B16-0A87-4CBA-B271-F34AD61E099F |
| LogAuditStatus |
string |
The status of the audit log.
The default value is Disabled. |
Enable |
Examples
Success response
JSON format
{
"RequestId": "111E7B16-0A87-4CBA-B271-F34AD61E099F",
"LogAuditStatus": "Enable"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | InvalidDBInstance.Malformed | Too many instance ids or instance id format is invalid. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.