S3-Compatible Storage
Create bucket
Creates a new bucket within an S3-compatible storage.
post/storage/v4/object_storages/{storage_id}/buckets
Path parameters
storage_idinteger required
Storage ID
Request body
Example request
{
"name": "my-new-bucket"
}Response
BucketDetailResV4
Example response
{
"cors": {
"allowed_origins": [
"https://example.com",
"*"
]
},
"lifecycle": {
"expiration_days": 30
},
"name": "my-bucket",
"policy": {
"is_public": true
},
"storage_id": 123
}