CiPipeline
Operations
Every route this entity exposes. Each route links to its own reference on this page.
| Method | Route | SDK operation | Returns |
|---|---|---|---|
POST |
/api/v1/ci/pipelines |
create |
Success |
GET |
/api/v1/ci/pipelines |
list |
CI pipelines |
GET |
/api/v1/ci/pipelines/{id} |
load |
CI pipeline catalog |
Examples
One example per SDK, generated from the API model. The argument names are the parameters and fields of this entity, and the values are placeholders. The examples are not compiled or executed.
Golang
Construct client as shown in the Golang setup, then call the operations:
ci_pipelines, err := client.CiPipeline(nil).List(nil, nil)
if err != nil {
panic(err)
}
fmt.Println(ci_pipelines)
ci_pipeline, err := client.CiPipeline(nil).Load(map[string]any{"id": "example_id"}, nil)
if err != nil {
panic(err)
}
fmt.Println(ci_pipeline)
created, err := client.CiPipeline(nil).Create(map[string]any{}, nil)
if err != nil {
panic(err)
}
fmt.Println(created)
Lua
Construct client as shown in the Lua setup, then call the operations:
local ci_pipelines, err = client:CiPipeline():list()
local ci_pipeline, err = client:CiPipeline():load({ id = "example_id" })
local created, err = client:CiPipeline():create({ })
PHP
Construct client as shown in the PHP setup, then call the operations:
$ci_pipelines = $client->CiPipeline()->list();
$ci_pipeline = $client->CiPipeline()->load(["id" => "example_id"]);
$created = $client->CiPipeline()->create([]);
Python
Construct client as shown in the Python setup, then call the operations:
ci_pipelines = client.CiPipeline().list()
ci_pipeline = client.CiPipeline().load({"id": "example_id"})
created = client.CiPipeline().create({ })
Ruby
Construct client as shown in the Ruby setup, then call the operations:
ci_pipelines = client.CiPipeline.list()
ci_pipeline = client.CiPipeline.load({ "id" => "example_id" })
created = client.CiPipeline.create({ })
TypeScript
Construct client as shown in the TypeScript setup, then call the operations:
const ci_pipelines = await client.CiPipeline().list()
const ci_pipeline = await client.CiPipeline().load({ id: "example_id" })
const created = await client.CiPipeline().create({ })
Fields
| Field | Type | Required | Description |
|---|---|---|---|
ci_runner_pool_id |
one,string,null |
Yes | Ci Runner Pool Id |
concurrency_key |
one,string,null |
Yes | Concurrency Key |
created_at |
string |
Yes | Created At |
default_branch |
one,string,null |
Yes | Default Branch |
description |
one,string,null |
Yes | Description |
hosted_app_id |
one,string,null |
Yes | Hosted App Id |
id |
string |
Yes | Id |
name |
string |
Yes | Name |
organization_id |
string |
Yes | Organization Id |
repository_id |
one,string,null |
Yes | Repository Id |
required_capabilities_csv |
one,string,null |
Yes | Required Capabilities Csv |
runner_pool |
one,object,null |
Yes | Runner Pool |
runs |
array |
Yes | Runs |
slug |
string |
Yes | Slug |
source_kind |
string |
Yes | Source Kind |
status |
string |
Yes | Status |
status_label |
string |
Yes | Status Label |
status_state |
string |
Yes | Status State |
status_tone |
string |
Yes | Status Tone |
trigger_on_pull_request |
boolean |
Yes | Trigger On Pull Request |
trigger_on_push |
boolean |
Yes | Trigger On Push |
trigger_on_schedule |
boolean |
Yes | Trigger On Schedule |
updated_at |
string |
Yes | Updated At |
workflow_path |
one,string,null |
Yes | Workflow Path |
create
POST /api/v1/ci/pipelines
Operation ID: post_api_v1_ci_pipelines.
Authentication: bearer token (bearerAuth).
Request body
application/json
The request body is object.
Responses
200: Success
application/json
The response is object.
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
list
GET /api/v1/ci/pipelines
Operation ID: api_v1_pipelines.
Authentication: bearer token (bearerAuth).
Responses
200: CI pipelines
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pipelines |
array of object |
Yes | |
pipelines[].ci_runner_pool_id |
string |
Yes | |
pipelines[].concurrency_key |
string |
Yes | |
pipelines[].created_at |
string (date-time) |
Yes | |
pipelines[].default_branch |
string |
Yes | |
pipelines[].description |
string |
Yes | |
pipelines[].hosted_app_id |
string |
Yes | |
pipelines[].id |
string |
Yes | |
pipelines[].name |
string |
Yes | |
pipelines[].organization_id |
string |
Yes | |
pipelines[].repository_id |
string |
Yes | |
pipelines[].required_capabilities_csv |
string |
Yes | |
pipelines[].slug |
string |
Yes | |
pipelines[].source_kind |
string |
Yes | |
pipelines[].status |
string |
Yes | |
pipelines[].status_label |
string |
Yes | |
pipelines[].status_state |
enum: active, successful, failed, canceled, blocked, skipped, ... |
Yes | |
pipelines[].status_tone |
enum: success, danger, warning, default |
Yes | |
pipelines[].trigger_on_pull_request |
boolean |
Yes | |
pipelines[].trigger_on_push |
boolean |
Yes | |
pipelines[].trigger_on_schedule |
boolean |
Yes | |
pipelines[].updated_at |
string (date-time) |
Yes | |
pipelines[].workflow_path |
string |
Yes |
401: Unauthorized
403: Forbidden
404: Not found
422: Unprocessable entity
502: Bad gateway
load
GET /api/v1/ci/pipelines/{id}
Operation ID: api_v1_pipeline.
Authentication: bearer token (bearerAuth).
Parameters
| Parameter | In | Type | Required | Description |
|---|---|---|---|---|
id |
path |
string |
Yes |
Responses
200: CI pipeline catalog
application/json
| Property | Type | Required | Description |
|---|---|---|---|
pipeline |
object and object |
Yes |