Getting started with vAPI
In this recipe, we will look at the vAPI plugin that comes with vSphere 6.
Getting ready
You will need the vAPI plugin (which is already integrated into vRO 7.x).
How to do it...
This recipe is broken up into two parts just work though them in sequence.
Configuring vCenter endpoint and metadata
We will now create a vCenter vAPI endpoint and import the metadata:
- Run the workflow Library | VAPI | Add vAPI Endpoint.
- The vAPI endpoint is the
https://[FDQN
vCenter]/api
. - Using SSL is always a good idea.
- If you are using self-signed certificates you can import them without warnings.
- Use a user that will be the connection between Orchestrator and vCenter:
- We now need to import the metamodel of the vAPI endpoint. Run the workflow Library | VAPI | import vAPI metamodel.
- The inputs are the same as with adding the endpoint.
Exploring the content
Now we have created an endpoint and imported the metamodel, let's have a look what we get.
- Select Tools | API Explorer from the upper right...