Last change
on this file since 5f0191d was
5f0191d,
checked in by OpenGnSys Support Team <soporte-og@…>, 6 years ago
|
#915 add POST reboot command to REST API in ogAdmServer
Reboot a client (through POST method):
curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json
Request
POST /reboot
{"clients": [ "192.168.2.1" ] }
Reply:
200 OK
|
-
Property mode set to
100755
|
File size:
483 bytes
|
Line | |
---|
1 | curl -X POST http://127.0.0.1:8888/clients -d @post_clients.json |
---|
2 | curl -X GET http://127.0.0.1:8888/clients |
---|
3 | curl -X POST http://127.0.0.1:8888/wol -d @wol.json |
---|
4 | curl -X POST http://127.0.0.1:8888/shell/run -d @post_shell_run.json |
---|
5 | curl -X POST http://127.0.0.1:8888/shell/output -d @post_shell_output.json |
---|
6 | curl -X POST http://127.0.0.1:8888/session -d @session.json |
---|
7 | curl -X POST http://127.0.0.1:8888/poweroff -d @poweroff.json |
---|
8 | curl -X POST http://127.0.0.1:8888/reboot -d @reboot.json |
---|
Note: See
TracBrowser
for help on using the repository browser.