Checks whether SQL audit logs of a specified database instance have been successfully connected to Simple Log Service (SLS). After the call, the system returns the connection status between the SQL audit feature and SLS for the current instance, the project and Logstore configuration information, and whether synchronization is normal.
Operation description
The SQL audit and analysis feature of PolarDB-X 2.0 is free of charge. However, Simple Log Service charges fees for storage space, read traffic, number of requests, data transformation, and data delivery. For more information about the SQL audit feature, see Enable SQL audit and analysis.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
polardbx:CheckSqlAuditSlsStatus |
none |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
Yes |
The region in which the instance resides. > You can call the DescribeRegions operation to query the regions supported by PolarDB-X, including region IDs. |
cn-hangzhou |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Status |
string |
The enabling status of the SQL audit feature. Valid values:
|
enabled |
| RequestId |
string |
The request ID. |
173CA69A-3513-591D-8A09-C1EA37CBE2D9 |
Examples
Success response
JSON format
{
"Status": "enabled",
"RequestId": "173CA69A-3513-591D-8A09-C1EA37CBE2D9"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 404 | InvalidDBInstance.NotFound | The specified DB instance does not exist. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.