QuerySensLevel
Queries the data sensitivity levels defined in Data Security Guard.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
dataworks:QuerySensLevel |
get |
*All Resource
|
None | None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| TemplateId |
string |
Yes |
The ID of the template defined in Data Security Guard. Call QueryDefaultTemplate to obtain this ID. |
e1970541-6cf5-4d23-b101-d5b66f6e10af |
| tenantId |
string |
Yes |
The tenant ID. To obtain it, log on to the DataWorks console, find your workspace, go to the DataStudio page, click your username in the upper-right corner, and choose User Info. |
10241024 |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
The response parameters. |
||
| Success |
boolean |
Whether the request was successful. Valid values:
|
true |
| ErrorCode |
string |
The error code. |
9990030003 |
| ErrorMessage |
string |
The error message. |
Missing parameter |
| HttpStatusCode |
integer |
The HTTP status code. |
200 |
| Data |
any |
The data sensitivity levels, returned as a JSON array. |
[{"level":1,"isSensitive":false,"levelName":"1level"},{"level":2,"isSensitive":false,"levelName":"2level"}] |
| RequestId |
string |
The request ID. |
10000001 |
Examples
Success response
JSON format
{
"Success": true,
"ErrorCode": "9990030003",
"ErrorMessage": "Missing parameter",
"HttpStatusCode": 200,
"Data": "[{\"level\":1,\"isSensitive\":false,\"levelName\":\"1level\"},{\"level\":2,\"isSensitive\":false,\"levelName\":\"2level\"}]",
"RequestId": "10000001"
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | BADPARAMETERS | Parameters are missing or in the wrong format. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.