Create a Bucket
Create a Bucket
When you create a bucket you become the bucket owner. You cannot make an anonymous request.
PUT / HTTP/1.1
Host: {bucket}.{region}.cdn77-storage.comParameters
| Parameter | Description |
|---|---|
x-amz-aclnone | private, public-read, public-read-write, authenticated-read |
x-amz-bucket-object-lock-enabledboolean | true, false |
Request Entities
| Name | Description |
|---|---|
CreateBucketConfigurationnone | A container for the bucket configuration. |
LocationConstraintstring | Name of the cluster region. |
HTTP Response
If the bucket name is unique, within constraints and unused, the operation will succeed.
If a bucket with the same name already exists and the user is the bucket owner, the operation will succeed.
If the bucket name is already in use, the operation will fail.
| HTTP Code | Description |
|---|---|
409none | BucketAlreadyExists |
Example
<CreateBucketConfiguration>
<LocationConstraint>us-1</LocationConstraint>
</CreateBucketConfiguration>Updated on 10th September, 2024