]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: correct and improve add user capability section 14055/head
authorhrchu <hrchu@cht.com.tw>
Tue, 21 Mar 2017 01:44:17 +0000 (09:44 +0800)
committerhrchu <hrchu@cht.com.tw>
Tue, 21 Mar 2017 01:44:17 +0000 (09:44 +0800)
 - "user-caps" should be located in the request parameter instead of body in example
 - Indicate how to add multiple admin capbabilies

Signed-off-by: Chu, Hua-Rong <hrchu@cht.com.tw>
doc/radosgw/adminops.rst

index d747f878aeebb6d75ed1b1ce62442dd7b1b3291a..2c3a6bc81862e5c54fb967fde537979cd641fb8e 100644 (file)
@@ -1696,7 +1696,7 @@ Request Parameters
 
 :Description: The administrative capability to add to the user.
 :Type: String
-:Example: ``usage=read, write``
+:Example: ``usage=read,write;user=write``
 :Required: Yes
 
 Response Entities
@@ -1736,12 +1736,11 @@ Example Request
 
 ::
 
-       PUT /{admin}/user?caps&format=json HTTP/1.1
+       PUT /{admin}/user?caps&user-caps=usage=read,write;user=write&format=json HTTP/1.1
        Host: {fqdn}
        Content-Type: text/plain
        Authorization: {your-authorization-token}
 
-       usage=read
 
 
 Remove A User Capability