The PUT Bucket Versioning operation enables the bucket owner to set the versioning state of an existing bucket. Supported versioning state values are as follows:
Enabled – Enables versioning for the objects in the bucket. All objects added to the bucket receive a unique version ID.
Disabled – Disables versioning for the objects in the bucket. All objects added to the bucket receive the version ID null.
For more details about this operation, see the following:
PUT https://<appliance>:443/s3/v1/export/<share_mount_point_path>/<bucketname>?versioning
This implementation of the PUT Bucket Versioning operation does not support the use of request parameters.
The PUT Bucket Versioning operation uses only request headers that are common to all operations. For more information, see Figure 7, Table 7, Common Supported Request Headers .
The PUT Bucket Versioning operation supports the use of the Status and VersioningConfiguration request elements. For more information about these request elements, see Amazon's official PUT Bucket Versioning documentation (https://docs.aws.amazon.com/AmazonS3/latest/API/RESTBucketPUTVersioningStatus.html).
The PUT Bucket Versioning operation uses only response headers that are common to most responses. For more information, see Figure 9, Table 9, Supported Response Headers .
This implementation of the PUT Bucket Versioning operation does not return response elements.
200 OK
The PUT Bucket Versioning operation does not return special errors. For general information about S3 errors and a list of error codes, see S3 Client Error Handling Reference.
PUT /?versioning <VersioningConfiguration> <Status>Enabled</Status> </VersioningConfiguration> HTTP/1.1 200 OK