]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
doc: Admin API usage for quotas. Needs additional clarification on syntax.
authorJohn Wilkins <john.wilkins@inktank.com>
Mon, 14 Apr 2014 16:15:20 +0000 (09:15 -0700)
committerJohn Wilkins <john.wilkins@inktank.com>
Mon, 14 Apr 2014 16:15:20 +0000 (09:15 -0700)
Signed-off-by: John Wilkins <john.wilkins@inktank.com>
doc/radosgw/adminops.rst

index 3da27ea3a4483305532f81af008621b17c08ada9..a01c797fce8f83281c34bd0c7561f37cfed10447 100644 (file)
@@ -1812,6 +1812,61 @@ Special Error Responses
 None.
 
 
+Quotas
+======
+
+.. todo:: Need clarification on syntax.
+
+
+The Admin Operations API enables you to set quotas on users and buckets.
+Quotas include the maximum number of objects in a bucket and the maximum
+storage size in megabytes.
+
+To view quotas, the user must have a ``users=read`` capability. To set,
+modify or disable a quota, the user must have ``users=write`` capability.
+See the `Admin Guide`_ for details.
+
+
+Valid parameters for quotas include:
+
+- **Bucket:** The ``bucket`` option allows you to specify a quota for
+  a particular bucket.
+
+- **Maximum Objects:** The ``max-objects`` setting allows you to specify
+  the maximum number of objects. A negative value disables this setting.
+  
+- **Maximum Size:** The ``max-size`` option allows you to specify a quota
+  for the maximum number of bytes. A negative value disables this setting.
+  
+- **Quota Scope:** The ``quota-scope`` option sets the scope for the quota.
+  The options are ``bucket`` and ``user``.
+
+
+
+Read User Quota
+---------------
+
+Read user quota setting
+
+ - requires the 'users' read cap set.
+
+GET /admin/user?quota&uid=<uid>[&quota-type=<user|bucket>]
+
+
+Modify User Quota
+-----------------
+
+
+ - requires the 'users' write cap set
+
+PUT /admin/user?quota&uid=<uid>[&quota-type=<user|bucket>]
+
+Content should include a json representation of the quota settings
+(either the user quota, or the bucket quota, or both) as encoded in
+the corresponding read operation.
+
+
+
 Standard Error Responses
 ========================