add /_shutdown to the REST endpoints
This commit is contained in:
parent
5900e01a0d
commit
0e47898902
|
@ -42,6 +42,7 @@ public class RestNodesShutdownAction extends BaseRestHandler {
|
|||
@Inject public RestNodesShutdownAction(Settings settings, Client client, RestController controller) {
|
||||
super(settings, client);
|
||||
|
||||
controller.registerHandler(RestRequest.Method.POST, "/_shutdown", this);
|
||||
controller.registerHandler(RestRequest.Method.POST, "/_cluster/nodes/_shutdown", this);
|
||||
controller.registerHandler(RestRequest.Method.POST, "/_cluster/nodes/{nodeId}/_shutdown", this);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue