The latest service changes have not yet been reflected in this content. We will update the content as soon as possible. Please refer to the Korean version for information on the latest updates.
Available in Classic and VPC
Get the version control status of a Ncloud Storage bucket.
For a Sub Account user to execute this command, they must have the View/GetBucketVersioning action permission.
Syntax
The get-bucket-versioning syntax is as follows:
aws s3api get-bucket-versioning \
--bucket <bucket> \
--endpoint-url <endpoint-url>
Options
This section describes the options available when running get-bucket-versioning.
Required options
The following options are required for get-bucket-versioning.
| 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 versioning information is successful, the bucket's versioning configuration status is returned.
Command
The command example is as follows:
aws s3api get-bucket-versioning --bucket my-test-bucket \
--endpoint-url=https://kr.ncloudstorage.com
Output
The output example is as follows:
{
"Status": "Enabled"
}
Related commands
Related commands are as follows: