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

ریپازیتوری‌ها

ریپازیتوری‌های Git روی cloudhost: clone و push با HTTPS و SSH، قوانین شاخه‌ها و تگ‌ها، کلیدهای SSH و سابقه‌ی هر push.

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

The project's repositories: its source repositories and each app's and function's#

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

پارامترها

  • any

پاسخ

200object

  • repositoriesRepository[]
    • idstringالزامی

      a source repository's repo_…, or the app's or function's id

    • namestringالزامی
    • kindstringالزامی

      one of source, app, function

    • host_labelstringالزامی

      its address label: <host_label>.git

    • descriptionstring
    • clone_urlobjectالزامی
    • default_branchstringالزامی
    • signed_commitsboolean
    • max_size_mbinteger

      its size limit (the plan's unless set)

    • size_bytesinteger
    • buildsbooleanالزامی

      true: a push builds and deploys (an app's or function's); false: a source repository

    • appobject | null
    • projectobject | null
    • created_atstring (date-time)

خطاها

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

نمونه

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

Make a source repository (pushes to it are kept, never built)#

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

پارامترها

  • any

بدنهٔ درخواستapplication/json

  • namestringالزامی

    lowercase letters, digits and single hyphens, 1–63 characters; not the name of an app or function of the project

  • descriptionstring

    up to 300 characters

  • default_branchstring

    the branch a clone checks out, and its pipelines' production

    default "main"

  • host_labelstring

    its address label, unique on the platform (default: its name, or <name>-<project>)

پاسخ

201RepositoryCreated

  • idstringالزامی

    a source repository's repo_…, or the app's or function's id

  • namestringالزامی
  • kindstringالزامی

    one of source, app, function

  • host_labelstringالزامی

    its address label: <host_label>.git

  • descriptionstring
  • clone_urlobjectالزامی
  • default_branchstringالزامی
  • signed_commitsboolean
  • max_size_mbinteger

    its size limit (the plan's unless set)

  • size_bytesinteger
  • buildsbooleanالزامی

    true: a push builds and deploys (an app's or function's); false: a source repository

  • appobject | null
  • projectobject | null
  • created_atstring (date-time)

خطاها

وضعیتتوضیح
400Invalid: bad_name · bad_branch · bad_description · bad_host_label
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden · limit_exceeded
404Not found: not_found
409Taken: name_taken · host_label_taken
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories" \
  -H "Authorization: Bearer $KEY" \
  -d '{"name":"my-api"}'
GET/v1/projects/{project}/repositories/{name}

A repository: its clone addresses, default branch, signed commits, size and limit#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200Repository

  • idstringالزامی

    a source repository's repo_…, or the app's or function's id

  • namestringالزامی
  • kindstringالزامی

    one of source, app, function

  • host_labelstringالزامی

    its address label: <host_label>.git

  • descriptionstring
  • clone_urlobjectالزامی
  • default_branchstringالزامی
  • signed_commitsboolean
  • max_size_mbinteger

    its size limit (the plan's unless set)

  • size_bytesinteger
  • buildsbooleanالزامی

    true: a push builds and deploys (an app's or function's); false: a source repository

  • appobject | null
  • projectobject | null
  • created_atstring (date-time)

خطاها

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

نمونه

curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api" \
  -H "Authorization: Bearer $KEY"
DELETE/v1/projects/{project}/repositories/{name}

Delete a source repository with its contents (an app's goes with the app)#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • namestring
  • deletedboolean

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
409not_source: an app's or function's repository
500internal: an unexpected failure

نمونه

curl -X DELETE "https://api.ibel.ai/v1/projects/my-api/repositories/my-api" \
  -H "Authorization: Bearer $KEY"
PATCH/v1/projects/{project}/repositories/{name}

Change a repository's default branch, signed-commit check, size limit or description#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

بدنهٔ درخواستapplication/json

  • default_branchstring
  • signed_commitsboolean

    true: every new commit pushed must be signed with an SSH key of a team member

  • max_size_mbinteger | null

    the repository's size limit, at most the plan's; null: the plan's

    at least 1

  • descriptionstring

    up to 300 characters

پاسخ

200Repository

  • idstringالزامی

    a source repository's repo_…, or the app's or function's id

  • namestringالزامی
  • kindstringالزامی

    one of source, app, function

  • host_labelstringالزامی

    its address label: <host_label>.git

  • descriptionstring
  • clone_urlobjectالزامی
  • default_branchstringالزامی
  • signed_commitsboolean
  • max_size_mbinteger

    its size limit (the plan's unless set)

  • size_bytesinteger
  • buildsbooleanالزامی

    true: a push builds and deploys (an app's or function's); false: a source repository

  • appobject | null
  • projectobject | null
  • created_atstring (date-time)

خطاها

وضعیتتوضیح
400Invalid: bad_branch · bad_size · bad_description · bad_request
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X PATCH "https://api.ibel.ai/v1/projects/my-api/repositories/my-api" \
  -H "Authorization: Bearer $KEY" \
  -d '{"default_branch":"…","signed_commits":true,"max_size_mb":1,"description":"…"}'
GET/v1/projects/{project}/repositories/{name}/rules

A repository's rules on branches and tags#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • rulesRepositoryRule[]
    • idstring (uuid)الزامی
    • patternstringالزامی
    • no_forcebooleanالزامی
    • no_deletebooleanالزامی
    • no_updatebooleanالزامی
    • pushstring[]الزامی
    • created_atstring (date-time)

خطاها

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

نمونه

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

Protect branches or tags: no force pushes, no deletes, pushes only by named keys or a pipeline#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

بدنهٔ درخواستapplication/json

  • patternstringالزامی

    refs/heads/<branch> or refs/tags/<tag>; * within one part of the name, ** across parts

  • no_forceboolean

    refuse pushes that are not fast-forwards

    default true

  • no_deleteboolean

    default true

  • no_updateboolean

    refuse moving it once it exists (default true for tags, false for branches)

  • pushstring[]

    the only callers that may push there: key:<API key id>, sshkey:<SSH key id> or pipeline; empty: anyone who may push

    0–20 items

پاسخ

201RepositoryRuleCreated

  • idstring (uuid)الزامی
  • patternstringالزامی
  • no_forcebooleanالزامی
  • no_deletebooleanالزامی
  • no_updatebooleanالزامی
  • pushstring[]الزامی
  • created_atstring (date-time)

خطاها

وضعیتتوضیح
400Invalid: bad_pattern · bad_push · bad_request
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden · limit_exceeded
404Not found: not_found
409rule_exists: a rule for that pattern
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/rules" \
  -H "Authorization: Bearer $KEY" \
  -d '{"pattern":"…"}'
DELETE/v1/projects/{project}/repositories/{name}/rules/{id}

Remove a rule#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

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

    the rule's id

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • idstring
  • deletedboolean

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X DELETE "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/rules/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
  -H "Authorization: Bearer $KEY"
PATCH/v1/projects/{project}/repositories/{name}/rules/{id}

Change a rule#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

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

    the rule's id

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

بدنهٔ درخواستapplication/json

  • no_forceboolean

    refuse pushes that are not fast-forwards

    default true

  • no_deleteboolean

    default true

  • no_updateboolean

    refuse moving it once it exists (default true for tags, false for branches)

  • pushstring[]

    the only callers that may push there: key:<API key id>, sshkey:<SSH key id> or pipeline; empty: anyone who may push

    0–20 items

پاسخ

200RepositoryRule

  • idstring (uuid)الزامی
  • patternstringالزامی
  • no_forcebooleanالزامی
  • no_deletebooleanالزامی
  • no_updatebooleanالزامی
  • pushstring[]الزامی
  • created_atstring (date-time)

خطاها

وضعیتتوضیح
400Invalid: bad_push · bad_request
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X PATCH "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/rules/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
  -H "Authorization: Bearer $KEY" \
  -d '{"no_force":true,"no_delete":true,"no_update":true,"push":["…"]}'
GET/v1/projects/{project}/repositories/{name}/keys

A repository's deploy keys (SSH keys for that repository only)#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • keysSshKey[]
    • idstring (uuid)الزامی
    • namestringالزامی
    • typestringالزامی
    • fingerprintstringالزامی

      SHA256:…, as ssh-keygen -l shows it

    • public_keystring
    • accessstringالزامی

      one of read, write

    • personobject
    • created_atstring (date-time)
    • last_used_atstring (date-time) | null

خطاها

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

نمونه

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

Add a deploy key: an SSH key that reads (default) or also pushes this repository only#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

بدنهٔ درخواستapplication/json

  • namestringالزامی

    up to 100 characters

  • public_keystringالزامی

    one line of an SSH public key (the .pub file): Ed25519, ECDSA or RSA of 3072 bits or more

  • accessstring

    one of read, write

پاسخ

201SshKeyCreated

  • idstring (uuid)الزامی
  • namestringالزامی
  • typestringالزامی
  • fingerprintstringالزامی

    SHA256:…, as ssh-keygen -l shows it

  • public_keystring
  • accessstringالزامی

    one of read, write

  • personobject
  • created_atstring (date-time)
  • last_used_atstring (date-time) | null

خطاها

وضعیتتوضیح
400Invalid: bad_name · bad_key · bad_access
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden · limit_exceeded
404Not found: not_found
409key_taken: the key is already added (one key is one sign-in)
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/keys" \
  -H "Authorization: Bearer $KEY" \
  -d '{"name":"my-api","public_key":"…"}'
DELETE/v1/projects/{project}/repositories/{name}/keys/{id}

Remove a deploy key (it stops working at once)#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

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

    the key's id

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • idstring
  • deletedboolean

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X DELETE "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/keys/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
  -H "Authorization: Bearer $KEY"
GET/v1/projects/{project}/repositories/{name}/mirrors

A repository's mirrors and how their last run went (never their secrets)#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • mirrorsRepositoryMirror[]
    • idstring (uuid)الزامی
    • directionstringالزامی

      one of in, out

    • urlstringالزامی
    • usernamestring | null
    • secret_hintstring | null

      the secret's last 4 characters

    • pruneboolean
    • interval_minutesinteger | null
    • last_run_atstring (date-time) | null
    • last_statusstring | null

      one of ok, failed, running, null

    • last_errorstring | null
    • created_atstring (date-time)

خطاها

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

نمونه

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

Copy every push to another host (out), or follow another host's repository (in: a source repository only; pushes here are then refused)#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

بدنهٔ درخواستapplication/json

  • directionstringالزامی

    one of in, out

  • urlstringالزامی

    the other repository's https:// address

  • usernamestring

    up to 200 characters

  • secretstring

    a token or password for the other host; kept sealed and never shown again

  • pruneboolean

    remove branches and tags the other side no longer has

    default true

  • interval_minutesinteger

    in: how often it is brought up to date

    5–1440 · default 10

پاسخ

201RepositoryMirrorCreated

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

    one of in, out

  • urlstringالزامی
  • usernamestring | null
  • secret_hintstring | null

    the secret's last 4 characters

  • pruneboolean
  • interval_minutesinteger | null
  • last_run_atstring (date-time) | null
  • last_statusstring | null

    one of ok, failed, running, null

  • last_errorstring | null
  • created_atstring (date-time)

خطاها

وضعیتتوضیح
400Invalid: bad_direction · bad_url (https only, public addresses) · bad_username · bad_secret · bad_interval · not_source
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden · limit_exceeded
404Not found: not_found
409mirror_exists: the repository already follows another
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/mirrors" \
  -H "Authorization: Bearer $KEY" \
  -d '{"direction":"in","url":"https://example.com"}'
DELETE/v1/projects/{project}/repositories/{name}/mirrors/{id}

Remove a mirror#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

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

    the mirror's id

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

200object

  • idstring
  • deletedboolean

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X DELETE "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/mirrors/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
  -H "Authorization: Bearer $KEY"
POST/v1/projects/{project}/repositories/{name}/mirrors/{id}/sync

Run a mirror now#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

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

    the mirror's id

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

پاسخ

202RepositoryMirrorAccepted

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

    one of in, out

  • urlstringالزامی
  • usernamestring | null
  • secret_hintstring | null

    the secret's last 4 characters

  • pruneboolean
  • interval_minutesinteger | null
  • last_run_atstring (date-time) | null
  • last_statusstring | null

    one of ok, failed, running, null

  • last_errorstring | null
  • created_atstring (date-time)

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure
503unavailable: mirrors cannot run right now

نمونه

curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/mirrors/88e2fe1d-6d75-4de5-8c8f-27380ec66903/sync" \
  -H "Authorization: Bearer $KEY"
GET/v1/projects/{project}/repositories/{name}/events

Every push, tag and delete, with the commit before and after, newest first (50 a page, at most 200)#

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

پارامترها

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

    the repository's name in the project: a source repository's, or an app's or function's name

  • kindstringکوئری

    when an app, a function and a source repository share a name: source, app or function

    one of source, app, function

  • any
  • any

پاسخ

200object

  • eventsRepositoryEvent[]
    • idstring (uuid)الزامی
    • kindstringالزامی

      one of push, tag, delete

    • refstringالزامی
    • beforestring | null

      null: created

    • afterstring | null

      null: deleted

    • forcedboolean
    • viastringالزامی

      one of https, ssh, mirror

    • actorstring
    • created_atstring (date-time)
  • next_cursorstring | null

    send as cursor for the next page; null on the last page

خطاها

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

نمونه

curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/events" \
  -H "Authorization: Bearer $KEY"
GET/v1/ssh-keys

Your SSH keys for cloning and pushing (all=1, owner or admin: every member's)#

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

پارامترها

  • allstringکوئری

    1: every member's keys (owner or admin)

    one of 1

پاسخ

200object

  • keysSshKey[]
    • idstring (uuid)الزامی
    • namestringالزامی
    • typestringالزامی
    • fingerprintstringالزامی

      SHA256:…, as ssh-keygen -l shows it

    • public_keystring
    • accessstringالزامی

      one of read, write

    • personobject
    • created_atstring (date-time)
    • last_used_atstring (date-time) | null

خطاها

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

نمونه

curl "https://api.ibel.ai/v1/ssh-keys" \
  -H "Authorization: Bearer $KEY"
POST/v1/ssh-keys

Add your SSH key: it reads (and, with write, pushes) every repository of the team you may#

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

بدنهٔ درخواستapplication/json

  • namestringالزامی

    up to 100 characters

  • public_keystringالزامی

    one line of an SSH public key (the .pub file): Ed25519, ECDSA or RSA of 3072 bits or more

  • accessstring

    one of read, write · default "write"

پاسخ

201SshKeyCreated

  • idstring (uuid)الزامی
  • namestringالزامی
  • typestringالزامی
  • fingerprintstringالزامی

    SHA256:…, as ssh-keygen -l shows it

  • public_keystring
  • accessstringالزامی

    one of read, write

  • personobject
  • created_atstring (date-time)
  • last_used_atstring (date-time) | null

خطاها

وضعیتتوضیح
400Invalid: bad_name · bad_key · bad_access · no_person (an API key no person made)
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden · limit_exceeded
409key_taken: the key is already added
500internal: an unexpected failure

نمونه

curl -X POST "https://api.ibel.ai/v1/ssh-keys" \
  -H "Authorization: Bearer $KEY" \
  -d '{"name":"my-api","public_key":"…"}'
DELETE/v1/ssh-keys/{id}

Remove an SSH key (yours; an owner or admin, anyone's)#

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

پارامترها

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

    the key's id

پاسخ

200object

  • idstring
  • deletedboolean

خطاها

وضعیتتوضیح
401unauthorized: missing, invalid, expired or revoked credential
403Not allowed: forbidden
404Not found: not_found
500internal: an unexpected failure

نمونه

curl -X DELETE "https://api.ibel.ai/v1/ssh-keys/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
  -H "Authorization: Bearer $KEY"