Automating vROPs Tenant Appliance Deployment & Configuration via API

In my previous post on vROPs Tenant Appliance for vCD, I covered steps of manual deployment & configuration. In this post I will cover how we can achieve this via CLI/API.

These API’s can be leveraged via any scripting language to automate the deployment of vROPs TA.

Step 1: Deploy vROPs Tenant Appliance via ovftool

As of now there is no API for automating deployment of appliance via API, so we will use ovftool for this purpose.

Step 2: Get Authentication Token

Sample Output: Make a note of token value from response output.

Note: If you are using Postman to execute API, you can use below snippet as test to save the obtained token as environment variable

var jsonData = JSON.parse(responseBody);
postman.setEnvironmentVariable(“vRops-TA-Token”, jsonData.token);

Step 3: Configure vCD as Endpoint to vROPs TA

vROPs TA can be used with both vCD & vCenter. In my environment I am using TA for vCD connection.

Step 4: Configure vROPs Credentials in Tenant Appliance

Tenant Appliance do not have any credentials of its own and it uses vROPs admin user credentials for login. But before we can use this credential, we have to configure this.

Step 5: Integrate Tenant Appliance with vCD for Plugin Access

In this step we are integrating vROPs TA with vCD, so that Tenants can view performance metric data in vCD itself without having them login to TA separately.

Step 6: Add local user (per tenant) for direct access to Tenant Appliance

If a tenant wants to login to Tenant Appliance to view performance metrics, service provider has to add local users/tenant. This is a 2 step process:

6a: Fetch Resource ID for a specific tenant.

Sample Output: From sample output make a note of resourceID associated with a specific tenant.

6b: Add Local User for Tenant

And that’s it for this post.

I hope you enjoyed reading this post. Feel free to share this on social media if it is worth sharing 🙂