You can call DescribeMongoDBLogConfig to view the log service configuration of ApsaraDB for MongoDB.
This interface is based on the new version of MongoDB log service. For more information, see activate new audit logs.
Debugging
Request parameters
Parameter | Type | Required | Example | Description |
---|---|---|---|---|
Action | String | Yes | DescribeMongoDBLogConfig |
The operation that you want to perform. Set the value to DescribeMongoDBLogConfig. |
DBInstanceId | String | Yes | dds-bpxxxxxxxx |
The ID of the instance. You can call DescribeDBInstances to query. |
RegionId | String | No | cn-hangzhou |
The region ID of the instance. You can call DescribeDBInstanceAttribute to query. |
Response parameters
Parameter | Type | Example | Description |
---|---|---|---|
IsEtlMetaExist | Integer | 1 |
Whether the rule to distribute logs to Logtail is created. For more information about Logtail, see Logtail overview. Valid values:
|
IsUserProjectLogstoreExist | Integer | 1 |
Whether the log service project exists in the current region. Valid values:
|
RequestId | String | 664ECE26-658 A- 47C5-88F6-870B0132E8D2 |
The ID of the request. |
UserProjectName | String | nosql-140xxxxxxxxxxxxx-cn-hangzhou |
Specifies the name of the project in log service. |
Examples
Sample requests
http(s)://mongodb.aliyuncs.com/? Action=DescribeMongoDBLogConfig
&DBInstanceId=dds-bpxxxxxxxx
&<Common request parameters>
Sample success responses
XML
format
<UserProjectName>nosql-140xxxxxxxxxxxxx-cn-hangzhou</UserProjectName>
<RequestId>FECF2277-3EA1-4CD9-AEB9-E7DED5E84E35</RequestId>
<IsUserProjectLogstoreExist>1</IsUserProjectLogstoreExist>
<IsEtlMetaExist>1</IsEtlMetaExist>
JSON
format
{
"UserProjectName": "nosql-140xxxxxxxxxxxxx-cn-hangzhou",
"RequestId": "FECF2277-3EA1-4CD9-AEB9-E7DED5E84E35",
"IsUserProjectLogstoreExist": 1,
"IsEtlMetaExist": 1
}
Error code
For a list of error codes, visit the API Error Center.