Installing & Configuring vCD Content Pack in vRLI via API

In this post we will learn how to install vCD content pack in vRealize Log Insight via API. 

What is vCD Content pack?

As per VMware official documentation:

The VMware vCloud Director content pack provides you unparalleled visibility into your vCD environment from 5.5 to the new 9.x SP. Providing graphical representations of important log data, metrics of your vCD workloads and a robust set of alerts this content pack will allow you to better manage vCD utilizing Log Insight’s capabilities.

Installing content packs in vRLI is one of the day 2 operations that most VMware Admins do in their day to day job. In large datacenters where there are several instances of vRLI, configuring content packs & agents via UI is a very tedious and time consuming process. You can use API’s to automate these day 2 tasks to reduce time and to minimize human errors. So let’s get started.

Step 1: Obtain Auth Token

Step 2: Install vCD Content Pack

Note: Sample payload used for installing content packs is a huge json. Contents of json can be obtained by downloading content pack from VMware market place and then opening the file in notepad++ or similar utility and saving the file with .json extension.

Step 3: Verify vCD Content Pack is installed.

Sample Output: Sample Output returns the same json data which you used in payload json. 

Step 4: Create vCD Agent Group

Step 5: Verify vCD Agent Group

Sample Output:

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 🙂