Accessing the Orchestrator API via REST
In this recipe, we will see how one can interact with the Orchestrator's REST interface and run workflows.
Getting ready
We need a working Orchestrator and a REST client. We will use Firefox with the REST client; Firefox can be downloaded from https://addons.mozilla.org/en-US/firefox/addon/restclient/.
You might think it is odd to use a web browser to connect to and use a REST host; however, there is method to this madness. A REST implementations in PHP, Python, or .NET might not expose all the features that one needs or wants. Using a web browser enables you to experiment with all the available features you might need.
How to do it...
We will divide this recipe into:
- Establishing a connection
- Getting information
- Running a workflow
Establishing a connection
The first thing we need to do is establish a connection to the Orchestrator REST interface:
- Open Firefox; if you have not accepted the Orchestrator SSL certificate, please browse to
https://[IP or FQDN...