Object Storage
Create bucket
/object-storage/bucketsCreate an S3 compatible bucket in the storage tier you choose. It is ready in a few seconds and is billed by the hour for what it stores, serves and the requests it receives.
Authorization
Bearer YOUR_API_TOKEN with an API token. The X-API-Key: YOUR_API_TOKEN header works too.
Request body
Create a bucket.
Globally unique bucket name
length ≤ 255Tier slug or uuid
length ≤ 64Project (default: the organization's first project)
Create the bucket with versioning enabled
falseLabels {key: value}, at most 50
Lifecycle rules applied when the bucket is created (same as PUT .../lifecycle)
items ≤ 1000Properties (8)
length ≤ 255trueProperties (4)
length ≤ 4096items ≤ 50Properties (2)
length ≤ 512length ≤ 512Properties (3)
Days after the object was written
YYYY-MM-DD (midnight UTC), after today
Remove delete markers left without any version (versioned buckets)
Properties (2)
Days after a version stopped being the current one
Keep this many newer versions
Properties (1)
Not supported
Not supported
Create the bucket with Object Lock (WORM). Only possible now, never later; implies versioning
falseDefault retention of new objects (only with object_lock); null for none
Properties (3)
governance: keys with the bypass permission can still delete; compliance: nobody can
"governance""compliance"Retention in days
Retention in years
Required (true) with object_lock: you accept the Object Lock terms
falseResponses
Successful Response
application/json
Properties (4)
{}Properties (2)
Properties (3)
"governance""compliance"