S3 Put Bucket Encryption
  • 31 May 2023
  • Dark
    Light

S3 Put Bucket Encryption

  • Dark
    Light

Article summary

PUThttps://s3.<your-region>.backblazeb2.com/<your-bucket-name>/?encryption

Sets the bucket's explicit default encryption configuration. Backblaze B2 supports AES256, which maps to SSE-B2. Server-side encryption cannot be disabled, and SSE-KMS is not supported. If no explicit configuration is stored, the effective default remains AES256. This operation requires permission to write bucket encryption configuration.

A successful request returns 200 OK with no response body.

AUTHORIZATION AWS Signature

This request is using AWS Signature from collection Backblaze B2 Cloud Storage S3 Compatible API.

PARAMS

encryption

Must be present to put bucket encryption configuration

PATH VARIABLES

bucket

Required. The name of the bucket

Example Request

curl --location --request PUT 'https://s3.<your-region>.backblazeb2.com/my-bucket-name/?encryption=null' \
--data '<ServerSideEncryptionConfiguration xmlns="http://s3.amazonaws.com/doc/2006-03-01/">
    <Rule>
        <ApplyServerSideEncryptionByDefault>
            <SSEAlgorithm>AES256</SSEAlgorithm>
        </ApplyServerSideEncryptionByDefault>
    </Rule>
</ServerSideEncryptionConfiguration>'

Example Response

200 OK

Body

No response body

This request doesn't return any response body


Headers (8)

x-amz-request-id

699c79d678ac85eb

x-amz-id-2

aMb41pGbJOWYzrTUIY0JmFjSgZMljS2L4

Cache-Control

max-age=0, no-cache, no-store

Content-Type


Content-Length

0

Date

Fri, 28 Jan 2022 22:46:26 GMT

Keep-Alive

timeout=5

Connection

keep-alive







Was this article helpful?