CI/CD
Workflow files in an app's or function's repository (.cloudhost/pipelines and .github/workflows), compatible with GitHub Actions' workflow syntax, run on a push, on a schedule or by hand: runs with their jobs, matrix legs and steps, step logs, cancel and rerun, artifacts. A job's run time is charged as CI/CD minutes (its own line on the usage page and the invoice; the price in GET /v1/pricing). A team whose plan does not include CI/CD gets 403 plan_required (GET /v1/pipelines/config says which).
/v1/pipelines/configWhether the team's plan has CI/CD#
available: whether the team's plan includes CI/CD (on in every plan unless it is switched off for the plan or the team); when false, the CI/CD routes answer 403 plan_required.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Response
200object
availableboolean
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/pipelines/config" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/filesList workflow files#
The workflow files at the latest push to production (or to branch), from both folders: .cloudhost/pipelines/*.yml (file is its name) and .github/workflows/*.yml (file is its path).
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
branchstringquerya branch's latest push instead of production's
Response
200PipelineFiles
branchstringrequirednull: production
commitstringrequiredfilesPipelineFile[]requiredfilestringrequiredits name under .cloudhost/pipelines (ci.yml), or its path under .github/workflows
pathstringrequiredits path in the repository
folderstringrequiredone of
.cloudhost/pipelines,.github/workflows
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_branch |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/files" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runsList CI/CD runs#
Newest first; 50 a page by default, at most 200. Agent's key sees and starts preview runs only (a branch other than production's).
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
filestringqueryone workflow file's runs: ci.yml (.cloudhost/pipelines) or .github/workflows/ci.yml
anyany
Response
200object
runsPipelineRun[]requiredidstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
next_cursorstringrequired
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_cursor, bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runsStart a CI/CD run#
A manual run (the file's on: workflow_dispatch) at the latest push to production, or to branch, with the file's inputs. Agent's key sees and starts preview runs only (a branch other than production's).
- Credential
- An API key or a dashboard session
- Roles
- owner, admin, developer
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
Request bodyapplication/json
filestringrequiredchecks.yml (.cloudhost/pipelines; .cloudhost/pipelines/checks.yml is taken as checks.yml) or .github/workflows/ci.yml
branchstringthe branch; left out or null, production
inputsmap of string | number | booleanthe file's inputs by name; defaults fill the rest
Response
201PipelineRunQueued
idstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_file, bad_branch, bad_inputs |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Forbidden: forbidden, plan_required (CI/CD is not in the team's plan), agent_preview_only |
| 404 | Not found: not_found |
| 409 | Conflict: no_source (nothing pushed to that branch yet) |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs" \
-H "Authorization: Bearer $KEY" \
-d '{"file":"…"}'/v1/projects/{project}/apps/{name}/pipelines/runs/{id}Get a CI/CD run#
The run with its jobs (the plan job first, then the file's jobs in its order), each matrix job's legs and every step. Poll every 3 seconds while it is queued or running.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
200PipelineRunDetail
idstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsintegerjobsPipelineJob[]requiredthe plan job first, then the file's jobs in its order
idstring (uuid)requiredkeystringrequiredthe file's job id
namestringrequiredkindstringrequiredone of
plan,jobneedsstring[]requiredifstringstatusstringrequiredone of
waiting,queued,running,succeeded,failed,cancelled,skippederrorstringattemptintegerstarted_atstring (date-time)finished_atstring (date-time)secondsintegermatrixobjecta leg's values
strategyobjectfail_fastbooleanmax_parallelinteger
continue_on_errorbooleansummarystringMarkdown the steps wrote
egressstring[]the job's allow list of outside hosts (the file's egress), host:port each; empty: the job has none
egress_refusedintegerconnections of the job's steps that were refused (a host not on the list, a private address, port 25)
stepsPipelineStep[]requiredempty for a matrix job: its legs carry the steps
idstring (uuid)requiredindexintegerrequirednamestringrequiredkindstringrequiredone of
setup,restore,run,action,post,save,planusesstringthe step's uses: as written
statusstringrequiredone of
waiting,running,succeeded,failed,cancelled,skippedexit_codeintegererrorstringsecondsnumber
artifactsobject[]namestringbytesintegerexpires_atstring (date-time)
instancesPipelineJob[]requireda matrix job's legs, made when the job becomes ready
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/cancelCancel a CI/CD run#
A queued or running run: its waiting and queued jobs at once, its running ones within seconds.
- Credential
- An API key or a dashboard session
- Roles
- owner, admin, developer
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
200object
statusstringrequiredone of
cancelled
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Forbidden: forbidden, plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 409 | Conflict: not_running (the run has finished) |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/cancel" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/rerunRerun a CI/CD run#
A new run of the same file at the same commit with the same inputs (trigger rerun, rerun_of the first).
- Credential
- An API key or a dashboard session
- Roles
- owner, admin, developer
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
201PipelineRunQueued
idstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Forbidden: forbidden, plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/rerun" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/steps/{step}/logsA CI/CD step's log#
1000 lines per call; poll with after=<last_id> while the status is waiting or running.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
stepstring (uuid)pathrequiredthe step's id
afterstringquerythe last line id received, <ms>-<n>
Response
200PipelineStepLog
statusstringrequiredthe step's status
linesobject[]requiredidstringrequiredtintegerlinestringrequired
last_idstringsend as after for what comes next
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/steps/step/logs" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/artifactsList a CI/CD run's artifacts#
The artifacts the run's jobs kept, with when each expires.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
200object
artifactsPipelineArtifact[]requiredjobstringrequiredthe job's key
namestringrequiredbytesintegerrequiredsha256stringrequiredcreated_atstring (date-time)requiredexpires_atstring (date-time)required
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/artifacts" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/artifacts/{artifact}Download a CI/CD artifact#
The artifact as it was packed, a .tar.gz.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe app's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
artifactstringpathrequiredthe artifact's name
jobstringquerythe job's key, when two jobs kept an artifact of this name
Response
200string (binary)application/gzip
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found (also an expired artifact) |
| 500 | internal: an unexpected failure |
| 503 | Unavailable: unavailable (try again shortly) |
Example
curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/artifacts/artifact" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/filesList workflow files#
The workflow files at the latest push to production (or to branch), from both folders: .cloudhost/pipelines/*.yml (file is its name) and .github/workflows/*.yml (file is its path).
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
branchstringquerya branch's latest push instead of production's
Response
200PipelineFiles
branchstringrequirednull: production
commitstringrequiredfilesPipelineFile[]requiredfilestringrequiredits name under .cloudhost/pipelines (ci.yml), or its path under .github/workflows
pathstringrequiredits path in the repository
folderstringrequiredone of
.cloudhost/pipelines,.github/workflows
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_branch |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/files" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runsList CI/CD runs#
Newest first; 50 a page by default, at most 200. Agent's key sees and starts preview runs only (a branch other than production's).
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
filestringqueryone workflow file's runs: ci.yml (.cloudhost/pipelines) or .github/workflows/ci.yml
anyany
Response
200object
runsPipelineRun[]requiredidstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
next_cursorstringrequired
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_cursor, bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runsStart a CI/CD run#
A manual run (the file's on: workflow_dispatch) at the latest push to production, or to branch, with the file's inputs. Agent's key sees and starts preview runs only (a branch other than production's).
- Credential
- An API key or a dashboard session
- Roles
- owner, admin, developer
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
Request bodyapplication/json
filestringrequiredchecks.yml (.cloudhost/pipelines; .cloudhost/pipelines/checks.yml is taken as checks.yml) or .github/workflows/ci.yml
branchstringthe branch; left out or null, production
inputsmap of string | number | booleanthe file's inputs by name; defaults fill the rest
Response
201PipelineRunQueued
idstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_file, bad_branch, bad_inputs |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Forbidden: forbidden, plan_required (CI/CD is not in the team's plan), agent_preview_only |
| 404 | Not found: not_found |
| 409 | Conflict: no_source (nothing pushed to that branch yet) |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs" \
-H "Authorization: Bearer $KEY" \
-d '{"file":"…"}'/v1/projects/{project}/functions/{name}/pipelines/runs/{id}Get a CI/CD run#
The run with its jobs (the plan job first, then the file's jobs in its order), each matrix job's legs and every step. Poll every 3 seconds while it is queued or running.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
200PipelineRunDetail
idstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsintegerjobsPipelineJob[]requiredthe plan job first, then the file's jobs in its order
idstring (uuid)requiredkeystringrequiredthe file's job id
namestringrequiredkindstringrequiredone of
plan,jobneedsstring[]requiredifstringstatusstringrequiredone of
waiting,queued,running,succeeded,failed,cancelled,skippederrorstringattemptintegerstarted_atstring (date-time)finished_atstring (date-time)secondsintegermatrixobjecta leg's values
strategyobjectfail_fastbooleanmax_parallelinteger
continue_on_errorbooleansummarystringMarkdown the steps wrote
egressstring[]the job's allow list of outside hosts (the file's egress), host:port each; empty: the job has none
egress_refusedintegerconnections of the job's steps that were refused (a host not on the list, a private address, port 25)
stepsPipelineStep[]requiredempty for a matrix job: its legs carry the steps
idstring (uuid)requiredindexintegerrequirednamestringrequiredkindstringrequiredone of
setup,restore,run,action,post,save,planusesstringthe step's uses: as written
statusstringrequiredone of
waiting,running,succeeded,failed,cancelled,skippedexit_codeintegererrorstringsecondsnumber
artifactsobject[]namestringbytesintegerexpires_atstring (date-time)
instancesPipelineJob[]requireda matrix job's legs, made when the job becomes ready
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/cancelCancel a CI/CD run#
A queued or running run: its waiting and queued jobs at once, its running ones within seconds.
- Credential
- An API key or a dashboard session
- Roles
- owner, admin, developer
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
200object
statusstringrequiredone of
cancelled
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Forbidden: forbidden, plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 409 | Conflict: not_running (the run has finished) |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/cancel" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/rerunRerun a CI/CD run#
A new run of the same file at the same commit with the same inputs (trigger rerun, rerun_of the first).
- Credential
- An API key or a dashboard session
- Roles
- owner, admin, developer
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
201PipelineRunQueued
idstring (uuid)requirednumberintegerrequiredthe app's or function's run number
filestringrequiredpathstringnamestringrequiredthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringrequiredone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringrequirednull: production
tagstringcommitstringrequired40-hex git SHA
inputsobjectstatusstringrequiredone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)requiredstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Forbidden: forbidden, plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl -X POST "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/rerun" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/steps/{step}/logsA CI/CD step's log#
1000 lines per call; poll with after=<last_id> while the status is waiting or running.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
stepstring (uuid)pathrequiredthe step's id
afterstringquerythe last line id received, <ms>-<n>
Response
200PipelineStepLog
statusstringrequiredthe step's status
linesobject[]requiredidstringrequiredtintegerlinestringrequired
last_idstringsend as after for what comes next
Errors
| Status | Description |
|---|---|
| 400 | Bad request: bad_param |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/steps/step/logs" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/artifactsList a CI/CD run's artifacts#
The artifacts the run's jobs kept, with when each expires.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
Response
200object
artifactsPipelineArtifact[]requiredjobstringrequiredthe job's key
namestringrequiredbytesintegerrequiredsha256stringrequiredcreated_atstring (date-time)requiredexpires_atstring (date-time)required
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
Example
curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/artifacts" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/artifacts/{artifact}Download a CI/CD artifact#
The artifact as it was packed, a .tar.gz.
- Credential
- An API key or a dashboard session
- Roles
- Any role
Parameters
anynamestringpathrequiredthe function's name in the project (any case) or its id
idstring (uuid)pathrequiredthe run's id
artifactstringpathrequiredthe artifact's name
jobstringquerythe job's key, when two jobs kept an artifact of this name
Response
200string (binary)application/gzip
Errors
| Status | Description |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: plan_required (CI/CD is not in the team's plan) |
| 404 | Not found: not_found (also an expired artifact) |
| 500 | internal: an unexpected failure |
| 503 | Unavailable: unavailable (try again shortly) |
Example
curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs/88e2fe1d-6d75-4de5-8c8f-27380ec66903/artifacts/artifact" \
-H "Authorization: Bearer $KEY"