Help Center/ Data Security Center/ API Reference/ API Description/ Sensitive Data Identification/ Obtaining the Security Level Distribution Information of the Sensitive Data Identification Result
Updated on 2026-01-13 GMT+08:00

Obtaining the Security Level Distribution Information of the Sensitive Data Identification Result

Function

This API is used to obtain the security level distribution information of the sensitive data identification result. The obtained information includes the security level ID, name, color, quantity, and percentage.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/scan-jobs/{job_id}/security-levels

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

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

job_id

Yes

String

Sensitive data identification task ID, which is used to identify a specific task.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

offset

No

Integer

Page number, which is used for pagination query. The default value is 0.

limit

No

Integer

Page size, which is used to limit the number of results returned on each page. The default value is 100.

keyword

No

String

Keyword of the sensitive information object name, which is used for fuzzy search.

asset_type

No

String

Resource type, which is used to filter results.

asset_id

No

String

Asset ID, which is used to filter results.

security_level_ids

No

Array of strings

Risk level ID array, which is used to filter results.

marker

No

Array of strings

Information about the previous or next batch, which is used for pagination query.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

total

Integer

Total number of risk objects.

security_level_list

Array of ClassificationSecurityLevelInfo objects

List of risk information, including the detailed statistics of each risk level.

Table 4 ClassificationSecurityLevelInfo

Parameter

Type

Description

security_level_id

String

Risk level ID, which uniquely identifies a risk level.

security_level_name

String

Risk level name.

security_level_color

Integer

Risk level color, which is displayed on the GUI.

count

Integer

Number of risk objects identified at the current risk level.

percent

String

Percentage of the current risk level to all risks.

Status code: 400

Table 5 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 security level distribution information of the sensitive data identification result.

GET /v1/{project_id}/scan-jobs/{job_id}/security-levels

Example Responses

Status code: 200

Request succeeded. The security level list is returned.

{
  "security_level_list" : [ {
    "security_level_id" : "xxxxxxxxxxxx",
    "security_level_name" : "L4",
    "security_level_color" : 6,
    "count" : 2,
    "percent" : "0.2000"
  } ],
  "total" : 1
}

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 security level list is returned.

400

Invalid request. Incorrect parameter format or content.

Error Codes

See Error Codes.