Skip to main content

CreateBucket

Creates a new bucket in QStorage.

Description

The CreateBucket operation creates a new bucket in QStorage. The bucket name you choose must be unique across all existing bucket names in QStorage. You can use this operation to create a bucket that can hold your objects.

important
  • Bucket names must be between 3 and 63 characters long
  • Bucket names can consist only of lowercase letters, numbers, dots (.), and hyphens (-)
  • Bucket names must begin and end with a letter or number
  • Bucket names must not be formatted as an IP address (e.g., 192.168.5.4)

Request Syntax

PUT / HTTP/1.1
Host: BucketName.qstorage.quilibrium.com
x-amz-bucket-object-lock-enabled: ObjectLockEnabled
<?xml version="1.0" encoding="UTF-8"?> <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> </CreateBucketConfiguration>
Values in italics indicate user input and should be replaced with actual values.

Request Parameters

Headers

NameDescriptionRequiredType
x-amz-aclThe canned ACL to apply to the bucket.

Valid values: private | public-read | public-read-write | authenticated-read
Nostring
x-amz-grant-full-controlAllows grantee the READ, WRITE, READ_ACP, and WRITE_ACP permissions on the bucketNostring
x-amz-grant-readAllows grantee to list the objects in the bucketNostring
x-amz-grant-read-acpAllows grantee to read the bucket ACLNostring
x-amz-grant-writeAllows grantee to create, overwrite, and delete any object in the bucketNostring
x-amz-grant-write-acpAllows grantee to write the ACL for the applicable bucketNostring
x-amz-bucket-object-lock-enabledSpecifies whether you want object lock to be enabled for the new bucketNoboolean
x-amz-object-ownershipSpecifies the Object Ownership of the bucket

Valid values: BucketOwnerPreferred | ObjectWriter | BucketOwnerEnforced
Nostring

Examples

PUT / HTTP/1.1
Host: my-new-bucket.qstorage.quilibrium.com
x-amz-bucket-object-lock-enabled: true
<?xml version="1.0" encoding="UTF-8"?> <CreateBucketConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> </CreateBucketConfiguration>
Values in italics indicate user input and should be replaced with actual values.
HTTP/1.1 200 OK
x-amz-id-2: Example7qoYGN7uMuFuYS6m7a4l
x-amz-request-id: TX234S0F24A06C7
Location: http://my-new-bucket.qstorage.quilibrium.com/
Date: Wed, 01 Mar 2024 12:00:00 GMT
Values in italics indicate variable response values.

Response Syntax

HTTP/1.1 200 OK
x-amz-id-2: RequestId
x-amz-request-id: AmazonRequestId
Location: BucketLocation
Date: ISO8601Date
Values in italics indicate variable response values.

Response Elements

Response Headers

NameDescriptionRequiredType
x-amz-id-2An identifier for the requestNoString
x-amz-request-idA unique identifier for the requestNoString
LocationThe URI of the newly created bucketNoString
DateThe date and time at which the response was sentNoString

This operation does not return a response body.

Special Errors

Error CodeDescription
BucketAlreadyExistsThe requested bucket name is not available. The bucket namespace is shared by all users of the system. Please select a different name and try again.
BucketAlreadyOwnedByYouYour previous request to create the named bucket succeeded and you already own it.
InvalidBucketNameThe specified bucket name is not valid.
TooManyBucketsYou have attempted to create more buckets than allowed.
403Forbidden. Authentication failed or you do not have permission to create buckets.

Permissions

You must have the s3:CreateBucket permission.

The following operations are related to CreateBucket:

Try It Out

Test CreateBucket

Create a new bucket in QStorage.

Coming Soon

This feature is currently under development and will be available soon.