mirror of
https://github.com/ceph/ceph
synced 2025-04-01 23:02:17 +00:00
rgw: s3: document usage stats api
Signed-off-by: Abhishek Lekshmanan <abhishek@suse.com>
This commit is contained in:
parent
dbdf49ec28
commit
b5f24c9f14
doc/radosgw
@ -415,6 +415,7 @@ the latest quota stats. ::
|
||||
|
||||
radosgw-admin user stats --uid=<uid> --sync-stats
|
||||
|
||||
.. _rgw_user_usage_stats:
|
||||
|
||||
Get User Usage Stats
|
||||
--------------------
|
||||
|
@ -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 |
|
||||
+----------------------------+-------------+-----------------------------------------------------------------+
|
||||
|
Loading…
Reference in New Issue
Block a user