Help Center/ ModelArts/ API Reference/ Tag Management/ Obtaining Resource Tags of a Resource Pool
Updated on 2025-05-30 GMT+08:00

Obtaining Resource Tags of a Resource Pool

Function

This API is used to obtain resource tags of a specified resource pool.

URI

GET /v1/{project_id}/pools/{pool_name}/tags

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID. For details, see Obtaining a Project ID and Name.

pool_name

Yes

String

Resource pool ID. The value is the metadata.name field in the resource pool details.

Request Parameters

None

Response Parameters

Status code: 204

Table 2 Response body parameters

Parameter

Type

Description

tags

Tag object

Resource tag list

Table 3 Tag

Parameter

Type

Description

key

String

Tag key

value

String

Tag value

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error codes of ModelArts

error_msg

String

Error message

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error codes of ModelArts

error_msg

String

Error message

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error codes of ModelArts

error_msg

String

Error message

Status code: 404

Table 7 Response body parameters

Parameter

Type

Description

error_code

String

Error codes of ModelArts

error_msg

String

Error message

Example Requests

Obtain resource tags of a specified resource pool.

https://{endpoint}/v1/{project_id}/pools/{pool_name}/tags

Example Responses

Status code: 204

Tag list.

{
  "tags" : [ {
    "key" : "dev",
    "value" : "dev1"
  } ]
}

Status Codes

Status Code

Description

204

Tag list.

400

Invalid parameters.

401

Authentication failed.

403

Insufficient permission.

404

Resource not found.

Error Codes

See Error Codes.