Updated on 2026-01-12 GMT+08:00

Obtaining the Pipeline List

Function

This API is used to obtain the pipeline list.

Calling Method

For details, see Calling APIs.

URI

POST /v3/pipelines/list

Request Parameters

Table 1 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

User token. Obtain a token (the value of the X-Subject-Token response header) by calling the IAM API for .

Table 2 Request body parameters

Parameter

Mandatory

Type

Description

pipeline_name

No

String

Definition:

Pipeline name. Fuzzy match by name.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

project_ids

No

String

Definition:

(Optional) Project ID. If there are multiple project IDs, separate them with commas (,). The number of IDs ranges from 0 to 10. If this parameter is specified, the pipeline list of the corresponding project is obtained. If not, the pipeline list of all projects on which the user has permission is obtained.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

creator_ids

No

String

Definition:

(Optional) Creator ID. If there are multiple values, separate them with commas (,). The number of IDs ranges from 0 to 10.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

executor_ids

No

String

Definition:

ID of the user who executes the pipeline. (Optional) If there are multiple values, separate them with commas (,). The number of IDs ranges from 0 to 10.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

status

No

String

Definition:

Pipeline running status.

Constraints:

N/A

Value range:

  • waiting: The pipeline is waiting to begin.

  • running: The pipeline is being executed.

  • verifying: This pipeline is to be reviewed.

  • suspending: The pipeline is suspended.

  • completed: The execution is completed.

Default value:

N/A

outcome

No

String

Definition:

Pipeline execution result.

Constraints:

N/A

Value range:

  • success: The execution is successful.

  • error: The execution failed.

  • aborted: The execution is aborted.

Default value:

N/A

sort_key

No

String

Definition:

(Optional) Field for sorting.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

sort_dir

No

String

Definition:

Sorting method.

Constraints:

N/A

Value range:

  • asc: by sorting field in ascending order.

  • desc: by sorting field in descending order.

Default value:

N/A

git_url

No

String

Definition:

Code repository address. Only CodeArts Repo repositories are supported, for example, git@codehub.XXX.git.

Constraints:

N/A

Value range:

N/A

Default value:

N/A

offset

No

Integer

Definition:

Offset where the query starts.

Constraints:

N/A

Value range:

The offset value must be no less than 0.

Default value:

N/A

limit

No

Integer

Definition:

Number of records of each query.

Constraints:

N/A

Value range:

10–50.

Default value:

10.

Response Parameters

Status code: 200

Table 3 Response body parameters

Parameter

Type

Description

offset

Integer

Definition:

Offset where the query starts.

Value range:

The value is no less than 0.

limit

Integer

Definition:

Number of records of each query.

Value range:

The value is no less than 0.

total

Integer

Definition:

Total number of items.

Value range:

The value is no less than 0.

result

Array of PipelineBasicInfo objects

Definition:

Pipeline list.

Value range:

N/A

Table 4 PipelineBasicInfo

Parameter

Type

Description

project_id

String

Definition:

Project ID.

Value range:

The value consists of 32 characters, including digits and letters.

project_name

String

Definition:

Project name.

Value range:

N/A

pipeline_id

String

Definition:

Pipeline ID.

Value range:

The value consists of 32 characters, including digits and letters.

pipeline_name

String

Definition:

Pipeline name.

Value range:

N/A

creator_id

String

Definition:

Pipeline creator ID.

Value range:

The value consists of 32 characters, including digits and letters.

creator_name

String

Definition:

Pipeline creator name.

Value range:

N/A

executor_id

String

Definition:

ID of the user who executes the pipeline.

Value range:

The value consists of 32 characters, including digits and letters.

executor_name

String

Definition:

Name of the user who executes the pipeline.

Value range:

N/A

start_time

String

Definition:

Start time.

Value range:

N/A

create_time

String

Definition:

Creation time.

Value range:

N/A

watched

String

Definition:

Whether the user favorites the pipeline.

Value range:

  • true: The pipeline is favorited.

  • false: The pipeline is not favorited.

Status code: 400

Table 5 Response body parameters

Parameter

Type

Description

error_msg

String

Parameter description:

Error message.

Value range:

N/A

error_code

String

Parameter description:

Error code.

Value range:

N/A

Example Requests

This API is used to obtain the pipeline list.

Example: The project ID is e12ed176898d4841aa9881fe9b933c87 and the creator ID is 847a5317086c41798469d0868535943a. Pipelines are sorted by pipeline name in descending order.

POST https://{endpoint}/v3/pipelines/list

{
  "pipeline_name" : "",
  "project_ids" : "e12ed176898d4841aa9881fe9b933c87",
  "creator_ids" : "847a5317086c41798469d0868535943a",
  "executor_ids" : "847a5317086c41798469d0868535943a",
  "status" : "waiting,running,verifying,handling,suspending,completed",
  "outcome" : "error,success,aborted",
  "sort_key" : "pipeline_name",
  "sort_dir" : "desc",
  "git_url" : "",
  "offset" : 4,
  "limit" : 10
}

Example Responses

Status code: 200

OK

{
  "offset" : 0,
  "limit" : 10,
  "total" : 88,
  "result" : [ {
    "project_id" : "e12ed176898d4841aa9881fe9b933c87",
    "project_name" : "Pipeline_Beta_Automatic Test",
    "pipeline_id" : "d33f98177c3e44f8841b005e1badcaed",
    "pipeline_name" : "Ma Yunduo Cang",
    "creator_id" : "847a5317086c41798469d0868535943a",
    "creator_name" : "Big beta test account",
    "executor_id" : "847a5317086c41798469d0868535943a",
    "executor_name" : "Big beta test account",
    "start_time" : "2022-09-08 17:08:02",
    "create_time" : "2022-07-28 17:02:11",
    "watched" : "true"
  }, {
    "project_id" : "e12ed176898d4841aa9881fe9b933c87",
    "project_name" : "Pipeline_Beta_Automatic Test",
    "pipeline_id" : "2ec08a45031c4d2896292a48b7fb1a30",
    "pipeline_name" : "Dedicated Test for Access Control_Do Not Delete",
    "creator_id" : "847a5317086c41798469d0868535943a",
    "creator_name" : "Big beta test account",
    "executor_id" : "847a5317086c41798469d0868535943a",
    "executor_name" : "Big beta test account",
    "start_time" : "2022-09-08 16:52:03",
    "create_time" : "2020-10-29 17:05:02",
    "watched" : "true"
  } ]
}

Status Codes

Status Code

Description

200

OK

400

Bad request

401

Unauthorized

403

Forbidden

404

Not Found

Error Codes

See Error Codes.