Working with REST
In this recipe, we will use the REST plugin. We will use it to connect to the Orchestrator Control Center REST API.
Getting ready
We need a REST-capable host you can contact. As every REST host handles things a little differently, we will use the REST interface Orchestrator and the Orchestrator Control Center, to showcase the functionality.
I have also collected some other Orchestrator-REST integration examples in the See also section of this recipe.
If you are new to REST, I would like to point you to the Accessing Orchestrator REST API recipe in Chapter 7, Interacting with Orchestrator.
How to do it...
This recipe is divided into connecting, gathering information, sending information, as well as creating workflows.
Connecting to a REST host
There are two methods (as of vRO7.1) to connect to a host. We will use the normal method here to connect to a REST host, as this showcases a lot of things you should know. The other one (using Swagger) is discussed in the There's more... section...