GetOpSensitiveData
Retrieves sensitive data access records for a specified date across all DataWorks workspaces under a tenant.
Operation description
Prerequisites: The account has created a DataWorks tenant, and the Data Security Guard service has been activated in the target tenant.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| Name |
string |
Yes |
The condition settings for retrieving access records. Optional parameters are as follows:
Example of retrieving sensitive data access records for the abc database of the ABC instance in Hologres: [ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"} ] Configure the parameters based on the engine used in your business. |
[ {"dbType":"hologres","instanceName":"ABC","databaseName":"abc"}, {"dbType":"ODPS.ODPS","projectName":"adbc"} ] |
| PageSize |
integer |
Yes |
The number of entries to return on each page. Minimum value: 1. Maximum value: 1000. |
1 |
| PageNo |
integer |
Yes |
The page number. Minimum value: 1. Maximum value: 1000. |
10 |
| Date |
string |
Yes |
The date for which to retrieve access records. Format: yyyyMMdd. |
20210116 |
| OpType |
string |
No |
The type of operation performed by the user on the data. Valid values:
|
SQL_SELECT |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response object. |
||
| OpSensitiveData |
string |
The returned sensitive data record information. This includes totalCount (the total number of sensitive data records) and opRiskDatas (the risk data list). The opRiskDatas list includes the following fields:
|
"opSensDatas": [ { "sensLevel": "L4", "opTime": "2021-02-07 00:14:51", "opAccount": "ALIYUN$dsg_test", "sensType": "Mobile phone number", "sql": "select * from dsg_demo.tbl_phonebook where phone_no = '1331111****';" } ], "totalCount": 6 |
| RequestId |
string |
The request ID, which uniquely identifies the request. |
0000-ABCD-EFG**** |
Examples
Success response
JSON format
{
"OpSensitiveData": "\"opSensDatas\": [ { \"sensLevel\": \"L4\", \"opTime\": \"2021-02-07 00:14:51\", \"opAccount\": \"ALIYUN$dsg_test\", \"sensType\": \"Mobile phone number\", \"sql\": \"select * from dsg_demo.tbl_phonebook where phone_no = '1331111****';\" } ], \"totalCount\": 6",
"RequestId": "0000-ABCD-EFG****"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Invalid.Param | The request parameter is invalid. | |
| 500 | InternalError.DQC.BizError | An internal error occurred. | |
| 403 | Forbidden.NoTenant | The tenant information cannot be obtained using user ID. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.