getBucketVersioning method
Written by
Updated at September 30, 2024
Returns the bucket versioning status.
For more information on getting started with the API and the general request format, see How to use the S3 API.
Request
GET /{bucket}?versioning HTTP/2
Path parameters
Parameter | Description |
---|---|
bucket |
Bucket name. |
Query parameters
Parameter | Description |
---|---|
versioning |
Required parameter that indicates the type of operation. |
Headers
Use common request headers in your requests.
Response
Headers
Responses can only contain common response headers.
Response codes
For a list of possible responses, see Responses.
A successful response contains additional data in XML format with the schema described below.
Data schema
<?xml version="1.0" encoding="UTF-8"?>
<VersioningConfiguration>
<Status>string</Status>
</VersioningConfiguration>
Element | Description |
---|---|
VersioningConfiguration |
Root element. |
Status |
Bucket versioning status. Path: /VersioningConfiguration/Status Type: String Possible values: `Enabled |