hosting

GET /v1/storage/buckets/{bucketId}

One bucket.

Lahat ng hosting endpoint

Pagpapatotoo

Magpadala ng API key bilang isang bearer token. Kailangang taglayin ng key ang pahintulot na storage.view; ang key na wala nito ay tatanggihan gamit ang 403, hindi 404.

Ang endpoint na ito ay hindi nangangailangan ng id ng organisasyon. Natutukoy na ng iyong key ang organisasyong kinabibilangan nito, at nakatuon ang tugon dito.

Subukan ito

Palitan ang anuman sa loob ng mga panaklong na may anggulo ng iyong sariling mga halaga, at ang placeholder ng key na may key mula sa iyong dashboard.

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

Nakalagda? Ang API console sa iyong dashboard ay awtomatikong naglalagay ng iyong tunay na ID ng organisasyon at sariling susi, at pinapatakbo ang kahilingan laban sa live na API upang makita mo ang aktwal na tugon. Buksan ang endpoint na ito sa console ng API

Mga Detalye

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

Mga Parameter

PangalanUriKailanganAno ito
bucketId (path)stringOoThe bucket's id.

Tugon

PangalanUriKailanganAno ito
idstringOo
namestringOoThe customer's own label, not the bucket's name at the vendor.
ownershipstring<zinn, customer>Oo`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>Oo
statusstring<pending, active, suspended, failed>Oo
bucket_namestringOo
endpointstringHindi
regionstringHindi
public_base_urlstringHindiWhere a public object is readable. Empty means the bucket is private and its objects are reachable only through a presigned URL.
bytes_storedintegerHindi
objects_storedintegerHindi
usage_measured_atstringHindiWhen 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_credentialbooleanOoWhether a stored key exists. The key and the Vault path it lives at are deliberately absent from this payload.
meteredbooleanOoWhether this bucket's bytes count against `object_storage_gb`.
created_atstringHindi

Mga error na maibabalik ng endpoint na ito

401 · 403 · 404 · 429