Help Center/ Data Security Center/ API Reference/ API Description/ Metadata and Asset Catalogs/ Obtaining the Tree Structure of Asset Group Labels
Updated on 2026-01-13 GMT+08:00

Obtaining the Tree Structure of Asset Group Labels

Function

This API is used to obtain the tree structure of asset domain group labels. You will obtain the hierarchical structure information of the labels.

Calling Method

For details, see Calling APIs.

URI

GET /v1/{project_id}/metadata/asset-domain-labels

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Unique project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

depth

Integer

Label depth.

id

String

Label ID.

is_leaf

Integer

Whether the node is a leaf node. Values: 1: Yes. 0: No.

name

String

Label name.

sons

Array of LabelNode objects

Sub-label list.

total

Integer

Total number.

Table 3 LabelNode

Parameter

Type

Description

depth

Integer

Label depth.

id

String

Label ID.

is_leaf

Integer

Whether the node is a leaf node. Values: 1: Yes. 0: No.

name

String

Label name.

parent_id

String

Upper-level label ID.

sons

Array of LabelNode objects

Sub-label list.

total

Integer

Total number.

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.