رفتن به محتوا
cloudhostمستندات
مرجع API

CI/CD

فایل‌های ورک‌فلوی ریپازیتوری برنامه یا فانکشن، با نوشتار سازگار با GitHub Actions: اجراها با jobها و مراحلشان، لاگ هر مرحله، لغو و اجرای دوباره، و artifactها.

توضیح هر مسیر به انگلیسی است، همان متنی که مرجع از کد ساخته می‌شود. مسیرها، نام فیلدها و کدها همان‌اند که در درخواست می‌نویسید.
GET/v1/pipelines/config

Whether 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

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/pipelines/config" \
  -H "Authorization: Bearer $KEY"
GET/v1/projects/{project}/apps/{name}/pipelines/files

List 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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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[]الزامی

خطاها

وضعیتتوضیح
400Bad request: bad_branch
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/files" \
  -H "Authorization: Bearer $KEY"
GET/v1/projects/{project}/apps/{name}/pipelines/runs

List 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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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

  • any
  • any

پاسخ

200object

  • runsPipelineRun[]الزامی
    • idstring (uuid)الزامی
    • numberintegerالزامی

      the app's or function's run number

    • filestringالزامی
    • pathstring
    • namestringالزامی

      the file's name:, else its file name

    • run_namestring

      the file's run-name

    • triggerstringالزامی

      one of push, manual, rerun, schedule

    • eventstring

      one of push, manual, schedule

    • branchstringالزامی

      null: production

    • tagstring
    • commitstringالزامی

      40-hex git SHA

    • inputsobject
    • statusstringالزامی

      one of queued, running, succeeded, failed, cancelled

    • errorstring

      why it failed, in plain words

    • rerun_ofstring (uuid)
    • created_atstring (date-time)الزامی
    • started_atstring (date-time)
    • finished_atstring (date-time)
    • secondsinteger
  • next_cursorstringالزامی

خطاها

وضعیتتوضیح
400Bad request: bad_cursor, bad_param
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/projects/my-api/apps/my-api/pipelines/runs" \
  -H "Authorization: Bearer $KEY"
POST/v1/projects/{project}/apps/{name}/pipelines/runs

Start 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 یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • any
  • namestringمسیرالزامی

    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

  • branchstring

    the branch; left out or null, production

  • inputsmap of string | number | boolean

    the file's inputs by name; defaults fill the rest

پاسخ

201PipelineRunQueued

  • idstring (uuid)الزامی
  • numberintegerالزامی

    the app's or function's run number

  • filestringالزامی
  • pathstring
  • namestringالزامی

    the file's name:, else its file name

  • run_namestring

    the file's run-name

  • triggerstringالزامی

    one of push, manual, rerun, schedule

  • eventstring

    one of push, manual, schedule

  • branchstringالزامی

    null: production

  • tagstring
  • commitstringالزامی

    40-hex git SHA

  • inputsobject
  • statusstringالزامی

    one of queued, running, succeeded, failed, cancelled

  • errorstring

    why it failed, in plain words

  • rerun_ofstring (uuid)
  • created_atstring (date-time)الزامی
  • started_atstring (date-time)
  • finished_atstring (date-time)
  • secondsinteger

خطاها

