Baidu AI Cloud
中国站

百度智能云

Object Storage

Enable Bucket Encryption Switch

Interface Description

This interface is used to turn on the encryption switch of the specified bucket.

Request URI

PUT /v1/{bucketName}/?encryption

Parameter Name Parameter Type Required Description Example Value Parameter Position
bucketName String Yes Bucket name "bucketName_example" Path

Request Body Parameters

Description of Data Structure for Request Body Field

Parameter name Parameter type Required Description Example value
encryptionAlgorithm String Yes Server encryption type of the specified bucket. At present, only AES256 encryption is supported. AES256

Response Body Parameters

Description of Data Structure for Response Body Field

Request Example

PUT /v1/bucketName_example/?encryption
Common Request Header


{
  "encryptionAlgorithm" : "AES256"
}

Response Example

HTTP/1.1 200 OK
<Common response header>

{ }

Error Code

Refer to the universal error code.

Previous
Disable Bucket Server Encryption Feature
Next
Judge Whether or Not to Enable Bucket Encryption