CI/CD
فایلهای ورکفلوی ریپازیتوری برنامه یا فانکشن، با نوشتار سازگار با GitHub Actions: اجراها با jobها و مراحلشان، لاگ هر مرحله، لغو و اجرای دوباره، و artifactها.
/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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پاسخ
200object
availableboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
branchstringکوئریa branch's latest push instead of production's
پاسخ
200PipelineFiles
branchstringالزامیnull: production
commitstringالزامیfilesPipelineFile[]الزامیfilestringالزامیits name under .cloudhost/pipelines (ci.yml), or its path under .github/workflows
pathstringالزامیits path in the repository
folderstringالزامیone of
.cloudhost/pipelines,.github/workflows
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
filestringکوئریone workflow file's runs: ci.yml (.cloudhost/pipelines) or .github/workflows/ci.yml
anyany
پاسخ
200object
runsPipelineRun[]الزامیidstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
next_cursorstringالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
بدنهٔ درخواستapplication/json
filestringالزامیchecks.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
پاسخ
201PipelineRunQueued
idstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
200PipelineRunDetail
idstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsintegerjobsPipelineJob[]الزامیthe plan job first, then the file's jobs in its order
idstring (uuid)الزامیkeystringالزامیthe file's job id
namestringالزامیkindstringالزامیone of
plan,jobneedsstring[]الزامیifstringstatusstringالزامیone 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[]الزامیempty for a matrix job: its legs carry the steps
idstring (uuid)الزامیindexintegerالزامیnamestringالزامیkindstringالزامیone of
setup,restore,run,action,post,save,planusesstringthe step's uses: as written
statusstringالزامیone of
waiting,running,succeeded,failed,cancelled,skippedexit_codeintegererrorstringsecondsnumber
artifactsobject[]namestringbytesintegerexpires_atstring (date-time)
instancesPipelineJob[]الزامیa matrix job's legs, made when the job becomes ready
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
200object
statusstringالزامیone of
cancelled
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
201PipelineRunQueued
idstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
stepstring (uuid)مسیرالزامیthe step's id
afterstringکوئریthe last line id received, <ms>-<n>
پاسخ
200PipelineStepLog
statusstringالزامیthe step's status
linesobject[]الزامیidstringالزامیtintegerlinestringالزامی
last_idstringsend as after for what comes next
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
200object
artifactsPipelineArtifact[]الزامیjobstringالزامیthe job's key
namestringالزامیbytesintegerالزامیsha256stringالزامیcreated_atstring (date-time)الزامیexpires_atstring (date-time)الزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe app's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
artifactstringمسیرالزامیthe artifact's name
jobstringکوئریthe job's key, when two jobs kept an artifact of this name
پاسخ
200string (binary)application/gzip
خطاها
| وضعیت | توضیح |
|---|---|
| 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) |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
branchstringکوئریa branch's latest push instead of production's
پاسخ
200PipelineFiles
branchstringالزامیnull: production
commitstringالزامیfilesPipelineFile[]الزامیfilestringالزامیits name under .cloudhost/pipelines (ci.yml), or its path under .github/workflows
pathstringالزامیits path in the repository
folderstringالزامیone of
.cloudhost/pipelines,.github/workflows
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
filestringکوئریone workflow file's runs: ci.yml (.cloudhost/pipelines) or .github/workflows/ci.yml
anyany
پاسخ
200object
runsPipelineRun[]الزامیidstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
next_cursorstringالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
بدنهٔ درخواستapplication/json
filestringالزامیchecks.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
پاسخ
201PipelineRunQueued
idstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
200PipelineRunDetail
idstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsintegerjobsPipelineJob[]الزامیthe plan job first, then the file's jobs in its order
idstring (uuid)الزامیkeystringالزامیthe file's job id
namestringالزامیkindstringالزامیone of
plan,jobneedsstring[]الزامیifstringstatusstringالزامیone 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[]الزامیempty for a matrix job: its legs carry the steps
idstring (uuid)الزامیindexintegerالزامیnamestringالزامیkindstringالزامیone of
setup,restore,run,action,post,save,planusesstringthe step's uses: as written
statusstringالزامیone of
waiting,running,succeeded,failed,cancelled,skippedexit_codeintegererrorstringsecondsnumber
artifactsobject[]namestringbytesintegerexpires_atstring (date-time)
instancesPipelineJob[]الزامیa matrix job's legs, made when the job becomes ready
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
200object
statusstringالزامیone of
cancelled
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
201PipelineRunQueued
idstring (uuid)الزامیnumberintegerالزامیthe app's or function's run number
filestringالزامیpathstringnamestringالزامیthe file's name:, else its file name
run_namestringthe file's run-name
triggerstringالزامیone of
push,manual,rerun,scheduleeventstringone of
push,manual,schedulebranchstringالزامیnull: production
tagstringcommitstringالزامی40-hex git SHA
inputsobjectstatusstringالزامیone of
queued,running,succeeded,failed,cancellederrorstringwhy it failed, in plain words
rerun_ofstring (uuid)created_atstring (date-time)الزامیstarted_atstring (date-time)finished_atstring (date-time)secondsinteger
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
stepstring (uuid)مسیرالزامیthe step's id
afterstringکوئریthe last line id received, <ms>-<n>
پاسخ
200PipelineStepLog
statusstringالزامیthe step's status
linesobject[]الزامیidstringالزامیtintegerlinestringالزامی
last_idstringsend as after for what comes next
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
پاسخ
200object
artifactsPipelineArtifact[]الزامیjobstringالزامیthe job's key
namestringالزامیbytesintegerالزامیsha256stringالزامیcreated_atstring (date-time)الزامیexpires_atstring (date-time)الزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 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 |
نمونه
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.
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامیthe function's name in the project (any case) or its id
idstring (uuid)مسیرالزامیthe run's id
artifactstringمسیرالزامیthe artifact's name
jobstringکوئریthe job's key, when two jobs kept an artifact of this name
پاسخ
200string (binary)application/gzip
خطاها
| وضعیت | توضیح |
|---|---|
| 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) |
نمونه
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"