hosting

GET /v1/storage/buckets/{bucketId}

One bucket.

Барлық hosting соңғы нүктелері

Аутентификация

API кілтін bearer токені ретінде жіберіңіз. Кілтте storage.view рұқсаты болуы тиіс; онсыз кілтке 404 емес, 403 қатесі қайтарылады.

Бұл соңғы нүкте ұйым идентификаторын қабылдамайды. Сіздің кілтіңіз оның қай ұйымға тиесілі екенін өзі анықтайды және жауап соған шектеледі.

Әрекет етіп көру

Бұрыштық жақшалардағы кез келген нәрсені өз мәндеріңізбен, ал кілт орналастырушысын басқару тақтасынан алынған кілтпен алмастырыңыз.

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

Жүйеге кіргенсіз бе? Бақылау тақтасындағы API консолі ұйымыңыздың нақты идентификаторы мен жеке кілтіңізді автоматты түрде толтырады да, нақты жауапты көре алуыңыз үшін сұрауды тікелей жұмыс істеп тұрған API арқылы орындайды. Бұл соңғы нүктені API консолінде ашыңыз

Мәліметтер

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

Параметрлер

АтыTүріМіндеттіМазмұны
bucketId (path)stringИәThe bucket's id.

Жауап

АтыTүріМіндеттіМазмұны
idstringИә
namestringИәThe customer's own label, not the bucket's name at the vendor.
ownershipstring<zinn, customer>Иә`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>Иә
statusstring<pending, active, suspended, failed>Иә
bucket_namestringИә
endpointstringЖоқ
regionstringЖоқ
public_base_urlstringЖоқWhere a public object is readable. Empty means the bucket is private and its objects are reachable only through a presigned URL.
bytes_storedintegerЖоқ
objects_storedintegerЖоқ
usage_measured_atstringЖоқWhen 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_credentialbooleanИәWhether a stored key exists. The key and the Vault path it lives at are deliberately absent from this payload.
meteredbooleanИәWhether this bucket's bytes count against `object_storage_gb`.
created_atstringЖоқ

Бұл соңғы нүкте қайтара алатын қателер

401 · 403 · 404 · 429