Enable Bucket Encryption Switch
Last Updated:2021-09-13
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.