Updated on 2025-03-25 GMT+08:00

Querying the Pipeline Tags

Function

This API is used to query the pipeline tags.

Calling Method

For details, see Calling APIs.

URI

GET /v5/{project_id}/api/pipeline-tag/list

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Parameter description:

CodeArts project ID.

Constraints:

N/A.

Value Range:

The value contains 32 characters.

Default value:

N/A.

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

proj_id

No

String

Project ID.

Request Parameters

None

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

[items]

Array of PipelineTagResp objects

Tag response body.

Table 4 PipelineTagResp

Parameter

Type

Description

tag_id

String

Tag ID.

name

String

Tag name.

color

String

Tag color.

project_id

String

Project ID.

project_name

String

Project name.

Example Requests

GET https://{endpoint}/db8d07265e24426598b3eb03a7818972/v5/api/pipeline-tag/list?proj_id=db8d07265e24426598b3eb03a7818972

Example Responses

Status code: 200

Response body.

[ {
  "tag_id" : "707b6711d3484578a1d848d889a7fa60",
  "name" : "1",
  "color" : "#0b81f6",
  "project_id" : "db8d07265e24426598b3eb03a7818972",
  "project_name" : "cjrTest"
} ]

Status Codes

Status Code

Description

200

Response body.

Error Codes

See Error Codes.