فضای ذخیرهسازی
باکت برای هر کلاینت ذخیرهسازی، و کلید ذخیرهٔ تیم.
/v1/bucketsList buckets and the storage endpoint#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پاسخ
200BucketList
endpointstringالزامیbucketsBucket[]الزامیnamestringالزامیcreated_atstring (date-time)size_bytesinteger | nulllast measured
objectsinteger | nullstatusstringone of
availableprojectsConnected[]namestringالزامیkindstringالزامیone of
function,appenvironmentsstring[]الزامیbindingsstring[]الزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/buckets" \
-H "Authorization: Bearer $KEY"/v1/bucketsCreate a bucket#
The team's first bucket also creates its storage key and returns the secret once (step-up for that one only).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
- تایید دوم
- با نشست داشبورد، عامل دوم در ۱۰ دقیقهٔ اخیر لازم است؛ کلید API نیازی ندارد.
بدنهٔ درخواستapplication/json
namestringالزامی3-63 lowercase letters, digits and single hyphens
pattern
^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
پاسخ
201BucketCreated
namestringالزامیendpointstringالزامیaccess_keystringالزامیsecret_keystringonly when the key was just made
notestring
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_name, bad_json |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden, step_up_required |
| 409 | Conflict: name_taken |
| 500 | internal: an unexpected failure |
| 503 | Unavailable: storage |
نمونه
curl -X POST "https://api.ibel.ai/v1/buckets" \
-H "Authorization: Bearer $KEY" \
-d '{"name":"uploads"}'/v1/buckets/{name}Get a bucket#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
namestringمسیرالزامیthe bucket's name
pattern
^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
پاسخ
200Bucket
namestringالزامیcreated_atstring (date-time)size_bytesinteger | nulllast measured
objectsinteger | nullstatusstringone of
availableprojectsConnected[]namestringالزامیkindstringالزامیone of
function,appenvironmentsstring[]الزامیbindingsstring[]الزامی
endpointstringالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/buckets/uploads" \
-H "Authorization: Bearer $KEY"/v1/buckets/{name}Delete an empty bucket#
Refused while a live version binds it (checked after the role and the name).
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
پارامترها
namestringمسیرالزامیthe bucket's name
pattern
^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$
پاسخ
200Deleted
namestringdeletedbooleanالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden |
| 404 | Not found: not_found |
| 409 | Conflict: bound, not_empty |
| 500 | internal: an unexpected failure |
| 503 | Unavailable: storage |
نمونه
curl -X DELETE "https://api.ibel.ai/v1/buckets/uploads" \
-H "Authorization: Bearer $KEY"- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- مالک، ادمین، توسعهدهنده
- تایید دوم
- با نشست داشبورد، عامل دوم در ۱۰ دقیقهٔ اخیر لازم است؛ کلید API نیازی ندارد.
پاسخ
200StorageCredentials
endpointstringالزامیaccess_keystringالزامیsecret_keystringالزامیregionstringالزامی
خطاها
| وضعیت | توضیح |
|---|---|
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 403 | Not allowed: forbidden, step_up_required |
| 500 | internal: an unexpected failure |
| 503 | Unavailable: storage |
نمونه
curl -X POST "https://api.ibel.ai/v1/storage/credentials" \
-H "Authorization: Bearer $KEY"/v1/buckets/{name}/observabilitySize, objects and requests per hour#
- دسترسی
- کلید API یا نشست داشبورد
- نقشها
- همهٔ نقشها
پارامترها
namestringمسیرالزامیthe bucket's name
pattern
^[a-z0-9][a-z0-9-]{1,61}[a-z0-9]$rangestringکوئری24h (default), 7d or 30d
one of
24h,7d,30d· default"24h"
پاسخ
200ResourceObservability
rangestringالزامیstepstringالزامیtotalsobjectالزامیmetricsobject[]الزامیkeystringالزامیlabelstringالزامیunitstringالزامی
seriesobject[]الزامیtstring (date-time)
tablesobject[]databases only: the latest top statements
keystringlabelstringsampled_atstring (date-time)columnsobject[]keystringlabelstring
rowsobject[]
notestring
خطاها
| وضعیت | توضیح |
|---|---|
| 400 | Bad request: bad_range |
| 401 | unauthorized: missing, invalid, expired or revoked credential |
| 404 | Not found: not_found |
| 500 | internal: an unexpected failure |
نمونه
curl "https://api.ibel.ai/v1/buckets/uploads/observability" \
-H "Authorization: Bearer $KEY"