ChenSammi commented on code in PR #6348:
URL: https://github.com/apache/ozone/pull/6348#discussion_r1522594394


##########
hadoop-hdds/docs/content/interface/ReconApi.zh.md:
##########
@@ -251,6 +741,114 @@ Recon API v1 是一组 HTTP 端点,可以帮助您了解 Ozone 集群的当前
        "keys": 25
      }
 ```
+
+## Volumes (仅 admin)
+
+### GET /api/v1/volumes
+
+**参数**
+
+* prevKey (可选)
+
+  仅返回给定 prevKey 之后的卷。
+  示例: prevKey=vol1
+
+* limit (可选)
+
+  仅返回有限数量的结果。默认限制为1000。
+
+**回传**
+
+返回集群中的所有卷。
+
+```json
+     {
+       "totalCount": 4,
+       "volumes": [{
+          "volume": "vol1",
+          "owner": "testuser",
+          "admin": "ozone",
+          "creationTime": 1665588176660 ,
+          "modificationTime": 1665590397315,
+          "quotaInNamespace": 2048,
+          "quotaInBytes": 1073741824,
+          "usedNamespace": 10,
+          "acls": [
+            {
+              "type": "USER",
+              "name": "testuser",
+              "scope": "ACCESS",
+              "aclList": [
+                "WRITE",
+                "READ",
+                "DELETE"
+              ]
+            }
+          ]
+        },
+        ...
+        ]
+     }
+```
+
+## Buckets (仅 admin)
+
+### GET /api/v1/buckets
+
+**参数**
+
+* volume (可选)
+
+  卷以字符串形式表示,不包含任何协议前缀。
+
+* prevKey (可选)
+
+  如果未指定卷,则忽略 prevKey,并且仅返回给定 prevKey 之后的存储桶。

Review Comment:
   如果未指定卷,则忽略 prevKey,并且仅返回给定 prevKey 之后的存储桶。 -> 
   
   返回给定 prevKey 之后的存储桶。 如果未指定卷,则忽略 prevKey。



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to