GET /projects/{project_id}/storage/buckets
Console — List the project's buckets
Galon console session: tenant from the session, project in the path verified as an active project of the tenant, project environment; admin role (a member receives 403 reserve_admin). Same control plane and same projection as the key-based route. Hidden surface: 404 not_found until the Galon Object opt-in is enabled.
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | |
limit | query | integer | |
cursor | query | string |
Responses
| Status | Description | Body |
|---|---|---|
200 | Page of buckets, signed cursor | StorageBucketPage |
401 | unauthorized (session missing, expired or revoked) | Error |
403 | reserve_admin (member) | Error |
400 | query_invalid, storage_page_limit_invalid, storage_cursor_invalid | Error |
404 | project_not_found, not_found (surface closed or tenant not admitted), | Error |
503 | storage_temporarily_unavailable | Error |
422 | project_id_invalid | Error |
Examples
curl
curl -X GET "$GALON_API_BASE/projects/<project_id>/storage/buckets" \
-H "Authorization: Bearer $GALON_API_KEY"POST /projects/{project_id}/storage/buckets
Console — Create a bucket
Galon console session: tenant from the session, project in the path verified as an active project of the tenant, project environment; admin role (a member receives 403 reserve_admin). Same control plane and same projection as the key-based route. 201 on creation, 200 on replay of the same Idempotency-Key. Hidden surface: 404 not_found until the Galon Object opt-in is enabled.
Console session only (signed-in console).
Parameters
| Name | In | Type | Description |
|---|---|---|---|
project_id | path | string · required | |
Idempotency-Key | header | string · required |
Request body
application/json · schema StorageBucketCreate
| Field | Type | Description |
|---|---|---|
name | string · required | |
placement | "global" | "eu" | "africa-west" · required |
Responses
| Status | Description | Body |
|---|---|---|
201 | Bucket created | StorageBucketReceipt |
200 | Idempotent replay | StorageBucketReceipt |
400 | body_fields_invalid, body_invalid, storage_idempotency_key_invalid | Error |
401 | unauthorized (session missing, expired or revoked) | Error |
403 | reserve_admin (member) | Error |
404 | project_not_found, not_found (surface closed or tenant not admitted), | Error |
409 | storage_idempotency_conflict, storage_bucket_exists | Error |
413 | body_too_large | Error |
415 | content_type_invalid | Error |
422 | project_id_invalid, storage_bucket_name_invalid, storage_placement_invalid | Error |
429 | storage_bucket_quota_exceeded | Error |
503 | storage_temporarily_unavailable, storage_operation_indeterminate | Error |
Examples
curl
curl -X POST "$GALON_API_BASE/projects/<project_id>/storage/buckets" \
-H "Authorization: Bearer $GALON_API_KEY" \
-H "Idempotency-Key: <unique-key>" \
-H "Content-Type: application/json" \
-d '{"name": "string", "placement": "global"}'