GetBucketEncryption
Updated at:2025-11-03
API description
This API determines whether server-side encryption (SSE) is enabled for the bucket.
Request
-
Request syntax
Plain Text1Get /?encryption HTTP/1.1 2Host: <BucketName>.bj.bcebos.com 3Date: <Date> 4Authorization: <AuthorizationString> 5Content-Length: 0 -
Request parameters
None
-
Request headers
None
Response
| Name | Types | Description |
|---|---|---|
| encryptionAlgorithm | String | The type of server-side encryption used for the bucket. Currently supported algorithms include AES256 and SM4. |
Example
-
Request example 1
Plain Text1 Get /?encryption HTTP/1.1 2 Host: <BcuketName>.bj.bcebos.com 3 Date: Wed, 06 Apr 2016 06:34:40 GMT 4 Authorization: Authorizationstring 5 Content-Length: 0 -
Response example 1
Plain Text1 HTTP/1.1 200 OK 2 x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 3 Date: Wed, 06 Apr 2016 06:34:40 GMT 4 Content-Length: 11434 5 Server: BceBos 6 x-bce-server-side-encryption: AES256 7 { 8 "encryptionAlgorithm":"AES256" 9 } -
Request example 2
Plain Text1 Get /?encryption HTTP/1.1 2 Host: <BcuketName>.bj.bcebos.com 3 Date: Thu, 16 Mar 2023 07:21:10 GMT 4 Authorization: Authorizationstring 5 Content-Length: 0 -
Response example 2
Plain Text1 HTTP/1.1 200 OK 2 x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409 3 Date: Thu, 16 Mar 2023 07:21:11 GMT 4 Content-Length: 11431 5 Server: BceBos 6 x-bce-server-side-encryption: SM4 7 { 8 "encryptionAlgorithm":"SM4" 9 }
