The API also allows to shutdown the local manager or even a client.
Shutdown Manager
There are three different modes you can choose from:
Mode 1 - Shut down
Mode 2 - Shut down and turn off power (if supported)
Mode 3 - Shut down and reboot
Mode 0 - shutdownSystem(int mode)
send
{"jsonrpc":"2.0", "id":48, "method":"Pixera.Session.shutdownSystem", "params":{"mode":1}}
receive
{"jsonrpc":"2.0", "id":48}
Shutdown Manager and Client
Shut down the live system with the given IP. The mode options are the same as for shutdownSystem():
Mode 0 - shutdownLiveSystem(string ip,int mode)
Mode 1 - Shut down
Mode 2 - Shut down and turn off power (if supported)
Mode 3 - Shut down and reboot
send
{"jsonrpc":"2.0", "id":49, "method":"Pixera.Session.shutdownLiveSystem", "params":{"ip":"Abcd", "mode":1}}
receive
{"jsonrpc":"2.0", "id":49}