Returns the versioning state of a bucket.
To retrieve the versioning state of a bucket, you must be the bucket owner.
This implementation also returns the MFA Delete status of the versioning state. If the MFA Delete status is enabled, the bucket owner must use an authentication device to change the versioning state of the bucket.
The following operations are related to GetBucketVersioning:
get/{Bucket}#versioning
Path parameters
Bucketstring required
The name of the bucket for which to get the versioning information.
Query parameters
versioningtrue required
Headers
x-amz-expected-bucket-ownerstring
The account ID of the expected bucket owner. If the bucket is owned by a different account, the request fails with the HTTP status code <code>403 Forbidden</code> (access denied).
Response
Success