وضعیتتوضیح
400Bad request: bad_file, bad_branch, bad_inputs
401unauthorized: missing, invalid, expired or revoked credential
403Forbidden: forbidden, plan_required (CI/CD is not in the team's plan), agent_preview_only
404Not found: not_found
409Conflict: no_source (nothing pushed to that branch yet)
500internal: 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":"…"}'
GET/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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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الزامی
  • pathstring
  • namestringالزامی

    the file's name:, else its file name

  • run_namestring

    the file's run-name

  • triggerstringالزامی

    one of push, manual, rerun, schedule

  • eventstring

    one of push, manual, schedule

  • branchstringالزامی

    null: production

  • tagstring
  • commitstringالزامی

    40-hex git SHA

  • inputsobject
  • statusstringالزامی

    one of queued, running, succeeded, failed, cancelled

  • errorstring

    why it failed, in plain words

  • rerun_ofstring (uuid)
  • created_atstring (date-time)الزامی
  • started_atstring (date-time)
  • finished_atstring (date-time)
  • secondsinteger
  • jobsPipelineJob[]الزامی

    the plan job first, then the file's jobs in its order

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
POST/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/cancel

Cancel a CI/CD run#

A queued or running run: its waiting and queued jobs at once, its running ones within seconds.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • any
  • namestringمسیرالزامی

    the app's name in the project (any case) or its id

  • idstring (uuid)مسیرالزامی

    the run's id

پاسخ

200object

  • statusstringالزامی

    one of cancelled

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Forbidden: forbidden, plan_required (CI/CD is not in the team's plan)
404Not found: not_found
409Conflict: not_running (the run has finished)
500internal: 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"
POST/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/rerun

Rerun 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 یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • any
  • namestringمسیرالزامی

    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الزامی
  • pathstring
  • namestringالزامی

    the file's name:, else its file name

  • run_namestring

    the file's run-name

  • triggerstringالزامی

    one of push, manual, rerun, schedule

  • eventstring

    one of push, manual, schedule

  • branchstringالزامی

    null: production

  • tagstring
  • commitstringالزامی

    40-hex git SHA

  • inputsobject
  • statusstringالزامی

    one of queued, running, succeeded, failed, cancelled

  • errorstring

    why it failed, in plain words

  • rerun_ofstring (uuid)
  • created_atstring (date-time)الزامی
  • started_atstring (date-time)
  • finished_atstring (date-time)
  • secondsinteger

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Forbidden: forbidden, plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
GET/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/steps/{step}/logs

A CI/CD step's log#

1000 lines per call; poll with after=<last_id> while the status is waiting or running.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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[]الزامی
  • last_idstring

    send as after for what comes next

خطاها

وضعیتتوضیح
400Bad request: bad_param
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
GET/v1/projects/{project}/apps/{name}/pipelines/runs/{id}/artifacts

List a CI/CD run's artifacts#

The artifacts the run's jobs kept, with when each expires.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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)الزامی

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
GET/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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found (also an expired artifact)
500internal: an unexpected failure
503Unavailable: 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"
GET/v1/projects/{project}/functions/{name}/pipelines/files

List 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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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[]الزامی

خطاها

وضعیتتوضیح
400Bad request: bad_branch
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/files" \
  -H "Authorization: Bearer $KEY"
GET/v1/projects/{project}/functions/{name}/pipelines/runs

List 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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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

  • any
  • any

پاسخ

200object

  • runsPipelineRun[]الزامی
    • idstring (uuid)الزامی
    • numberintegerالزامی

      the app's or function's run number

    • filestringالزامی
    • pathstring
    • namestringالزامی

      the file's name:, else its file name

    • run_namestring

      the file's run-name

    • triggerstringالزامی

      one of push, manual, rerun, schedule

    • eventstring

      one of push, manual, schedule

    • branchstringالزامی

      null: production

    • tagstring
    • commitstringالزامی

      40-hex git SHA

    • inputsobject
    • statusstringالزامی

      one of queued, running, succeeded, failed, cancelled

    • errorstring

      why it failed, in plain words

    • rerun_ofstring (uuid)
    • created_atstring (date-time)الزامی
    • started_atstring (date-time)
    • finished_atstring (date-time)
    • secondsinteger
  • next_cursorstringالزامی

خطاها

وضعیتتوضیح
400Bad request: bad_cursor, bad_param
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: an unexpected failure

نمونه

curl "https://api.ibel.ai/v1/projects/my-api/functions/my-api/pipelines/runs" \
  -H "Authorization: Bearer $KEY"
POST/v1/projects/{project}/functions/{name}/pipelines/runs

Start 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 یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • any
  • namestringمسیرالزامی

    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

  • branchstring

    the branch; left out or null, production

  • inputsmap of string | number | boolean

    the file's inputs by name; defaults fill the rest

پاسخ

201PipelineRunQueued

  • idstring (uuid)الزامی
  • numberintegerالزامی

    the app's or function's run number

  • filestringالزامی
  • pathstring
  • namestringالزامی

    the file's name:, else its file name

  • run_namestring

    the file's run-name

  • triggerstringالزامی

    one of push, manual, rerun, schedule

  • eventstring

    one of push, manual, schedule

  • branchstringالزامی

    null: production

  • tagstring
  • commitstringالزامی

    40-hex git SHA

  • inputsobject
  • statusstringالزامی

    one of queued, running, succeeded, failed, cancelled

  • errorstring

    why it failed, in plain words

  • rerun_ofstring (uuid)
  • created_atstring (date-time)الزامی
  • started_atstring (date-time)
  • finished_atstring (date-time)
  • secondsinteger

خطاها

وضعیتتوضیح
400Bad request: bad_file, bad_branch, bad_inputs
401unauthorized: missing, invalid, expired or revoked credential
403Forbidden: forbidden, plan_required (CI/CD is not in the team's plan), agent_preview_only
404Not found: not_found
409Conflict: no_source (nothing pushed to that branch yet)
500internal: 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":"…"}'
GET/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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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الزامی
  • pathstring
  • namestringالزامی

    the file's name:, else its file name

  • run_namestring

    the file's run-name

  • triggerstringالزامی

    one of push, manual, rerun, schedule

  • eventstring

    one of push, manual, schedule

  • branchstringالزامی

    null: production

  • tagstring
  • commitstringالزامی

    40-hex git SHA

  • inputsobject
  • statusstringالزامی

    one of queued, running, succeeded, failed, cancelled

  • errorstring

    why it failed, in plain words

  • rerun_ofstring (uuid)
  • created_atstring (date-time)الزامی
  • started_atstring (date-time)
  • finished_atstring (date-time)
  • secondsinteger
  • jobsPipelineJob[]الزامی

    the plan job first, then the file's jobs in its order

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
POST/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/cancel

Cancel a CI/CD run#

A queued or running run: its waiting and queued jobs at once, its running ones within seconds.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • any
  • namestringمسیرالزامی

    the function's name in the project (any case) or its id

  • idstring (uuid)مسیرالزامی

    the run's id

پاسخ

200object

  • statusstringالزامی

    one of cancelled

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Forbidden: forbidden, plan_required (CI/CD is not in the team's plan)
404Not found: not_found
409Conflict: not_running (the run has finished)
500internal: 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"
POST/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/rerun

Rerun 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 یا نشست داشبورد
نقش‌ها
مالک، ادمین، توسعه‌دهنده

پارامترها

  • any
  • namestringمسیرالزامی

    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الزامی
  • pathstring
  • namestringالزامی

    the file's name:, else its file name

  • run_namestring

    the file's run-name

  • triggerstringالزامی

    one of push, manual, rerun, schedule

  • eventstring

    one of push, manual, schedule

  • branchstringالزامی

    null: production

  • tagstring
  • commitstringالزامی

    40-hex git SHA

  • inputsobject
  • statusstringالزامی

    one of queued, running, succeeded, failed, cancelled

  • errorstring

    why it failed, in plain words

  • rerun_ofstring (uuid)
  • created_atstring (date-time)الزامی
  • started_atstring (date-time)
  • finished_atstring (date-time)
  • secondsinteger

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Forbidden: forbidden, plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
GET/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/steps/{step}/logs

A CI/CD step's log#

1000 lines per call; poll with after=<last_id> while the status is waiting or running.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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[]الزامی
  • last_idstring

    send as after for what comes next

خطاها

وضعیتتوضیح
400Bad request: bad_param
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
GET/v1/projects/{project}/functions/{name}/pipelines/runs/{id}/artifacts

List a CI/CD run's artifacts#

The artifacts the run's jobs kept, with when each expires.

دسترسی
کلید API یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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)الزامی

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found
500internal: 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"
GET/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 یا نشست داشبورد
نقش‌ها
همهٔ نقش‌ها

پارامترها

  • any
  • namestringمسیرالزامی

    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

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: plan_required (CI/CD is not in the team's plan)
404Not found: not_found (also an expired artifact)
500internal: an unexpected failure
503Unavailable: 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"