Last change
on this file since 7e4e5b5 was
7e4e5b5,
checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago
|
#915 add run command to REST API in ogAdmServer
Run command on client (through POST method):
curl -X POST http://127.0.0.1:8888/shell/run -d @post_run.json
Request
POST /shell/run
{"clients": [ "192.168.2.1", "192.168.2.2" ], "run" : "ls" }
Reply:
200 OK
|
-
Property mode set to
100755
|
File size:
228 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 |
---|
Note: See
TracBrowser
for help on using the repository browser.