All Products
Search
Document Center

:QuerySensClassification

更新時間:May 06, 2024

Queries data categories 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

QuerySensClassification

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

TemplateId

String

No

e1970541-6cf5-4d23-b101-d5b66f6e1024

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

400

The HTTP status code.

Data

Any

[{ "nodeName": "teset1", "sensitiveNotNull": true, "nodeId": "1aac2e35-b437-486b-95c7-a5ae48371024", "nodeOldId": "1aac2e35-b437-486b-95c7-a5ae48371024", "parentId": "0" }]

The returned data about data categories. The data is in the JSON format.

RequestId

String

10000001

The request ID.

Examples

Sample requests

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

Sample success responses

XML format

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

<QuerySensClassificationResponse>
    <Success>true</Success>
    <ErrorCode>9990030003</ErrorCode>
    <ErrorMessage>A required parameter is not specified.</ErrorMessage>
    <HttpStatusCode>400</HttpStatusCode>
    <Data>[{         "nodeName": "teset1",         "sensitiveNotNull": true,         "nodeId": "1aac2e35-b437-486b-95c7-a5ae48371024",         "nodeOldId": "1aac2e35-b437-486b-95c7-a5ae48371024",         "parentId": "0"     }]</Data>
    <RequestId>10000001</RequestId>
</QuerySensClassificationResponse>

JSON format

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

{
  "Success" : true,
  "ErrorCode" : "9990030003",
  "ErrorMessage": "A required parameter is not specified.",
  "HttpStatusCode" : 400,
  "Data" : "[{         \"nodeName\": \"teset1\",         \"sensitiveNotNull\": true,         \"nodeId\": \"1aac2e35-b437-486b-95c7-a5ae48371024\",         \"nodeOldId\": \"1aac2e35-b437-486b-95c7-a5ae48371024\",         \"parentId\": \"0\"     }]",
  "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.