Skip to main content

Create object storage bucket

POST 

/organizations/organization/object_storage/object_storage_cluster/buckets

Create a new bucket in an object storage account

Scopes

  • object_storage

OAuth2 Scopes

When using OAuth2 authentication, scopes are prefixed with api.katapult.io/core/v1/.

Request

Body

    organization

    object

    required

    All 'organization[]' params are mutually exclusive, only one can be provided.

    id string
    sub_domain string

    object_storage_cluster

    object

    required

    region string

    properties

    object

    required

    name string

    Can only include lowercase alphanumeric characters and hyphens, has to be globally unique.

    label string

    Optional alternative name/comment.

    serve_static_site boolean

    Whether to serve the bucket as a static website, defaults to false.

    static_site_index string

    Optional name of the index html page for a static website (requires public_read).

    static_site_error string

    Optional name of the error html page for a static website (requires public_read).

    access_control_list

    object

    public_read boolean

    Allow anyone to read objects in the bucket.

    public_list boolean

    Allow anyone to list objects in the bucket (requires public_read).

    all_keys_read boolean

    Allow any access key to read objects in the bucket.

    all_keys_write boolean

    Allow any access key to create or delete objects in the bucket.

    read_key_ids string[]
    write_key_ids string[]

Responses

Create a new bucket in an object storage account

Schema

    object_storage_bucket

    object

    required

    name string
    label stringnullable
    created_at integer
    state ObjectStorageBucketStateEnum (string)

    Possible values: [pending, configured]

    custom_domain stringnullable
    object_count integernullable
    size integernullable
    serve_static_site boolean
    static_site_index stringnullable
    static_site_error stringnullable
    public_url string

    access_control_list

    object

    public_read boolean
    public_list boolean
    all_keys_read boolean
    all_keys_write boolean
    read_key_ids string[]
    write_key_ids string[]
Loading...