You can call this operation to query whether SQL data collector is enabled for an Apsara PolarDB cluster. The features of SQL data collector include audit logs and SQL Explorer.

Debugging

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
Action String No DescribeDBClusterAuditLogCollector

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

DBClusterId String Yes pc-bpxxxxxxxxxxxxxxx

The ID of the Apsara PolarDB cluster that you want to manage.

Response parameters

Parameter Type Example Description
CollectorStatus String Disabled

The status of SQL data collector.

  • Enable: SQL data collector is enabled.
  • Disabled: SQL data collector is disabled.
RequestId String 59011D2B-2A38-4207-A86C-72BC1F882D19

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=DescribeDBClusterAuditLogCollector
&DBClusterId=pc-bpxxxxxxxxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<CollectorStatus>Disabled</CollectorStatus>
<RequestId>59011D2B-2A38-4207-A86C-72BC1F882D19</RequestId>

JSON format

{
	"CollectorStatus": "Disabled",
	"RequestId": "59011D2B-2A38-4207-A86C-72BC1F882D19"
}

Error codes

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