Kimlik Doğrulama
Bearer token olarak bir API anahtarı gönderin. Anahtar storage.view iznine sahip olmalıdır; bu izne sahip olmayan bir anahtar 404 ile değil, 403 ile reddedilir.
Bu uç nokta hiçbir organizasyon kimliği almaz. Anahtarınız zaten ait olduğu organizasyonu tanımlar ve yanıt bu organizasyonla sınırlandırılır.
Dene
Köşeli parantez içindeki her şeyi kendi değerlerinizle ve anahtar yer tutucusunu panonuzdan bir anahtarla değiştirin.
curl -X GET https://api.zinndigital.com/v1/storage/buckets \
-H "Authorization: Bearer zdk_live_…"Oturum açtınız mı? Panonuzdaki API konsolu, gerçek organizasyon kimliğinizi ve kendi anahtarınızı otomatik olarak doldurur ve isteği canlı API üzerinde çalıştırarak gerçek yanıtı görmenizi sağlar. Bu uç noktayı API konsolunda açın
Ayrıntılar
Every bucket this organisation has, ours and its own. A `zinn`-owned bucket is storage we operate and bill for; a `customer`-owned one is the organisation's own S3-compatible bucket, which costs us nothing and is therefore **not** metered against the plan's `object_storage_gb` allowance. `has_credential` reports whether a stored key exists. The credential itself and the Vault path it lives at are deliberately absent from this payload: a path is not a secret, but it is a map of where our secrets live, and this response reaches a browser. Requires `storage.view`.
Yanıt
| Ad | Tür | Zorunlu | Ne olduğu |
|---|---|---|---|
items | StorageBucket[] | Evet | — |
usage | StorageUsage | Evet | — |
Bu uç noktanın dönderebileceği hatalar
401 · 403 · 429