Enables the SQL audit feature by calling the EnableSqlAudit operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:EnableSqlAudit |
update |
*instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID of the DRDS instance. |
drds*********** |
| DbName |
string |
Yes |
The name of the database for which to enable SQL audit. |
test |
| IsRecall |
boolean |
No |
Specifies whether to recall historical SQL statements for auditing. |
true |
| RecallStartTimestamp |
string |
No |
The start time of the recall period. The value is a UNIX timestamp in milliseconds. |
1568875132000 |
| RecallEndTimestamp |
string |
No |
The end time of the recall period. The value is a UNIX timestamp in milliseconds. Note
The end time must be later than the start time. |
1568875132000 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
The request ID. |
463A5F0F-12AD-4544-A902-B2B983****** |
| Result |
boolean |
Indicates whether the SQL audit feature is enabled. |
true |
| Success |
boolean |
The result of the request. |
true |
Examples
Success response
JSON format
{
"RequestId": "463A5F0F-12AD-4544-A902-B2B983******",
"Result": true,
"Success": true
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 500 | InternalError | The request processing has failed due to some unknown error. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.