]> git-server-git.apps.pok.os.sepia.ceph.com Git - ceph.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>
Thu, 11 Sep 2025 13:42:01 +0000 (15:42 +0200)
This adds the documentation for the admin bucket list
pagination change.

Signed-off-by: Tobias Urdin <tobias.urdin@binero.com>
(cherry picked from commit 7fa025e08a21b03ce91556ffb936b9f26ffdc00f)

doc/radosgw/adminops.rst

index 4b6ba3ec34d50c85cf8ca74d2a0fc4651f86164e..8df184a8f6b9ee18200717d600b26051aae22d8e 100644 (file)
@@ -1293,6 +1293,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
@@ -1328,6 +1332,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
 ~~~~~~~~~~~~~~~~~
 
@@ -1392,6 +1410,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
 ~~~~~~~~~~~~~~~~~~~~~~~