]> 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)
committerJon <jonathan.bailey1@ibm.com>
Fri, 3 Oct 2025 13:31:27 +0000 (14:31 +0100)
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 2a0010d1ddcb5dd0cb60c7921fa4044c0a865f7f..1c643fea8d94deb56453b1d05311c90eafac1c02 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
 ~~~~~~~~~~~~~~~~~~~~~~~