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