put-bucket-versioning

Prev Next

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

Change the version control status of a Ncloud Storage bucket.

Note

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
  • Enabled | Suspended
    • Enabled: Enable versioning
    • Suspended: Suspend versioning

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: