GetOpRiskData
Retrieves the access records of risky sensitive data on a specified date across all DataWorks workspaces under a tenant.
Operation description
Prerequisites: Activate Data Security Guard in the DataWorks console and complete the data security configuration for the target workspace. The console path is Data Security > Data Security Guard.
Try it now
Test
RAM authorization
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| PageSize |
integer |
Yes |
The number of entries to return on each page. Maximum value: 1000. |
10 |
| PageNo |
integer |
Yes |
The page number. Minimum value: 1. |
1 |
| Name |
string |
No |
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"} ] |
| Date |
string |
Yes |
The date for which to retrieve access records. Format: yyyyMMdd. |
20210221 |
| RiskType |
string |
No |
The method used to identify the risk type. Valid values:
|
Manual identification |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| RiskData |
string |
The returned information about risky sensitive data. This includes totalCount (the total number of sensitive data entries) and opRiskDatas (the list of risky data). The opRiskDatas list includes the following fields:
|
{ "opRiskDatas": [ { "riskType": "Hierarchical dimension, EMR engine dimension and project dimension, EMR engine project dimension operation data, export method dimension, EMR engine", "opTime": "2021-01-04 23:39:13", "opType": "SQL_SELECT", "opAccount": "user", "sensType": "Email/name/mobile phone number", "sql": "SELECT * FROM default.jiade_1219_test_create LIMIT 20" } ], "totalCount": 499 } |
| RequestId |
string |
The request ID, which uniquely identifies the request. |
0000-ABCD-EFG**** |
Examples
Success response
JSON format
{
"RiskData": "{ \"opRiskDatas\": [ { \"riskType\": \"Hierarchical dimension, EMR engine dimension and project dimension, EMR engine project dimension operation data, export method dimension, EMR engine\", \"opTime\": \"2021-01-04 23:39:13\", \"opType\": \"SQL_SELECT\", \"opAccount\": \"user\", \"sensType\": \"Email/name/mobile phone number\", \"sql\": \"SELECT * FROM default.jiade_1219_test_create LIMIT 20\" } ], \"totalCount\": 499 }",
"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.