Knowledge base

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.com

Parameters

ParameterDescription
x-amz-aclnone

private, public-read, public-read-write, authenticated-read

x-amz-bucket-object-lock-enabledboolean

true, false

Request Entities

NameDescription
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 CodeDescription
409none

BucketAlreadyExists

Example

<CreateBucketConfiguration>
  <LocationConstraint>us-1</LocationConstraint>
</CreateBucketConfiguration>

Updated on 10th September, 2024

Can’t find what you are looking for?