- Method:
GET
- Path:
/v1/orgs/{org}/s3/buckets
- Operation ID:
listBuckets
- Tag: Object storage
Send Authorization: Bearer <credential>. The credential is either an API key (vsk_…) created for an organization, or an OIDC access token obtained by signing in to VirtScale.
| Name |
Type |
Required |
Description |
org |
string (uuid) |
Yes |
The organization’s id. |
| Name |
Type |
Required |
Description |
limit |
integer |
No |
|
| Field |
Type |
Required |
Enum |
Description |
items |
array of BucketOut |
Yes |
|
|
items.created_at |
string (date-time) |
Yes |
|
|
items.id |
string (uuid) |
Yes |
|
|
items.name |
string |
Yes |
|
|
items.observed_at |
string (date-time), nullable |
No |
|
|
items.observed_exists |
boolean, nullable |
No |
|
|
items.observed_quota |
BucketQuotaOut, nullable |
No |
|
|
items.observed_quota.max_objects |
integer, nullable |
No |
|
Objects this bucket may hold. null = no per-bucket cap. |
items.observed_quota.max_size_bytes |
integer, nullable |
No |
|
Bytes this bucket may hold. null = no per-bucket cap. |
items.observed_versioning |
boolean, nullable |
No |
|
Versioning as the object store last reported it. null means no observation has been recorded – not that versioning is off. |
items.operation_id |
string (uuid), nullable |
No |
|
|
items.purge_after |
string (date-time), nullable |
No |
|
|
items.quota |
BucketQuotaOut |
Yes |
|
|
items.quota.max_objects |
integer, nullable |
No |
|
Objects this bucket may hold. null = no per-bucket cap. |
items.quota.max_size_bytes |
integer, nullable |
No |
|
Bytes this bucket may hold. null = no per-bucket cap. |
items.soft_deleted_at |
string (date-time), nullable |
No |
|
|
items.state |
string |
Yes |
|
|
items.updated_at |
string (date-time) |
Yes |
|
|
items.versioning |
boolean |
Yes |
|
Whether previous versions of overwritten objects are kept, as requested when the bucket was created. This is desired state; observed_versioning is what the object store last reported. |
next_cursor |
string, nullable |
No |
|
|
Every error response is application/problem+json (schema Problem).
| Status |
Meaning |
| 400 |
The request is malformed or failed validation. |
| 401 |
The credential is missing or invalid. |
| 404 |
The resource does not exist. |
| default |
Any other status is possible; the code field identifies the error. |
curl "https://api.virtscale.nl/v1/orgs/$ORG_ID/s3/buckets" \
-H "Authorization: Bearer $VIRTSCALE_API_KEY"