All Products
Search
Document Center

:QuerySensLevel

更新時間:May 06, 2024

Queries data sensitivity levels in Data Security Guard.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter

Type

Required

Example

Description

Action

String

Yes

QuerySensLevel

The operation that you want to perform. Set the value to QuerySensLevel.

TemplateId

String

No

e1970541-6cf5-4d23-b101-d5b66f6e10af

The ID of the template defined by Data Security Guard. You can call the QueryDefaultTemplate operation to obtain the template ID.

tenantId

String

No

10241024

The tenant ID. To obtain the tenant ID, perform the following steps: Log on to the DataWorks console. Find your workspace and go to the DataStudio page. On the DataStudio page, click the logon username in the upper-right corner and click User Info in the Menu section.

Response parameters

Parameter

Type

Example

Description

Success

Boolean

true

Indicates whether the request was successful.

  • true

  • false

ErrorCode

String

9990030003

The error code.

ErrorMessage

String

A required parameter is not specified.

The error message.

HttpStatusCode

Integer

200

The HTTP status code.

Data

Any

[{"level":1,"isSensitive":false,"levelName":"1level"},{"level":2,"isSensitive":false,"levelName":"2level"}]

The returned data about data sensitivity levels. The data is in the JSON array format.

RequestId

String

10000001

The request ID.

Examples

Sample requests

http(s)://[Endpoint]/?Action=QuerySensLevel
&TemplateId=e1970541-6cf5-4d23-b101-d5b66f6e10af
&tenantId=10241024
&Common request parameters

Sample success responses

XML format

HTTP/1.1 200 OK
Content-Type:application/xml

<QuerySensLevelResponse>
    <Success>true</Success>
    <ErrorCode>9990030003</ErrorCode>
    <ErrorMessage>A required parameter is not specified.</ErrorMessage>
    <HttpStatusCode>200</HttpStatusCode>
    <Data>[{"level":1,"isSensitive":false,"levelName":"1level"},{"level":2,"isSensitive":false,"levelName":"2level"}]</Data>
    <RequestId>10000001</RequestId>
</QuerySensLevelResponse>

JSON format

HTTP/1.1 200 OK
Content-Type:application/json

{
  "Success" : true,
  "ErrorCode" : "9990030003",
  "ErrorMessage": "A required parameter is not specified.",
  "HttpStatusCode" : 200,
  "Data" : "[{\"level\":1,\"isSensitive\":false,\"levelName\":\"1level\"},{\"level\":2,\"isSensitive\":false,\"levelName\":\"2level\"}]",
  "RequestId" : "10000001"
}

Error codes

HttpCode

Error code

Error message

Description

400

BADPARAMETERS

Parameters are missing or in the wrong format.

A required parameter is not specified.

For a list of error codes, see Service error codes.