get-bucket-encryption

Prev Next

Available in Classic and VPC

Get the default server-side encryption (SSE) settings configured for an Ncloud Storage bucket. If encryption has not been configured separately, the default value, AES256 (SSE-S3), is returned.

Note

For a Sub Account user to execute this command, they must have the View/GetEncryptionConfiguration action permission.

Syntax

The get-bucket-encryption syntax is as follows:

aws s3api get-bucket-encryption \
    --bucket <bucket> \
    --endpoint-url <endpoint-url>

Options

This section describes the options available when running get-bucket-encryption.

Required options

The following options are required for get-bucket-encryption.

Options Type Required Description
--bucket String Required Bucket name

Common options

For information about the options common to all aws subcommands, see Ncloud Storage options.

Examples

If the request to retrieve encryption settings is successful, the default encryption configuration information applied to the bucket is returned.

Command

The command example is as follows:

aws s3api get-bucket-encryption --bucket my-test-bucket \
    --endpoint-url=https://kr.ncloudstorage.com

Output

The output example is as follows:

{
    "ServerSideEncryptionConfiguration": {
        "Rules": [
            {
                "ApplyServerSideEncryptionByDefault": {
                    "SSEAlgorithm": "AES256"
                },
                "BucketKeyEnabled": false
            }
        ]
    }
}

Related commands

Related commands are as follows: