Skip to main content
POST
/
storage
/
provisioning
/
v3
/
storages
/
{storage_id}
/
buckets
Create bucket
curl --request POST \
  --url https://api.gcore.com/storage/provisioning/v3/storages/{storage_id}/buckets \
  --header 'Authorization: <api-key>' \
  --header 'Content-Type: application/json' \
  --data '
{
  "name": "my-new-bucket"
}
'
{
  "data": {
    "name": "my-bucket",
    "storage_id": 123,
    "cors": {
      "allowed_origins": [
        "https://example.com",
        "*"
      ]
    },
    "lifecycle": {
      "expiration_days": 30
    },
    "policy": {
      "is_public": true
    }
  }
}

Authorizations

Authorization
string
header
required

API key for authentication. Make sure to include the word apikey, followed by a single space and then your token. Example: apikey 1234$abcdef

Path Parameters

storage_id
integer<int64>
required

Storage ID

Body

application/json
name
string
required

Name of the bucket to create

Example:

"my-new-bucket"

Response

BucketCreateEndpointResV3

BucketCreateEndpointResV3 response for creating bucket V3

data
object

BucketDetailResV3 consolidated bucket response V3