Enables or disables SQL data collector for a PolarDB cluster. The features of the 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 ModifyDBClusterAuditLogCollector.

CollectorStatus String Yes Enable

Specifies whether to enable or disable SQL data collector. Valid values:

  • Enable: enables SQL data collector.
  • Disabled: disables SQL data collector.
DBClusterId String Yes pc-***************

The ID of the cluster.

Response parameters

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

The ID of the request.

Examples

Sample requests

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

Sample success responses

XML format

<ModifyDBClusterAuditLogCollectorResponse>
  <RequestId>22C0ACF0-DD29-4B67-9190-B7A48C******</RequestId>
</ModifyDBClusterAuditLogCollectorResponse>

JSON format

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

Error codes

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