]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
rgw/doc: Add doc for admin bucket list pagination
authorTobias Urdin <tobias.urdin@binero.com>
Fri, 11 Apr 2025 08:37:45 +0000 (10:37 +0200)
committerTobias Urdin <tobias.urdin@binero.com>
Mon, 5 May 2025 15:12:21 +0000 (17:12 +0200)
This adds the documentation for the admin bucket list
pagination change.

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
doc/radosgw/adminops.rst

index 19c694421cee06e6f02b24bb440f81aa3c0a21ad..68baa00fecb2406d994569f790829caf4694f831 100644 (file)
@@ -1319,6 +1319,10 @@ without ``bucket`` then all buckets belonging to the user will be returned. If
 ``bucket`` alone is specified, information for that particular bucket will be
 retrieved.
 
+If ``max-entries`` is specified to limit the number of buckets returned, the
+response body will change and contain the keys ``buckets``, ``count`` and
+``truncated``. If ``truncated`` is true the ``marker`` key will also be added.
+
 :caps: buckets=read
 
 Syntax
@@ -1354,6 +1358,20 @@ Request Parameters
 :Example: True [False]
 :Required: No
 
+``max-entries``
+
+:Description: The number of bucket list entries to return.
+:Type: Integer
+:Example: 100
+:Required: No
+
+``marker``
+
+:Description: The marker to use when listing buckets.
+:Type: String (bucket name)
+:Example: my-bucket
+:Required: No
+
 Response Entities
 ~~~~~~~~~~~~~~~~~
 
@@ -1418,6 +1436,22 @@ the desired bucket information.
 :Type: String
 :Parent: ``bucket``
 
+``count``
+
+:Description: Number of returned buckets, only if ``max-entries`` is specified.
+:Type: Integer
+
+``truncated``
+
+:Description: Reported if the response is truncated when ``max-entries`` is specified.
+:Type: Boolean
+
+``marker``
+
+:Description: If ``truncated`` is true the ``marker`` key is returned with
+              the marker (bucket name) to use to continue pagination.
+:Type: String
+
 Special Error Responses
 ~~~~~~~~~~~~~~~~~~~~~~~