get-bucket-location

Prev Next

Available in Classic and VPC

Get the Region information of a Ncloud Storage bucket.

Note

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

Syntax

The get-bucket-location syntax is as follows:

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

Options

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

Required options

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

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 the bucket Region is successful, the Region where the bucket is located is returned.

Command

The command example is as follows:

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

Output

The output example is as follows:

{
    "LocationConstraint": "kr"
}

Related commands

Related commands are as follows: