Galon Cloud
Galon Cloud

Storage

Français · API reference · Documentation home

Galon Storage

Opening progressively: the routes on this page answer when the service is enabled for your account. Until then they answer 404 not_found. Ask support to enable it.

Buckets and files for your project, through Galon's own HTTP API (not S3-compatible). The bytes are sent with PUT to a short-lived upload capability, not through the JSON API. Files are stored in Paris (EU). Scopes: storage:read, storage:write.

Upload a file

POST /v1/storage/buckets                         create a bucket
POST /v1/storage/buckets/{bucket_id}/uploads     begin: reserve the key, get a PUT capability
PUT  <capability.url>                            send the bytes with the capability headers
POST /v1/storage/uploads/{upload_id}/commit      the object becomes available

Large files use a multipart upload on the same capability (available on request). Sizes: Limits.

galon storage put bkt_... ./dist/index.html
galon storage usage

Share: signed links and public buckets

POST /v1/storage/objects/{object_id}/links returns a signed link that expires. PUT /v1/storage/buckets/{bucket_id}/access with {"public": true, "confirm": "allow"} serves a bucket publicly; {"public": false, "confirm": "disallow"} closes it.

Versions and usage

GET  /v1/storage/objects/{object_id}/versions
POST /v1/storage/objects/{object_id}/restore
GET  /v1/storage/usage
GET  /v1/storage/usage/history?days=30

Storage is paid per GB-month from your balance, prices in USD. When the balance is exhausted, files stay readable for 14 days, then stop being served; they may be deleted from day 30, after notices.