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

Пошаљите API кључ као bearer токен. Кључ мора имати дозволу storage.view; кључ без ње се одбија уз 403, а не 404.

Ова крајња тачка не прихвата id организације. Ваш кључ већ идентификује организацију којој припада, а одговор је ограничен на њу.

Испробајте

Замените све што је у угластим заградама сопственим вредностима, а чувар места кључа кључем са своје контролне табле.

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

Пријављени сте? API конзола на вашој контролној табли попуњава ваш прави id организације и ваш сопствени кључ, и покреће захтев према живом API-ју како бисте могли да видите стварни одговор. Отворите ову крајњу тачку у API конзоли

Детаљи

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

Параметри

НазивТипОбавезноШта је ово
bucketId (path)stringДаThe bucket's id.

Одговор

НазивТипОбавезноШта је ово
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