]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: rgw document s3 bucket location features 2998/head
authorAbhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Mon, 24 Nov 2014 17:27:44 +0000 (22:57 +0530)
committerAbhishek Lekshmanan <abhishek.lekshmanan@gmail.com>
Mon, 24 Nov 2014 18:06:21 +0000 (23:36 +0530)
Fixes: #10142
Reported-by: Neil Levine <nlevine@redhat.com>
Signed-off-by: Abhishek Lekshmanan <abhishek.lekshmanan@ril.com>
doc/radosgw/s3.rst
doc/radosgw/s3/bucketops.rst

index e925872d6c22b5b86bf9d9bd16583f6daca93ce9..fe975e6b9667eeaaa39bbc2141e1061d52d77551 100644 (file)
@@ -46,7 +46,7 @@ The following table describes the support status for current Amazon S3 functiona
 +---------------------------------+-----------------+----------------------------------------+
 | **Bucket ACLs (Get, Put)**      | Supported       | Different set of canned ACLs           |
 +---------------------------------+-----------------+----------------------------------------+
-| **Bucket Location**             | Not Supported   |                                        |
+| **Bucket Location**             | Supported       |                                        |
 +---------------------------------+-----------------+----------------------------------------+
 | **Bucket Notification**         | Not Supported   |                                        |
 +---------------------------------+-----------------+----------------------------------------+
index ed089789c62ca2be4bb81505b96490a6ba70fa76..f066005ab24be53212d9cc5199c32694cba2763a 100644 (file)
@@ -157,6 +157,34 @@ The ``ListBucketResult`` contains objects, where each object is within a ``Conte
 | ``StorageClass``       | String    | Should always return ``STANDARD``.       |
 +------------------------+-----------+------------------------------------------+
 
+Get Bucket Location
+-------------------
+Retrieves the bucket's region. The user needs to be the bucket owner
+to call this. A bucket can be constrained to a region by providing
+``LocationConstraint`` during a PUT request.
+
+Syntax
+~~~~~~
+Add the ``location`` subresource to bucket resource as shown below
+
+::
+
+   GET /{bucket}?location HTTP/1.1
+   Host: cname.domain.com
+
+   Authorization: AWS {access-key}:{hash-of-header-and-secret}
+
+Response Entities
+~~~~~~~~~~~~~~~~~~~~~~~~
+
++------------------------+-----------+------------------------------------------+
+| Name                   | Type      | Description                              |
++========================+===========+==========================================+
+| ``LocationConstraint`` | String    | The region where bucket resides, empty   |
+|                        |           | string for defult region                 |
++------------------------+-----------+------------------------------------------+
+
+
 
 Get Bucket ACL
 --------------