You can call this operation to enable or disable SQL data collector 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 ModifyDBClusterAuditLogCollector

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

CollectorStatus String Yes Enable

Specifies whether to enable or disable SQL data collector.

  • Enable: enables SQL data collector.
  • Disable: disables SQL data collector.
DBClusterId String Yes pc-bpxxxxxxxxxx

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

Response parameters

Parameter Type Example Description
RequestId String 22C0ACF0-DD29-4B67-9190-B7A48C72C6E5

The ID of the request.

Examples

Sample requests

http(s)://polardb.aliyuncs.com/? Action=ModifyDBClusterAuditLogCollector
&CollectorStatus=Enable
&DBClusterId=pc-bpxxxxxxxxxx
&<Common request parameters>

Sample success responses

XML format

<RequestId>22C0ACF0-DD29-4B67-9190-B7A48C72C6E5</RequestId>

JSON format

{
	"RequestId": "22C0ACF0-DD29-4B67-9190-B7A48C72C6E5"
}

Error codes

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