Available in Classic and VPC
Get the version control status of a Ncloud Storage bucket.
Request
This section describes the request format. The method and URI are as follows:
Method | URI |
---|---|
GET | - |
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 query.
|
Request example
The request example is as follows:
GET /?versioning HTTP/1.1
Host: bucket.kr.ncloudstorage.com
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 body
The response body includes the following data:
Field | Type | Required | Description |
---|---|---|---|
VersioningConfiguration |
Object | - | Version control information |
VersioningConfiguration.Status |
String | - | Version control status
|
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:
If version control is set up
The following is a sample response when version control is set.
HTTP/1.1 200 OK
<?xml version="1.0" encoding="UTF-8"?>
<VersioningConfiguration>
<Status>Enabled</Status>
</VersioningConfiguration>
If version control is not set up
The following is a sample response when version control is not set.
HTTP/1.1 200 OK