source: ogServer-Git/tests/run-tests.sh @ 741524f

Last change on this file since 741524f was b4a9fdd, checked in by OpenGnSys Support Team <soporte-og@…>, 5 years ago

#915 add POST software command to REST API in ogAdmServer

This patch implements the command "software" that fetches the software
configuration from the clients.

Request:

POST /software
{"clients" : [ "192.168.2.1", "192.168.2.2" ]}

Reply:

200 OK

This allows to refresh the software inventory from clients.

  • Property mode set to 100755
File size: 1.1 KB
Line 
1API_KEY="07b3bfe728954619b58f0107ad73acc1"
2
3curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/clients -d @post_clients.json
4curl -X GET -H "Authorization: $API_KEY" http://127.0.0.1:8888/clients
5curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/wol -d @wol.json
6curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/shell/run -d @post_shell_run.json
7curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/shell/output -d @post_shell_output.json
8curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/session -d @session.json
9curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/poweroff -d @poweroff.json
10curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/reboot -d @reboot.json
11curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/stop -d @stop.json
12curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/refresh -d @refresh.json
13curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/hardware -d @post_clients.json
14curl -X POST -H "Authorization: $API_KEY" http://127.0.0.1:8888/software -d @post_clients.json
Note: See TracBrowser for help on using the repository browser.