hosting

GET /v1/storage/buckets/{bucketId}

One bucket.

Barcha hosting yakuniy nuqtalari

Autentifikatsiya

API kalitini bearer token sifatida yuboring. Kalit storage.view ruxsatiga ega boʻlishi shart; ruxsatsiz kalit 404 emas, balki 403 xatosi bilan rad etiladi.

Bu yakuniy nuqta hech qanday tashkilot identifikatorini qabul qilmaydi. Sizning kalitingiz unga tegishli tashkilotni allaqachon aniqlaydi va javob shunga qarab cheklanadi.

Sinab ko'rish

Qavslardagi har qanday narsani o'z qiymatlaringiz bilan, kalit pleysxolderini эsa boshqaruv panelingizdagi kalit bilan almashtiring.

curl -X GET https://api.zinndigital.com/v1/storage/buckets/{bucketId} \
  -H "Authorization: Bearer zdk_live_…"

Tizimga kirganmisiz? Boshqaruv panelingizdagi API konsoli haqiqiy tashkilot ID raqamingiz va shaxsiy kalitingizni avtomatik to'ldiradi hamda haqiqiy javobni ko'rishingiz uchun so'rovni jonli API orqali bajaradi. Ushbu yakuniy nuqtani API konsolida oching

Tafsilotlar

One bucket belonging to this organisation. Requires `storage.view`.

Parametrlar

NomiTuriMajburiyNima bu
bucketId (path)stringHaThe bucket's id.

Javob

NomiTuriMajburiyNima bu
idstringHa
namestringHaThe customer's own label, not the bucket's name at the vendor.
ownershipstring<zinn, customer>Ha`zinn` is storage we operate and bill for; `customer` is the organisation's own bucket, which costs us nothing and is not metered against their allowance.
vendorstring<r2, s3, b2, bunny, gcore, minio>Ha
statusstring<pending, active, suspended, failed>Ha
bucket_namestringHa
endpointstringYo'q
regionstringYo'q
public_base_urlstringYo'qWhere a public object is readable. Empty means the bucket is private and its objects are reachable only through a presigned URL.
bytes_storedintegerYo'q
objects_storedintegerYo'q
usage_measured_atstringYo'qWhen the size above was last measured against the vendor. `null` means it has not been measured yet — which is not the same as empty.
has_credentialbooleanHaWhether a stored key exists. The key and the Vault path it lives at are deliberately absent from this payload.
meteredbooleanHaWhether this bucket's bytes count against `object_storage_gb`.
created_atstringYo'q

Ushbu yakuniy nuqta qaytarishi mumkin bo'lgan xatolar

401 · 403 · 404 · 429