Queries the SQL audit information of a DRDS instance by calling the DescribeDrdsSqlAuditStatus operation.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
drds:DescribeDrdsSqlAuditStatus |
get |
*instance
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| DrdsInstanceId |
string |
Yes |
The instance ID of the DRDS instance. |
drds************ |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| Success |
boolean |
The result of the request. |
true |
| RequestId |
string |
The request ID. |
DC3ABA3E-0F8A-4596-9104-F5155C****** |
| Data |
object |
||
| Data |
array<object> |
The result set. |
|
|
object |
|||
| ExtraSlsLogStore |
string |
The Log Service Logstore from which logs are delivered. Note
This parameter is returned only if external log delivery is enabled. |
test |
| DbName |
string |
The name of the database. |
test |
| Detailed |
string |
Indicates whether the complete report of the SQL audit is supported. Valid values: true and false. |
true |
| ExtraWriteEnabled |
boolean |
Indicates whether external log delivery is enabled. Valid values: true and false. |
false |
| Enabled |
string |
Indicates whether the SQL audit feature is enabled for the database. Valid values: true and false. |
true |
| ExtraAliUid |
integer |
The UID of the external delivery. Note
This parameter is returned only if external log delivery is enabled. |
111 |
| ExtraSlsProject |
string |
The Log Service project from which logs are delivered. Note
This parameter is returned only if external log delivery is enabled. |
test |
Examples
Success response
JSON format
{
"Success": true,
"RequestId": "DC3ABA3E-0F8A-4596-9104-F5155C******",
"Data": {
"Data": [
{
"ExtraSlsLogStore": "test",
"DbName": "test",
"Detailed": "true",
"ExtraWriteEnabled": false,
"Enabled": "true",
"ExtraAliUid": 111,
"ExtraSlsProject": "test"
}
]
}
}
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.