Skip to content

Commit

Permalink
Merge pull request #10437: hammer: docs: Bucket object versions
Browse files Browse the repository at this point in the history
Reviewed-by: Nathan Cutler <ncutler@suse.com>
  • Loading branch information
smithfarm committed Nov 23, 2016
2 parents 71ea3ed + 0d2f431 commit 61bfaaa
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 1 deletion.
2 changes: 1 addition & 1 deletion doc/radosgw/s3.rst
Expand Up @@ -50,7 +50,7 @@ The following table describes the support status for current Amazon S3 functiona
+---------------------------------+-----------------+----------------------------------------+
| **Bucket Notification** | Not Supported | |
+---------------------------------+-----------------+----------------------------------------+
| **Bucket Object Versions** | Not Supported | |
| **Bucket Object Versions** | Supported | |
+---------------------------------+-----------------+----------------------------------------+
| **Get Bucket Info (HEAD)** | Supported | |
+---------------------------------+-----------------+----------------------------------------+
Expand Down
30 changes: 30 additions & 0 deletions doc/radosgw/s3/bucketops.rst
Expand Up @@ -345,3 +345,33 @@ Response Entities
+-----------------------------------------+-------------+----------------------------------------------------------------------------------------------------------+
| ``CommonPrefixes.Prefix`` | String | The substring of the key after the prefix as defined by the ``prefix`` request parameter. |
+-----------------------------------------+-------------+----------------------------------------------------------------------------------------------------------+

ENABLE/SUSPEND BUCKET VERSIONING
--------------------------------

``PUT /?versioning`` This subresource set the versioning state of an existing bucket. To set the versioning state, you must be the bucket owner.

You can set the versioning state with one of the following values:

- Enabled : Enables versioning for the objects in the bucket, All objects added to the bucket receive a unique version ID.
- Suspended : Disables versioning for the objects in the bucket, All objects added to the bucket receive the version ID null.

If the versioning state has never been set on a bucket, it has no versioning state; a GET versioning request does not return a versioning state value.

Syntax
~~~~~~

::

PUT /{bucket}?versioning HTTP/1.1

REQUEST ENTITIES
~~~~~~~~~~~~~~~~

+-----------------------------+-----------+---------------------------------------------------------------------------+
| Name | Type | Description |
+=============================+===========+===========================================================================+
| ``VersioningConfiguration`` | Container | A container for the request. |
+-----------------------------+-----------+---------------------------------------------------------------------------+
| ``Status`` | String | Sets the versioning state of the bucket. Valid Values: Suspended/Enabled |
+-----------------------------+-----------+---------------------------------------------------------------------------+

0 comments on commit 61bfaaa

Please sign in to comment.