Updated on 2026-01-13 GMT+08:00

Obtaining the Sensitivity Level of Data

Function

This API is used to obtain the sensitivity level of sensitive data.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/scan-templates/{template_id}/classifications

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID, which is used to identify a specific project.

template_id

Yes

String

Template ID, which uniquely identifies a template.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

classification_trees

Array of TemplateClassificationTree objects

Classification tree structure list, which indicates the hierarchical structure of the template classification.

template_category

String

Classification to which a template belongs.

template_id

String

Template ID, which uniquely identifies a template.

template_name

String

Template name, which is used to identify and manage templates.

Table 3 TemplateClassificationTree

Parameter

Type

Description

children

Array of TemplateClassificationTree objects

Sub-classification list.

children_nums

Integer

Total number of sub-classifications.

create_time

Long

Timestamp when the classification is created.

depth

Integer

Depth of the classification in the classification tree.

id

String

Classification ID, which uniquely identifies a classification.

name

String

Classification name, which is used to identify and manage classifications.

parent_id

String

Parent classification ID, which indicates the parent classification of the classification.

project_id

String

Project ID, which is used to identify a specific project.

root_id

String

Root classification ID, which indicates the root classification to which the classification belongs.

rule_nums

Long

Total number of rules associated with a classification.

update_time

Long

Timestamp when a classification is last updated.

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code, which uniquely identifies an error type.

error_msg

String

Error information, which describes the error details.

Example Requests

Obtain the sensitivity level of sensitive data.

GET /v1/{project_id}/scan-templates/{template_id}/classifications

Example Responses

Status code: 400

Invalid request. Incorrect parameter format or content.

{
  "error_code" : "dsc.40000011",
  "error_msg" : "Invalid parameter"
}

Status Codes

Status Code

Description

200

Request succeeded. The sensitivity level of sensitive data identification is returned.

400

Invalid request. Incorrect parameter format or content.

Error Codes

See Error Codes.