You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ozone.apache.org by "krishnaasawa1 (via GitHub)" <gi...@apache.org> on 2023/09/11 07:05:35 UTC

[GitHub] [ozone] krishnaasawa1 commented on a diff in pull request #4585: HDDS-8434. Get volume/bucket info from Recon

krishnaasawa1 commented on code in PR #4585:
URL: https://github.com/apache/ozone/pull/4585#discussion_r1321081572


##########
hadoop-hdds/docs/content/interface/ReconApi.md:
##########
@@ -774,6 +774,114 @@ Returns a summary of the current state of the Ozone cluster.
      }
 ```
 
+## Volumes (admin only)
+
+### GET /api/v1/om/volumes

Review Comment:
   I think we can have /api/v1/volumes instead of having om in path to align similar to other resources



##########
hadoop-hdds/docs/content/interface/ReconApi.md:
##########
@@ -774,6 +774,114 @@ Returns a summary of the current state of the Ozone cluster.
      }
 ```
 
+## Volumes (admin only)
+
+### GET /api/v1/om/volumes
+
+**Parameters**
+
+* prevKey (optional)
+
+  Only returns the volume after the given prevKey.
+  Example: prevKey=vol1
+
+* limit (optional)
+
+  Only returns the limited number of results. The default limit is 1000.
+
+**Returns**
+
+Returns all the volumes in the cluster.
+
+```json
+     {
+     	"totalCount": 4,
+     	"volumes": [{
+          "volume": "vol1",
+          "owner": "testuser",
+          "admin": "ozone",
+          "creationTime": "2019-11-26T21:18:43.688Z",
+          "modificationTime": "2019-11-26T21:18:46.062Z",
+          "quotaInNamespace": 2048,
+          "quotaInBytes": 1073741824,
+          "usedNamespace": 10,
+          "acls": [
+            {
+              "type": "USER",
+              "name": "testuser",
+              "scope": "ACCESS",
+              "aclList": [
+                "WRITE",
+                "READ",
+                "DELETE"
+              ]
+            }
+          ]
+        },
+        ...
+        ]
+     }
+```
+
+## Buckets (admin only)
+
+### GET /api/v1/om/buckets

Review Comment:
   similarly we can have /api/v1/buckets instead of having om in path 



-- 
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: issues-unsubscribe@ozone.apache.org

For queries about this service, please contact Infrastructure at:
users@infra.apache.org


---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@ozone.apache.org
For additional commands, e-mail: issues-help@ozone.apache.org