Enables or disables SQL collector for a PolarDB cluster. The features related to SQL collector include Audit Logs and SQL Explorer.
Operation description
Note: This API has been deprecated and is no longer maintained. We recommend that you use Enable or configure DAS Enterprise Edition.
If DAS Enterprise Edition is available in the region of the cluster, calling this API to enable SQL Audit automatically enables the latest DAS Enterprise Edition available in that region. For information about database engines and regions supported by each DAS Enterprise Edition version, see Supported database engines and regions for DAS Enterprise Edition.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterAuditLogCollector |
update |
*dbcluster
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
The cluster ID. |
pc-*************** |
| CollectorStatus |
string |
Yes |
Specifies whether to enable or disable SQL collector. Valid values:
|
Enable |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
22C0ACF0-DD29-4B67-9190-B7A48C****** |
Examples
Success response
JSON format
{
"RequestId": "22C0ACF0-DD29-4B67-9190-B7A48C******"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | OperationDenied.DBClusterStatus | The operation is not permitted due to status of cluster. | The PolarDB cluster does not support this operation in the current state. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.