]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.git/commitdiff
rgw: s3: document usage stats api
authorAbhishek Lekshmanan <abhishek@suse.com>
Tue, 25 Feb 2020 18:10:55 +0000 (19:10 +0100)
committerAbhishek Lekshmanan <abhishek@suse.com>
Tue, 25 Feb 2020 18:10:55 +0000 (19:10 +0100)
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
doc/radosgw/admin.rst
doc/radosgw/s3/serviceops.rst

index 42e3d97bd44b8b6b575d62deaa30fe13fbd65114..4f172eab4aa109cd7c08bdc920daa3a9081afe8d 100644 (file)
@@ -415,6 +415,7 @@ the latest quota stats. ::
 
        radosgw-admin user stats --uid=<uid> --sync-stats
 
+.. _rgw_user_usage_stats:
 
 Get User Usage Stats
 --------------------
index c55ce988bd15782c5a63d3dbbc25b140b4bd71ef..54b6ca375113a32c5d594d4bb932b554d018b417 100644 (file)
@@ -37,3 +37,33 @@ Response Entities
 +----------------------------+-------------+-----------------------------------------------------------------+
 | ``DisplayName``            | String      | The bucket owner's display name.                                |
 +----------------------------+-------------+-----------------------------------------------------------------+
+
+
+Get Usage Stats
+---------------
+
+Gets usage stats per user, similar to the admin command :ref:`rgw_user_usage_stats`.
+
+Syntax
+~~~~~~
+::
+
+       GET /?usage HTTP/1.1
+       Host: cname.domain.com
+
+       Authorization: AWS {access-key}:{hash-of-header-and-secret}
+
+Response Entities
+~~~~~~~~~~~~~~~~~
+
++----------------------------+-------------+-----------------------------------------------------------------+
+| Name                       | Type        | Description                                                     |
++============================+=============+=================================================================+
+| ``Summary``                | Container   | Summary of total stats by user.                                 |
++----------------------------+-------------+-----------------------------------------------------------------+
+| ``TotalBytes``             | Integer     | Bytes used by user                                              |
++----------------------------+-------------+-----------------------------------------------------------------+
+| ``TotalBytesRounded``      | Integer     | Bytes rounded to the nearest 4k boundary                        |
++----------------------------+-------------+-----------------------------------------------------------------+
+| ``TotalEntries``           | Integer     | Total object entries                                            |
++----------------------------+-------------+-----------------------------------------------------------------+