< Previous | Contents | Next >

Enabling or disabling versioning for a bucket

You use the HTTP PUT method with the versioning query parameter to enable or disable versioning for a bucket. To enable or disable versioning for a bucket, you need to be the bucket owner.


Chapter 5: Working with buckets 89

Enabling or disabling versioning for a bucket


While versioning is enabled for a bucket, the versioning status of the bucket is Enabled. If you disable versioning for a bucket after it has been enabled, the versioning status changes to Suspended. If versioning has never been enabled for a bucket, the bucket has no explicit versioning status.


To enable or disable versioning for a bucket, you specify the new versioning status in an XML request body. For the format of this request body, see “Request body” below.


For an introduction to versioning, see “Versioning” on page 34.


 

Request bodyRequest lineRequest headersResponse headersHTTP status codesExample: Enabling versioning for a bucket