Check Decommission Action
Requestβ
GET /api/check_decommission
Descriptionβ
Used to determine whether the specified BE can be decommissioned. For example, after the node being decommissioned, whether the remaining nodes can meet the space requirements and the number of replicas.
Path parametersβ
None
Query parametersβ
-
host_ports
Specify one or more BEs, separated by commas. Such as:
ip1:port1,ip2:port2,...
.Where port is the heartbeat port of BE.
Request bodyβ
None
Responseβ
Return a list of nodes that can be decommissioned
{
"msg": "OK",
"code": 0,
"data": ["192.168.10.11:9050", "192.168.10.11:9050"],
"count": 0
}
Examplesβ
-
Check whether the specified BE node can be decommissioned
GET /api/check_decommission?host_ports=192.168.10.11:9050,192.168.10.11:9050
Response:
{
"msg": "OK",
"code": 0,
"data": ["192.168.10.11:9050"],
"count": 0
}