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
|
Parameter |
Mandatory |
Type |
Description |
|---|---|---|---|
|
project_id |
Yes |
String |
Unique project ID. |
Request Parameters
None
Response Parameters
Status code: 200
|
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. |
|
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.
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot