-
Notifications
You must be signed in to change notification settings - Fork 11
OSv REST API
Tzach Livyatan edited this page Mar 25, 2014
·
4 revisions
On a cloud environment of multiple instances, interacting with each instance via GUI or CLI is non efficient. Instead OS operations should allows easy automation.
OSv REST API allows such remote automation. Just run OSv with --api flag as follow:
./scripts/run.py --api
This flag take care of port forwarding, so you can access the API using http://localhost:8000/
Now you can use the API directly, or access it using GUI. Direct access example
curl http://localhost:8000/os/version
For an interactive API GUI, base on Swagger, point your browser to http://localhost:8000/