Help Center/ DataArts Studio/ API Reference/ DataArts Catalog APIs/ Metric Assets/ Querying the Metric Asset Directory Tree
Updated on 2025-11-17 GMT+08:00

Querying the Metric Asset Directory Tree

Function

This API is used to query the indicator asset directory tree.

Calling Method

For details, see Calling APIs.

URI

GET /v3/{project_id}/asset/metric-tree

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details about how to obtain it, see Project ID and Account ID.

Request Parameters

Table 2 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. This parameter is mandatory when token authentication is used. You can obtain it from the value of X-Subject-Token in the response message header returned by the "Obtaining a User Token" API of the IAM service.

workspace

Yes

String

Workspace ID. For details about how to obtain it, see Instance ID and Workspace ID.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

architecture

Array of ArchitectureStatistic objects

Structure system.

Table 4 ArchitectureStatistic

Parameter

Type

Description

children

Array of ArchitectureStatistic objects

Indicates the sub-indicator.

count

Integer

Indicates the number of sub-counters.

guid

String

Asset GUID.

name

String

Name

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

Status code: 404

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error code.

error_msg

String

Error description.

Example Requests

None

Example Responses

Status code: 200

metric assets.

{
  "architecture" : [ {
    "children" : [ {
      "children" : null,
      "count" : 1,
      "guid" : "f31ad3b7-5c54-45e3-8afe-369c43d45438",
      "name" : "process_name_second"
    } ],
    "count" : 0,
    "guid" : "64db45a2-38d1-453d-bb13-404dde03fedc",
    "name" : "process_name_first"
  } ]
}

Status Codes

Status Code

Description

200

metric assets.

401

Unauthorized:

403

Forbidden.

404

Not found.