hosting

GET /v1/storage/buckets/{bucketId}

One bucket.

Ҳамаи нуқтаҳои ниҳоии hosting

Санҷиши ҳаққоният

Kaliti API-ро ҳамчун рамзи доранда (bearer token) фиристед. Калит бояд дорои иҷозати storage.view бошад; калиди бидуни он бо хатои 403 рад карда мешавад, на 404.

Ин нуқтаи поёнӣ ягон рақами мушаххаси созмонро талаб намекунад. Калиди шумо аллакай созмонеро, ки ба он тааллуқ дорад, муайян мекунад ва ҷавоб ба он маҳдуд карда мешавад.

Санҷидан

Ҳар чизро дар қаavски кунҷӣ бо қиматҳои худ ва ҷойи нигоҳдорандаи калидро бо калима аз панели идоракунии худ иваз кунед.

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

Воarid шудаед? Консоли API дар панели идоракунии шумо рақами мушаххаси ташкилоти воқеӣ ва калиди худро пур мекунад ва дархостро бар зидди 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