]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: bucket link: "bucket move" documentation changes
authorMarcus Watts <mwatts@redhat.com>
Sat, 8 Sep 2018 08:48:17 +0000 (04:48 -0400)
committerShilpa Jagannath <smanjara@redhat.com>
Tue, 30 Jul 2019 08:30:45 +0000 (14:00 +0530)
Improve and add to documentation for "bucket move" functionality;
including use moving to multi-tenancy and further deprecating bucket-id
which is no longer necessary.

Fixes: http://tracker.ceph.com/issues/35885
Signed-off-by: Marcus Watts <mwatts@redhat.com>
doc/man/8/radosgw-admin.rst
doc/radosgw/adminops.rst

index a9a1e2f7ebcbebda7baf2a938dd139f04a11bf12..e87e6dce45438f8770124ac3ad5b0cf3ab0211b9 100644 (file)
@@ -517,9 +517,10 @@ Options
 
    Set the system flag on the user.
 
-.. option:: --bucket=bucket
+.. option:: --bucket=[tenant-id/]bucket
 
-   Specify the bucket name.
+   Specify the bucket name.  If tenant-id is not specified, the tenant-id
+   of the user (--uid) is used.
 
 .. option:: --pool=<pool>
 
@@ -549,8 +550,8 @@ Options
 .. option:: --bucket-new-name=[tenant-id/]<bucket>
 
    Optional for `bucket link`; use to rename a bucket.
-        When using implicit tenants, prefix the name
-        with the desired tenant-id.
+        While tenant-id/ can be specified, this is never
+        necessary for normal operation.
 
 .. option:: --shard-id=<shard-id>
 
@@ -907,6 +908,14 @@ Unlink bucket from specified user::
 
         $ radosgw-admin bucket unlink --bucket=foo --uid=johnny
 
+Rename a bucket::
+
+        $ radosgw-admin bucket link --bucket=foo --bucket-new-name=bar --uid=johnny
+
+Move a bucket from the old global tenant space to a specified tenant::
+
+        $ radosgw-admin bucket link --bucket=/foo --uid=12345678$12345678'
+
 Show the logs of a bucket from April 1st, 2012::
 
         $ radosgw-admin log show --bucket=foo --date=2012-04-01-01 --bucket-id=default.14193.1
index dc425ba4f47305978a22c05db392d77ed70d2caf..2dfd9f6d988171e9256b95b4384c499c86ec07a8 100644 (file)
@@ -1527,7 +1527,7 @@ Request Parameters
 :Description: The bucket id to unlink.
 :Type: String
 :Example: ``dev.6607669.420``
-:Required: Yes
+:Required: No
 
 ``uid``