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

Querying Asset Catalog Statistics Charts

Function

This API is used to query statistics charts in an asset catalog. You can filter the statistics charts by group label ID and type ID to obtain the details of the statistics charts, such as bar charts and line charts.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/metadata/catalog/statical-chart

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique project ID.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

label_id

Yes

String

Group label ID, which is used to filter the statistical charts of a specific group. You must specify either label_id or type_id.

type_id

Yes

String

Type ID, which is used to filter the statistical charts of a specific type. You must specify either label_id or type_id.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

detection_rules

Array of DetectionRule objects

Detection rule list.

sensitive_col_infos

Array of SensitiveColInfo objects

Sensitive column information list.

total_column_number

Long

Total number of columns.

Table 4 DetectionRule

Parameter

Type

Description

hit_number

Integer

Matched items.

rule_name

String

Rule name.

Table 5 SensitiveColInfo

Parameter

Type

Description

color_number

Integer

Number of colors.

level_name

String

Level name.

sensitive_number

Integer

Sensitive items.

Example Requests

None

Example Responses

None

Status Codes

Status Code

Description

200

Query result.

401

Unauthorized. The user is not logged in or the token is invalid.

403

Unauthorized to access the resource.

404

The specified project does not exist.

Error Codes

See Error Codes.