Available in Classic and VPC
Change the version control status of a Ncloud Storage bucket.
For a Sub Account user to execute this command, they must have the Change/PutBucketVersioning action permission.
Syntax
The put-bucket-versioning syntax is as follows:
aws s3api put-bucket-versioning \
--bucket <bucket> \
--versioning-configuration <versioning-configuration> \
--endpoint-url <endpoint-url>
Options
This section describes the options available when running put-bucket-versioning.
Required options
The following options are required for put-bucket-versioning.
| Options | Type | Required | Description |
|---|---|---|---|
--bucket |
String | Required | Bucket name |
--versioning-configuration |
String | Required | Versioning status
|
Common options
For information about the options common to all aws subcommands, see Ncloud Storage options.
Examples
If the version control configuration request is successful, the settings are applied, and no result is displayed.
Command
The command example is as follows:
aws s3api put-bucket-versioning --bucket my-test-bucket \
--versioning-configuration Status=Enabled \
--endpoint-url=https://kr.ncloudstorage.com
Related commands
Related commands are as follows: