Skip to Content
Pipelines

Get a Pipeline by ID

GET
/pipelines/{pipeline_id}

Path Parameters

pipeline_id*integer

The ID of the pipeline.

Range1 <= value

Header Parameters

Accept*string

application/json

Authorization*string

Bearer {{access_token}}

Content-Type*string

application/json

Response Body

Ok

application/json
  1. response
id*integer

The unique ID of the given pipeline

name*string

The pipeline's name

environment_id*integer

ID of the environment this pipeline belongs to

project_id*integer

ID of the project this pipeline belongs to

organization_id*integer

ID of the organization this pipeline belongs to

resource_type*ResourceType

Type of an infrastructure resource managed through a Devopness environment.

Value in"application""credential""cronjob""daemon""deployment""network""network-rule""server""service""ssh-key""ssl-certificate""subnet""virtual-host"
resource_type_human_readable*string

Human readable version of the resource type

resource_id*integer

The pipeline's resource ID

operation*string

The resource operation associated to the pipeline.

operation_human_readable*string

Human readable version of the operation

max_parallel_actions*integer

Maximum number of actions that can run in parallel for this pipeline. 0 means no limit of simultaneous actions. 1 means just a single action will be started at a time to run this pipeline.

trigger_when*|null
steps*array<>
created_by_user*|null
created_at*string

The date and time when the record was created

updated_at*string

The date and time when the record was last updated

Example Request
curl -X GET 'https://api.devopness.com/pipelines/123' \  -H 'Accept: application/json' \  -H 'Authorization: Bearer <your_api_token>' \  -H 'Content-Type: application/json'
Example Response
{  "id": 342390,  "name": "My pied piper-line",  "environment_id": 4532342,  "project_id": 97063242,  "organization_id": 5324234,  "resource_type": "application",  "resource_type_human_readable": "Application",  "resource_id": 5324234,  "operation": "deploy",  "operation_human_readable": "Deploy",  "max_parallel_actions": 1,  "trigger_when": {    "conditions": [      {        "name": "Check pullrequest author",        "type": "request_body",        "path": "pullrequest.author.nickname",        "accepted_values": [          "myuser123",          "bu_nick456"        ]      }    ]  },  "steps": [    {      "id": 45678,      "name": "Extra step before build app",      "description": "This is an extra step before build application.",      "type": "default-step",      "run_as_user": "devopness",      "command": "echo 'Deploy with devopness is a breeze!' | tee -a /tmp/build-started.log",      "runner": "pip",      "script_id": 3452033,      "pipeline_id": 7869450,      "trigger_order": 1001,      "is_auto_generated": false,      "is_default_step": false,      "created_at": "2019-09-25T13:22:37.000000Z",      "updated_at": "2019-09-25T13:22:37.000000Z"    }  ],  "created_by_user": {    "id": 1,    "name": "string",    "email": "user@example.com",    "url_slug": "someone",    "language": "en",    "active": true,    "created_at": "2019-09-25T15:50:48.000000Z",    "updated_at": "2019-09-25T13:52:04.000000Z"  },  "created_at": "2022-09-26T15:30:31.000000Z",  "updated_at": "2022-09-26T15:30:58.000000Z"}