PutBucketVersioning

Prev Next

Available in Classic and VPC

Change the version control status of a Ncloud Storage bucket.

Note

It can be changed to Enabled or Suspended, but cannot be changed to Disabled.

Request

This section describes the request format. The method and URI are as follows:

Method URI
PUT -

Request headers

For information about the headers common to all Ncloud Storage APIs, see Ncloud Storage request headers.

Request query parameters

You can use the following query parameters with your request:

Field Type Required Description
versioning String Required Request version control status change.
  • Enter only keys without values.

Request body

You can include the following data in the body of your request:

Field Type Required Description
VersioningConfiguration Object Required Version control information
VersioningConfiguration.Status String Required Version control status
  • Enabled | Suspended
    • Enabled: enabled
    • Suspended: suspended

Request example

The request example is as follows:

PUT /?versioning HTTP/1.1
Host: bucket.kr.ncloudstorage.com

<?xml version="1.0" encoding="UTF-8"?>
<VersioningConfiguration>
   <Status>Enabled</Status>
</VersioningConfiguration>

Response

This section describes the response format.

Response headers

For information about the headers common to all Ncloud Storage APIs, see Ncloud Storage response headers.

Response status codes

For information about the HTTP status codes common to all Ncloud Storage APIs, see Common Ncloud Storage response status codes.

Response example

The response example is as follows:

HTTP/1.1 200 OK