Mengaktifkan atau menonaktifkan SQL collector untuk kluster PolarDB Basis Data Relasional Cloud-Native. Fitur yang terkait dengan SQL collector mencakup Audit Logs dan Penjelajah SQL.
Deskripsi operasi
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.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardb:ModifyDBClusterAuditLogCollector |
update |
*dbcluster
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| DBClusterId |
string |
Yes |
ID kluster. |
pc-*************** |
| CollectorStatus |
string |
Yes |
Apakah akan mengaktifkan atau menonaktifkan SQL collector. Nilai valid:
|
Enable |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
22C0ACF0-DD29-4B67-9190-B7A48C****** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "22C0ACF0-DD29-4B67-9190-B7A48C******"
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 403 | OperationDenied.DBClusterStatus | The operation is not permitted due to status of cluster. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.