devmadhuu commented on code in PR #6360:
URL: https://github.com/apache/ozone/pull/6360#discussion_r1550253595
##########
hadoop-hdds/docs/content/interface/ReconApi.md:
##########
@@ -927,6 +927,39 @@ Returns all the datanodes in the cluster.
]
}
```
+
+### PUT /api/v1/datanodes/remove
+
+**Parameters**
+
+* uuids (List of node uuids in JSON array format).
+
+```json
+[
+ "50ca4c95-2ef3-4430-b944-97d2442c3daf"
+]
+```
+
+**Returns**
+
+Returns the list of datanodes which are removed successfully and list of
datanodes which were not found.
+
+```json
+{
+ "removedNodes": {
+ "totalCount": 1,
+ "datanodes": [
+ {
+ "uuid": "50ca4c95-2ef3-4430-b944-97d2442c3daf",
+ "hostname": "ozone-datanode-4.ozone_default",
+ "state": "DEAD",
+ "pipelines": null
+ }
+ ],
+ "message": "Successfully removed 1 datanodes !!!"
Review Comment:
Done.
--
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]