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

Querying Asset Catalog Statistics

Function

This API is used to query asset catalog statistics. You can filter the statistics by group label ID and type ID. You can obtain the statistics summary of asset catalogs, such as the number of assets and distribution of asset types.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/metadata/catalog/statistics

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 statistics 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 statistics 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

bucket

ObsStaticInfo object

Bucket risk statistics.

column

ColumnStaticInfo object

Column risk statistics.

database

StaticInfo object

Database risk statistics.

file

ObsStaticInfo object

Bucket risk statistics.

table

StaticInfo object

Table risk statistics.

Table 4 ColumnStaticInfo

Parameter

Type

Description

risk_num

Integer

Number of risks.

total

Long

Total number.

week_on_week

Integer

Week-on-Week change.

Table 5 ObsStaticInfo

Parameter

Type

Description

risk_num

Long

Number of risks.

total

Long

Total number.

Table 6 StaticInfo

Parameter

Type

Description

risk_num

Integer

Number of risks.

total

Integer

Total number.

week_on_week

Integer

Week-on-Week change.

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.