ریپازیتوریها
ریپازیتوریهای Git روی cloudhost: clone و push با HTTPS و SSH، قوانین شاخهها و تگها، کلیدهای SSH و سابقهی هر push.
/v1/projects/{project}/repositoriesThe 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 idnamestringالزامیkindstringالزامیone of
source,app,functionhost_labelstringالزامیits address label: <host_label>.git
descriptionstringclone_urlobjectالزامیhttpsstringالزامیsign in with any user name and an API key as the password
sshstringالزامیsign in with an SSH key added to the team
default_branchstringالزامیsigned_commitsbooleanmax_size_mbintegerits size limit (the plan's unless set)
size_bytesintegerbuildsbooleanالزامیtrue: a push builds and deploys (an app's or function's); false: a source repository
appobject | nullidstringnamestringkindstring
projectobject | nullidstringnamestring
created_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/projects/my-api/repositories" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/repositoriesMake 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
descriptionstringup to 300 characters
default_branchstringthe branch a clone checks out, and its pipelines' production
default
"main"host_labelstringits 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 idnamestringالزامیkindstringالزامیone of
source,app,functionhost_labelstringالزامیits address label: <host_label>.git
descriptionstringclone_urlobjectالزامیhttpsstringالزامیsign in with any user name and an API key as the password
sshstringالزامیsign in with an SSH key added to the team
default_branchstringالزامیsigned_commitsbooleanmax_size_mbintegerits size limit (the plan's unless set)
size_bytesintegerbuildsbooleanالزامیtrue: a push builds and deploys (an app's or function's); false: a source repository
appobject | nullidstringnamestringkindstring
projectobject | nullidstringnamestring
created_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_name · bad_branch · bad_description · bad_host_label |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden · limit_exceeded |
| 404 | Not found: not_found |
| 409 | Taken: name_taken · host_label_taken |
| 500 | internal: an unexpected failure |
نمونه
curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories" \
-H "Authorization: Bearer $KEY" \
-d '{"name":"my-api"}'/v1/projects/{project}/repositories/{name}A repository: its clone addresses, default branch, signed commits, size and limit#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200Repository
idstringالزامیa source repository's
repo_…, or the app's or function's idnamestringالزامیkindstringالزامیone of
source,app,functionhost_labelstringالزامیits address label: <host_label>.git
descriptionstringclone_urlobjectالزامیhttpsstringالزامیsign in with any user name and an API key as the password
sshstringالزامیsign in with an SSH key added to the team
default_branchstringالزامیsigned_commitsbooleanmax_size_mbintegerits size limit (the plan's unless set)
size_bytesintegerbuildsbooleanالزامیtrue: a push builds and deploys (an app's or function's); false: a source repository
appobject | nullidstringnamestringkindstring
projectobject | nullidstringnamestring
created_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/repositories/{name}Delete a source repository with its contents (an app's goes with the app)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
namestringdeletedboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 409 | not_source: an app's or function's repository |
| 500 | internal: an unexpected failure |
نمونه
curl -X DELETE "https://api.ibel.ai/v1/projects/my-api/repositories/my-api" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/repositories/{name}Change a repository's default branch, signed-commit check, size limit or description#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
بدنهٔ درخواستapplication/json
default_branchstringsigned_commitsbooleantrue: every new commit pushed must be signed with an SSH key of a team member
max_size_mbinteger | nullthe repository's size limit, at most the plan's; null: the plan's
at least 1
descriptionstringup to 300 characters
پاسخ
200Repository
idstringالزامیa source repository's
repo_…, or the app's or function's idnamestringالزامیkindstringالزامیone of
source,app,functionhost_labelstringالزامیits address label: <host_label>.git
descriptionstringclone_urlobjectالزامیhttpsstringالزامیsign in with any user name and an API key as the password
sshstringالزامیsign in with an SSH key added to the team
default_branchstringالزامیsigned_commitsbooleanmax_size_mbintegerits size limit (the plan's unless set)
size_bytesintegerbuildsbooleanالزامیtrue: a push builds and deploys (an app's or function's); false: a source repository
appobject | nullidstringnamestringkindstring
projectobject | nullidstringnamestring
created_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_branch · bad_size · bad_description · bad_request |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: 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":"…"}'/v1/projects/{project}/repositories/{name}/rulesA repository's rules on branches and tags#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
rulesRepositoryRule[]idstring (uuid)الزامیpatternstringالزامیno_forcebooleanالزامیno_deletebooleanالزامیno_updatebooleanالزامیpushstring[]الزامیcreated_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/rules" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/repositories/{name}/rulesProtect branches or tags: no force pushes, no deletes, pushes only by named keys or a pipeline#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
بدنهٔ درخواستapplication/json
patternstringالزامیrefs/heads/<branch> or refs/tags/<tag>;
*within one part of the name,**across partsno_forcebooleanrefuse pushes that are not fast-forwards
default
trueno_deletebooleandefault
trueno_updatebooleanrefuse 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>orpipeline; empty: anyone who may push0–20 items
پاسخ
201RepositoryRuleCreated
idstring (uuid)الزامیpatternstringالزامیno_forcebooleanالزامیno_deletebooleanالزامیno_updatebooleanالزامیpushstring[]الزامیcreated_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_pattern · bad_push · bad_request |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden · limit_exceeded |
| 404 | Not found: not_found |
| 409 | rule_exists: a rule for that pattern |
| 500 | internal: an unexpected failure |
نمونه
curl -X POST "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/rules" \
-H "Authorization: Bearer $KEY" \
-d '{"pattern":"…"}'/v1/projects/{project}/repositories/{name}/rules/{id}Remove a rule#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
idstringdeletedboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: 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"/v1/projects/{project}/repositories/{name}/rules/{id}Change a rule#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
بدنهٔ درخواستapplication/json
no_forcebooleanrefuse pushes that are not fast-forwards
default
trueno_deletebooleandefault
trueno_updatebooleanrefuse 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>orpipeline; empty: anyone who may push0–20 items
پاسخ
200RepositoryRule
idstring (uuid)الزامیpatternstringالزامیno_forcebooleanالزامیno_deletebooleanالزامیno_updatebooleanالزامیpushstring[]الزامیcreated_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_push · bad_request |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: 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":["…"]}'/v1/projects/{project}/repositories/{name}/keysA repository's deploy keys (SSH keys for that repository only)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
keysSshKey[]idstring (uuid)الزامیnamestringالزامیtypestringالزامیfingerprintstringالزامیSHA256:…, as ssh-keygen -l shows it
public_keystringaccessstringالزامیone of
read,writepersonobjectidstringemailstring
created_atstring (date-time)last_used_atstring (date-time) | null
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/keys" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/repositories/{name}/keysAdd a deploy key: an SSH key that reads (default) or also pushes this repository only#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامی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,apporfunctionone 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
accessstringone of
read,write
پاسخ
201SshKeyCreated
idstring (uuid)الزامیnamestringالزامیtypestringالزامیfingerprintstringالزامیSHA256:…, as ssh-keygen -l shows it
public_keystringaccessstringالزامیone of
read,writepersonobjectidstringemailstring
created_atstring (date-time)last_used_atstring (date-time) | null
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_name · bad_key · bad_access |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden · limit_exceeded |
| 404 | Not found: not_found |
| 409 | key_taken: the key is already added (one key is one sign-in) |
| 500 | internal: 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":"…"}'/v1/projects/{project}/repositories/{name}/keys/{id}Remove a deploy key (it stops working at once)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
idstringdeletedboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: 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"/v1/projects/{project}/repositories/{name}/mirrorsA repository's mirrors and how their last run went (never their secrets)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
mirrorsRepositoryMirror[]idstring (uuid)الزامیdirectionstringالزامیone of
in,outurlstringالزامیusernamestring | nullsecret_hintstring | nullthe secret's last 4 characters
prunebooleaninterval_minutesinteger | nulllast_run_atstring (date-time) | nulllast_statusstring | nullone of
ok,failed,running,nulllast_errorstring | nullcreated_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/mirrors" \
-H "Authorization: Bearer $KEY"/v1/projects/{project}/repositories/{name}/mirrorsCopy every push to another host (out), or follow another host's repository (in: a source repository only; pushes here are then refused)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
بدنهٔ درخواستapplication/json
directionstringالزامیone of
in,outurlstringالزامیthe other repository's https:// address
usernamestringup to 200 characters
secretstringa token or password for the other host; kept sealed and never shown again
prunebooleanremove branches and tags the other side no longer has
default
trueinterval_minutesintegerin: how often it is brought up to date
5–1440 · default
10
پاسخ
201RepositoryMirrorCreated
idstring (uuid)الزامیdirectionstringالزامیone of
in,outurlstringالزامیusernamestring | nullsecret_hintstring | nullthe secret's last 4 characters
prunebooleaninterval_minutesinteger | nulllast_run_atstring (date-time) | nulllast_statusstring | nullone of
ok,failed,running,nulllast_errorstring | nullcreated_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_direction · bad_url (https only, public addresses) · bad_username · bad_secret · bad_interval · not_source |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden · limit_exceeded |
| 404 | Not found: not_found |
| 409 | mirror_exists: the repository already follows another |
| 500 | internal: 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"}'/v1/projects/{project}/repositories/{name}/mirrors/{id}Remove a mirror#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
200object
idstringdeletedboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: 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"/v1/projects/{project}/repositories/{name}/mirrors/{id}/syncRun a mirror now#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,function
پاسخ
202RepositoryMirrorAccepted
idstring (uuid)الزامیdirectionstringالزامیone of
in,outurlstringالزامیusernamestring | nullsecret_hintstring | nullthe secret's last 4 characters
prunebooleaninterval_minutesinteger | nulllast_run_atstring (date-time) | nulllast_statusstring | nullone of
ok,failed,running,nulllast_errorstring | nullcreated_atstring (date-time)
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
| 503 | unavailable: 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"/v1/projects/{project}/repositories/{name}/eventsEvery push, tag and delete, with the commit before and after, newest first (50 a page, at most 200)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
anynamestringمسیرالزامی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,apporfunctionone of
source,app,functionanyany
پاسخ
200object
eventsRepositoryEvent[]idstring (uuid)الزامیkindstringالزامیone of
push,tag,deleterefstringالزامیbeforestring | nullnull: created
afterstring | nullnull: deleted
forcedbooleanviastringالزامیone of
https,ssh,mirroractorstringcreated_atstring (date-time)
next_cursorstring | nullsend as
cursorfor the next page; null on the last page
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/projects/my-api/repositories/my-api/events" \
-H "Authorization: Bearer $KEY"/v1/ssh-keysYour 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_keystringaccessstringالزامیone of
read,writepersonobjectidstringemailstring
created_atstring (date-time)last_used_atstring (date-time) | null
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/ssh-keys" \
-H "Authorization: Bearer $KEY"/v1/ssh-keysAdd 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
accessstringone of
read,write· default"write"
پاسخ
201SshKeyCreated
idstring (uuid)الزامیnamestringالزامیtypestringالزامیfingerprintstringالزامیSHA256:…, as ssh-keygen -l shows it
public_keystringaccessstringالزامیone of
read,writepersonobjectidstringemailstring
created_atstring (date-time)last_used_atstring (date-time) | null
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Invalid: bad_name · bad_key · bad_access · no_person (an API key no person made) |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden · limit_exceeded |
| 409 | key_taken: the key is already added |
| 500 | internal: an unexpected failure |
نمونه
curl -X POST "https://api.ibel.ai/v1/ssh-keys" \
-H "Authorization: Bearer $KEY" \
-d '{"name":"my-api","public_key":"…"}'/v1/ssh-keys/{id}Remove an SSH key (yours; an owner or admin, anyone's)#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
idstring (uuid)مسیرالزامیthe key's id
پاسخ
200object
idstringdeletedboolean
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl -X DELETE "https://api.ibel.ai/v1/ssh-keys/88e2fe1d-6d75-4de5-8c8f-27380ec66903" \
-H "Authorization: Bearer $KEY"