Bucket
PUT/
CreateBucket
This action creates a new bucket.
Request Properties
- Name
BucketSupportedPath- Description
- Specifies the information about the bucket that will be created.
- Name
x-amz-aclNot SupportedHeader- Description
- The canned ACL to apply to the bucket.
- Name
x-amz-bucket-object-lock-enabledSupportedHeader- Description
- Specifies whether you want S3 Object Lock to be enabled for the new bucket.
- Name
x-amz-grant-full-controlNot SupportedHeader- Description
- Allows grantee the read, write, read ACP, and write ACP permissions on the bucket.
- Name
x-amz-grant-readNot SupportedHeader- Description
- Allows grantee to list the objects in the bucket.
- Name
x-amz-grant-read-acpNot SupportedHeader- Description
- Allows grantee to read the bucket ACL.
- Name
x-amz-grant-writeNot SupportedHeader- Description
- Allows grantee to create new objects in the bucket.\nFor the bucket and object owners of existing objects, also allows deletions and overwrites of those objects.
- Name
x-amz-grant-write-acpNot SupportedHeader- Description
- Allows grantee to write the ACL for the applicable bucket.
- Name
x-amz-object-ownershipNot SupportedHeader- Description
- The container element for object ownership for a bucket's ownership controls.
- Name
CreateBucketConfigurationPartially SupportedRequiredBody- Description
- The configuration information for the bucket.
- Name
LocationNot SupportedBody- Description
- Specifies the location of the bucket.
- Name
LocationConstraintSupportedBody- Description
- Specifies the Anzen Location Configuration that the Bucket will use to store data.
Response Properties
- Name
LocationHeader- Description
- A forward slash followed by the name of the bucket.
Request
PUT
/PUT / HTTP/1.1
Host: Bucket.Endpoint
x-amz-acl: ACL
x-amz-grant-full-control: GrantFullControl
x-amz-grant-read: GrantRead
x-amz-grant-read-acp: GrantReadACP
x-amz-grant-write: GrantWrite
x-amz-grant-write-acp: GrantWriteACP
x-amz-bucket-object-lock-enabled: ObjectLockEnabledForBucket
x-amz-object-ownership: ObjectOwnership
<?xml version="1.0" encoding="UTF-8"?>
<CreateBucketConfiguration>
<LocationConstraint>string</LocationConstraint>
<Location>
<Name>string</Name>
<Type>string</Type>
</Location>
<Bucket>
<DataRedundancy>string</DataRedundancy>
<Type>string</Type>
</Bucket>
</CreateBucketConfiguration>Response
HTTP/1.1 200
Location: LocationDELETE/
DeleteBucket
Deletes the S3 bucket. All objects (including all object versions and delete markers) in the bucket must be deleted before the bucket itself can be deleted.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- Specifies the bucket being deleted.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
Request
DELETE
/DELETE / HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 204GET/?location
GetBucketLocation
Returns the ID of the Location configuration that indicates where sharded data is being stored.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- Specifies the bucket being deleted.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
Response Properties
- Name
LocationConstraintBody- Description
- The unique identifier (ID) of the location configuration used to indicate storage locations for sharded data.
Request
GET
/?locationGET /?location HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<LocationConstraint>
string
</LocationConstraint>HEAD/
HeadBucket
You can use this operation to determine if a bucket exists and if you have permission to access it. The action returns a 200 OK if the bucket exists and you have permission to access it.
Request Properties
- Name
BucketSupportedRequiredPath- Description
- Specifies the bucket being deleted.
- Name
x-amz-expected-bucket-ownerNot SupportedHeader- Description
- The account ID of the expected bucket owner.
Response Properties
- Name
x-amz-access-point-aliasNot SupportedHeader- Description
- Indicates whether the bucket name used in the request is an access point alias.
- Name
x-amz-bucket-location-nameNot SupportedHeader- Description
- The name of the location where the bucket will be created.
- Name
x-amz-bucket-location-typeNot SupportedHeader- Description
- The type of location where the bucket is created.
- Name
x-amz-bucket-regionNot SupportedHeader- Description
- The Region that the bucket is located.
Request
HEAD
/HEAD / HTTP/1.1
Host: Bucket.Endpoint
x-amz-expected-bucket-owner: ExpectedBucketOwnerResponse
HTTP/1.1 200
x-amz-bucket-location-type: BucketLocationType
x-amz-bucket-location-name: BucketLocationName
x-amz-bucket-region: BucketRegion
x-amz-access-point-alias: AccessPointAliasGET/
ListBuckets
Returns a list of all buckets owned by the authenticated sender of the request.
Request Properties
- Name
continuation-tokenNot SupportedQuery- Description
- Specifies the bucket being deleted.
- Name
max-bucketsNot SupportedQuery- Description
- Maximum number of buckets to be returned in response. When the number is more than the count of buckets that are owned by an AWS account, return all the buckets in response.
Response Properties
- Name
BucketsBody- Description
- The list of buckets owned by the requester.
- Name
ContinuationTokenNot SupportedBody- Description
- Name
ListAllMyBucketsResultBody- Description
- Root level tag for the ListAllMyBucketsResult parameters.
- Name
OwnerNot SupportedBody- Description
- The owner of the buckets listed.
Request
GET
/GET /?continuation-token=ContinuationToken&max-buckets=MaxBuckets HTTP/1.1
Host: Bucket.EndpointResponse
HTTP/1.1 200
<?xml version="1.0" encoding="UTF-8"?>
<ListAllMyBucketsResult>
<Buckets>
<Bucket>
<CreationDate>timestamp</CreationDate>
<Name>string</Name>
</Bucket>
</Buckets>
<Owner>
<DisplayName>string</DisplayName>
<ID>string</ID>
</Owner>
<ContinuationToken>string</ContinuationToken>
</ListAllMyBucketsResult>