Queries audit logs of sensitive data access.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dms:ListSensitiveDataAuditLog |
list |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| StartTime |
string |
Yes |
The start of the time range to query. Format: yyyy-MM-DD HH:mm:ss. |
2022-11-18 10:00:00 |
| EndTime |
string |
Yes |
The end of the time range to query. Format: yyyy-MM-DD HH:mm:ss. |
2022-11-18 11:00:00 |
| ModuleName |
string |
No |
The function module to filter by. If not specified, all audit logs are returned. Valid values:
|
SQL_CONSOLE |
| OpUserName |
string |
No |
The username of the requester. |
ExampleOpUserName |
| DbName |
string |
No |
The name of the database that stores the sensitive data. |
ExampleDbName |
| TableName |
string |
No |
The name of the table that stores the sensitive data. |
ExampleTableName |
| ColumnName |
string |
No |
The name of the column that contains sensitive data. |
ExampleColumnName |
| PageSize |
integer |
Yes |
The number of entries per page. |
100 |
| PageNumber |
integer |
Yes |
The number of the page to return. |
1 |
| Tid |
integer |
No |
The ID of the tenant. |
3*** |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
Schema of Response |
||
| RequestId |
string |
The ID of the request. |
E0D21075-CD3E-4D98-8264-FD8AD04A63B6 |
| TotalCount |
integer |
The total number of entries returned. |
100 |
| ErrorCode |
string |
The error code returned if the request failed. |
403 |
| ErrorMessage |
string |
The error message returned if the request failed. |
UnknownError |
| Success |
boolean |
Indicates whether the request was successful. Valid values:
|
true |
| SensitiveDataAuditLogList |
array<object> |
The audit logs for sensitive data. |
|
|
array<object> |
|||
| UserName |
string |
The username of the requester. |
ExampleUserName |
| UserId |
integer |
The user ID of the requester. |
1** |
| ModuleName |
string |
The function module associated with the audit log. |
SQL_CONSOLE |
| DbDisplayName |
string |
The name of the database that stores the sensitive data. |
ExampleDbName@xxx.xxx.xxx.xxx:3306 |
| OpTime |
string |
The time when the operation was performed. Format: yyyy-MM-DD HH:mm:ss. |
2022-11-18 10:01:00 |
| InstanceId |
integer |
The ID of the instance. |
12**** |
| TargetName |
string |
The object on which the operation was performed. Returned in one of the following formats:
|
Ticket - 1**** |
| SensitiveDataLog |
array<object> |
The logs for sensitive data. |
|
|
object |
|||
| TableName |
string |
The name of the table that stores the sensitive data. |
ExampleTableName |
| ColumnName |
string |
The name of the column that contains sensitive data. |
ExampleColumnName |
| SecurityLevel |
string |
The sensitivity level of the data. Valid values:
|
Low |
| ColumnPermissionType |
string |
The permission that the user has on the column. Valid values:
|
Change |
| DesensitizationRule |
string |
The algorithm used for data masking. |
System default - full masking |
Examples
Success response
JSON format
{
"RequestId": "E0D21075-CD3E-4D98-8264-FD8AD04A63B6",
"TotalCount": 100,
"ErrorCode": "403",
"ErrorMessage": "UnknownError",
"Success": true,
"SensitiveDataAuditLogList": [
{
"UserName": "ExampleUserName",
"UserId": 0,
"ModuleName": "SQL_CONSOLE",
"DbDisplayName": "ExampleDbName@xxx.xxx.xxx.xxx:3306",
"OpTime": "2022-11-18 10:01:00",
"InstanceId": 0,
"TargetName": "Ticket - 1****",
"SensitiveDataLog": [
{
"TableName": "ExampleTableName",
"ColumnName": "ExampleColumnName",
"SecurityLevel": "Low",
"ColumnPermissionType": "Change",
"DesensitizationRule": "System default - full masking"
}
]
}
]
}
Error codes
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.