List Pipeline Runs

List all pipeline runs for the given pipeline ID.

Requires the pipelines-view permission.

query
  • sort

    Sorts can be performed on any field - see sorting

  • filter

    Collections of resources can be filtered based on certain criteria - see filtering 

Returns

Returns a collection of source resources, otherwise returns an Error.

GET /v1/pipelines/5b9c2a77b6393d0001eb45fd/runs

Example Request
$ curl https://api.cycle.io/v1/pipelines/5b9c2a77b6393d0001eb45fd/runs \
-H
"Authorization: Bearer API_KEY"
\
-H
"X-Hub-Id: HUB_ID"
Example Response
{
"data": [
{
"id": "5ccc2a2226393d1231eb4abd",
"creator": {
"type": "account",
"id": "5b9c2a77b6393d0001eb45fd"
},
"hub_id": "5a232a77b6393d0001ac2df2",
"pipeline_id": "5fff2a77b6393d0001eb3333",
"stages": [
{
"identifier": "demo run stage",
"events": {
"started": "2021-01-11T18:00:44.952Z",
"finished": "2021-01-11T19:00:44.952Z"
},
"steps": [
{
"identifier": "demo run step",
"events": {
"started": "2021-01-11T18:00:44.952Z",
"finished": "2021-01-11T19:00:44.952Z"
},
"action": "container.create",
"success": true
}
]
}
],
"state": {
"changed": "2021-01-11T18:00:44.952Z",
"current": "deleted"
},
"events": {
"started": "2021-01-11T18:00:44.952Z",
"queued": "0001-01-01T00:00:00Z",
"finished": "0001-01-01T00:00:00Z"
}
}
]
}