ListPipelineRuns - List pipeline running instances

Updated at:

Applicable editions

Central edition, Region edition

Endpoints and authorization information

  • Obtain an endpoint. Replace {domain} in the API request syntax.

  • Obtain a personal access token.

  • Obtain the organizationId. This is required only for the Central edition. Go to the Basic Information page in the Organization Management console to retrieve the organization ID.

Product

Resource

Required permission

Pipeline

Pipeline running instance

Read-only

Request syntax

Central edition

GET https://{domain}/oapi/v1/flow/organizations/{organizationId}/pipelines/{pipelineId}/runs

Region edition

GET https://{domain}/oapi/v1/flow/pipelines/{pipelineId}/runs

Request headers

Parameter

Type

Required

Description

Example

x-yunxiao-token

string

Yes

Personal access token.

pt-0fh3****0fbG_35af****0484

Request parameters

Parameter

Type

Position

Required

Description

Example value

organizationId

string

path

  • Yes: Central edition

  • No: Region edition

Organization ID.

5ebbc0228123212b59xxxxx

pipelineId

string

path

Yes

Pipeline ID.

123

perPage

integer

query

No

Number of entries per page. Default: 10. Maximum: 30.

10

page

integer

query

No

Page number. Default: 1.

1

startTime

integer

query

No

Start time of the query range.

1729178040000

endTme

integer

query

No

End time of the query range.

1729178040000

status

string

query

No

Run status. Valid values: FAIL (failed), SUCCESS (successful), and RUNNING (running).

FAIL

triggerMode

integer

query

No

Trigger method. Valid values: 1 (manual), 2 (scheduled), 3 (code commit), 5 (pipeline), and 6 (webhook).

1

Request examples

Central edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/organizations/5ebbc0228123212b59xxxxx/pipelines/123/runs?perPage=10&page=1&startTime=1729178040000&endTme=1729178040000&status=FAIL&triggerMode=1' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Region edition

curl -X 'GET' \
  'https://{domain}/oapi/v1/flow/pipelines/123/runs?perPage=10&page=1&startTime=1729178040000&endTme=1729178040000&status=FAIL&triggerMode=1' \
  -H 'Content-Type: application/json' \
  -H 'x-yunxiao-token: pt-0fh3****0fbG_35af****0484'

Response parameters

Parameter

Type

Description

Example

-

array

-

object

creatorAccountId

string

Account ID of the user who created the run.

1222222222

endTime

integer

End time of the run.

1729178040000

pipelineId

integer

Pipeline ID.

123

pipelineRunId

integer

ID of the pipeline run.

1

startTime

integer

Start time of the run.

1729178040000

triggerMode

integer

Trigger mode. Valid values: 1 (manual), 2 (scheduled), 3 (code commit), 5 (pipeline), and 6 (webhook).

1

Response example

[
    {
        "creatorAccountId": "1222222222",
        "endTime": 1729178040000,
        "pipelineId": 123,
        "pipelineRunId": 1,
        "startTime": 1729178040000,
        "triggerMode": 1
    }
]

Response headers

Parameter

Description

Example

x-next-page

Next page number.

3

x-page

Current page number.

2

x-per-page

Number of entries on the current page.

10

x-prev-page

Previous page number.

1

x-total

Total number of entries.

100

x-total-pages

Total number of pages.

10

Error codes

For API error codes, see Error Code Center.