百度智能云

All Product Document

          Object Storage

          GetBucketEncryption

          Interface Description

          This interface is used to judge whether the server encryption of the bucket is enabled.

          Request

          • Request syntax

            Get /?encryption HTTP/1.1
            Host: <BucketName>.bj.bcebos.com
            Date: <Date>
            Authorization: <AuthorizationString>
            Content-Length: 0
          • Request parameters

            None

          • Request header field

            None

          Response

          • Response element

            Name Type Description
            encryptionAlgorithm String Server encryption type of the bucket. At present, only the AES256 encryption is supported.
          • Response Header Field

            None

          Example

          • Request Example

             Get /?encryption HTTP/1.1
             Host: <BcuketName>.bj.bcebos.com
             Date: Wed, 06 Apr 2016 06:34:40 GMT
             Authorization: Authorizationstring
             Content-Length: 0
          • Return example

             HTTP/1.1 200 OK
             x-bce-request-id: 4db2b34d-654d-4d8a-b49b-3049ca786409
             Date: Wed, 06 Apr 2016 06:34:40 GMT
             Content-Length: 11434
             Server: BceBos
             x-bce-server-side-encryption: AES256
            
             {
             	"encryptionAlgorithm":"AES256"
             }
          Previous
          PutBucketEncryption
          Next
          DeleteBucketEncryption