From: Marcus Watts Date: Sat, 8 Sep 2018 08:48:17 +0000 (-0400) Subject: rgw: bucket link: "bucket move" documentation changes X-Git-Tag: v15.1.0~1944^2~12 X-Git-Url: http://git-server-git.apps.pok.os.sepia.ceph.com/?a=commitdiff_plain;h=ea24c7fb665ac88a98586add9d08f4d1c373f046;p=ceph.git rgw: bucket link: "bucket move" documentation changes 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 --- diff --git a/doc/man/8/radosgw-admin.rst b/doc/man/8/radosgw-admin.rst index a9a1e2f7ebc..e87e6dce454 100644 --- a/doc/man/8/radosgw-admin.rst +++ b/doc/man/8/radosgw-admin.rst @@ -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= @@ -549,8 +550,8 @@ Options .. option:: --bucket-new-name=[tenant-id/] 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= @@ -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 diff --git a/doc/radosgw/adminops.rst b/doc/radosgw/adminops.rst index dc425ba4f47..2dfd9f6d988 100644 --- a/doc/radosgw/adminops.rst +++ b/doc/radosgw/adminops.rst @@ -1527,7 +1527,7 @@ Request Parameters :Description: The bucket id to unlink. :Type: String :Example: ``dev.6607669.420`` -:Required: Yes +:Required: No ``uid``