Skip to main content

GetBucketEncryption

Returns the default encryption configuration for a bucket.

Description

The GetBucketEncryption operation returns the default encryption configuration for a bucket. By default, all buckets have encryption enabled with QStorage-managed keys.

note
  • To use this operation, you must have permission to perform the s3:GetEncryptionConfiguration action.
  • You must be the bucket owner to use this operation.
  • If the bucket does not have a default encryption configuration, QStorage returns a ServerSideEncryptionConfigurationNotFoundError error.

Request Syntax

GET /?encryption HTTP/1.1
Host: BucketName.qstorage.quilibrium.com
x-amz-expected-bucket-owner: OwnerAccountId
Values in italics indicate user input and should be replaced with actual values.

This operation does not have a request body.

Request Parameters

Headers

NameDescriptionRequiredType
x-amz-expected-bucket-ownerThe account ID of the expected bucket ownerNotext

Examples

Example 1: Get default encryption configuration from a bucket

GET /?encryption HTTP/1.1
Host: my-bucket.qstorage.quilibrium.com
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
Date: Wed, 01 Mar 2024 12:00:00 GMT
<?xml version="1.0" encoding="UTF-8"?> <ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Rule> <ApplyServerSideEncryptionByDefault> <SSEAlgorithm>AES256</SSEAlgorithm> </ApplyServerSideEncryptionByDefault> </Rule> </ServerSideEncryptionConfiguration>
Values in italics indicate variable response values.

Response Syntax

HTTP/1.1 200 OK
x-amz-id-2: RequestId
x-amz-request-id: AmazonRequestId
Date: ISO8601Date
<?xml version="1.0" encoding="UTF-8"?> <ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/"> <Rule> <ApplyServerSideEncryptionByDefault> <SSEAlgorithm>Algorithm</SSEAlgorithm> <KMSMasterKeyID>KeyId</KMSMasterKeyID> </ApplyServerSideEncryptionByDefault> <BucketKeyEnabled>BooleanValue</BucketKeyEnabled> </Rule> </ServerSideEncryptionConfiguration>
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
DateThe date and time at which the response was sentNoString

Response Body Elements

NameDescriptionRequiredType
ServerSideEncryptionConfigurationContainer for server-side encryption configuration rulesYesContainer
RuleContainer for a server-side encryption rule. The bucket encryption configuration can include only one rule.YesServerSideEncryptionRule

Special Errors

Error CodeDescription
NoSuchBucketThe specified bucket does not exist
ServerSideEncryptionConfigurationNotFoundErrorThe server-side encryption configuration was not found
403Forbidden. Authentication failed or you do not have permission to get the encryption configuration

Permissions

You must have the s3:GetEncryptionConfiguration permission.

Try It Out

Test GetBucketEncryption

Get the default encryption configuration of a bucket.

Coming Soon

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