vCloud Availability End to End Configuration via API

Lately I have posted few blogs on manual setup of vCAV 3.x in service provider and tenant side. In this post I will walk through configuring the same via API’s.

If you are new to vCAV, then I would recommend reading below articles so that you will get an understanding about vCAV architecture and its functioning.

1: vCAV Introduction & Architecture

2: vCAV Service Provider Setup

3: vCAV Tenant Setup

Current version of vCAV is 3.5 and API documentation for this version is located at VMware code portal. You can also download vCAV openapi json and import it into rest client of your choice to execute the API’s. Read More

How To Unregister vCAV 3.5 Plugin from vCenter

Recently while working in lab, I came across situation where I had to remove the vCloud Availability 3.5 plugin from vCenter. To remove plugins from vCenter, we usually employ mob for this task, but removing the vCAV plugin follow different path. In this post I will walk through steps of doing the same.

Login to your vcsa appliance over SSH and execute following commands:

1: List vCAV plugin registrations in the vCenter Server Lookup service

Make a note of the Service ID from the output Read More

Upgrading vCloud Availability From 3.0 to 3.5

In this post I will walk through steps of upgrading vCloud Availability deployment upgrade from version 3.0 to 3.5.

If you have missed earlier posts of this series, I would recommend reading them from below links:

1: vCAV 3.0-Provider Setup

2: vCAV 3.0-Replication Policies

3: vCAV 3.0-Tenant Setup

vCloud Availability upgrade can be performed via various methods (CLI & UI). These methods are very well documented Here 

Upgrading vCloud Availability in the Cloud

Before upgrading vCAV in service provider side, we need to ensure that environment is configured as per Pre-Upgrade requirement. Read More

Configuring vCloud Availability 3.0-Part 3:Tenant Setup

In first Part of vCAV 3.0 series, we learnt about service provider side configuration and in last Post we discussed about Replication Policies in vCAV. In this post I will walk through steps of configuring on-prem environment with vCAV. 

To configure on-prem environment to work with vCAV, you need to first download the vCAV 3.0 Appliance for Tenants which is located Here

Deployment of appliance is very straight forward like any other vmware product. Below slideshow shows the deployment steps.

Once the appliance boots up, make a note of the login url. Read More

Configuring vCloud Availability 3.0-Part 2: Replication Policies

In last post we learnt how to perform vCloud Availability 3.0 end to end configuration. But before we can jump into performing tenant side configuration, we need to configure Replication Policies.

Replication policies are sets of rules that define and control the replication attributes on a vCD organization level. Typically a replication policy enforces following attributes:

  • Whether an organization can be used as a replication source.
  • Whether an organization can be used as a replication destination.
  • The minimum Recovery Point Objective (RPO) for an organization.
  • The maximum number of retained snapshots per single virtual machine replication for an organization.
  • The maximum number of virtual machine replications that can be created for an organization.

Note: A single replication policy can be assigned to multiple vCD organizations. 

Create a Replication Policy

You can edit and use the default replication policy that comes with vCAV or you can create a new one based on your requirements.  Read More

Configuring vCloud Availability 3.0-Part 1:Provider Setup

Recently I got chance to work on setting up vCloud Availability 3.x version in my test environment and it was a great learning curve. I will share my experience through series of blog posts so that it can help wider audience to understand every nuance’s of this wonderful product. 

I am not going to write any introduction post on what is vCAV and its architecture. Its very well documented Here

If you have worked on previous version of vCAV (2.0 & 1.5), you might remember it was a pain setting up various appliances. With vCAV 3.0, installation & configuration has been simplified drastically. No more hanky panky command line stuff. Now you just need 2 ova files for setting up cloud and on-prem infrastructure. Read More

Automating vCloud Usage Meter Deployment & Configuration via API

In my last Post I covered manual steps of vCloud Usage Meter deployment & configuration. In this post I will show how we can leverage Usage Meter API’s to perform end to end configuration.

Usage Meter Deployment: There is no API for UM deployment and we have to stick to ovftool method for this step.

Once Usage meter boots up, we can leverage below API calls to perform end to end configuration. 

1: Get Authentication Token

Response Output: We need to grab value of “sessionid” from output response. Further API calls will be authenticated using sessionid.  Read More

Installing & Configuring vCloud Usage Meter

What is Usage Meter?

vCloud Usage Meter is an on-premises virtual appliance that is used to collect and generate reports for Cloud Provider Partners (VCPP) to send back to VMware for monthly billing of usage.

Usage Meter collects usage of most of the VMware products that are installed in cloud providers datacenter. Current version of Usage Meter (4.1) supports usage collection from following endpoints:

UM-Endpoints

How Usage Meter collects and report monthly product consumption data, is explained Here

vCloud Usage Insight Read More

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 Read More

Upgrading vCSA 6.7 to 7.0 via CLI

In my current project I have been tasked with identifying the process of VCSA upgrade via CLI so that same can be automated via code and eventually enabling customers to upgrade vCenter server in one click.

During my research I came to know that unfortunately there are no API calls as of now to upgrade vcsa and we have to rely on the CLI installer method. 

vCenter Upgrade Process Overview

Those who have worked on VCSA upgrade in past, VCSA upgrade is not an in-place upgrade and it is a 2 step process. Read More

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. Read More

Integrating vSphere & vROPs with vRLI via API

In this post I will walk through steps of integrating vSphere and vROPs in vRLI via API.

Note: All GET & POST calls are done over port 9543 with JSON payloads. 

1: Obtain Auth Token: 

Response output is a sessionId  which is a opaque bearer token valid for a limited time, indicated by the ttl value in the response.

Note: Post obtaining Auth Token, sessionId is passed as type “Bearer Token” under Authorization for all subsequent requests.

2: Test vSphere Connection Read More

Install & Configure vCD Management Pack in vROPs via API

In this post I will walk through steps of installing vCD Management Pack in vROPS via API. Installation of management pack is leveraged via vROPS CaSA API. Adapter configuration is done via regular suite-api. 

What is vROps CaSA API?

CaSA stands for Cluster and Slice Administration. The CaSA API manages the internal working of vRealize Operations Manager and runs on a standalone vFabric tcServer. CaSA API can be explored directly from vROPs by typing https://<vrops-fqdn>/casa/api-guide.html

Install and Configure vCD Management Pack & Adapter Read More

Configuring vCenter Adapter in vROPs via API

In this post we will learn how to install Management Packs in vROPs via API. 

For vCenter we don’t have to install any management pack as its shipped with vROPs by default and we just have to create vCenter credentials and configure adapter. Below steps can be followed to configure VC adapter.

1: Obtain Session Token: vROPs session token is obtained via POST call. 

Sample Output:

The token id obtained in output is passed as “Authorization: vRealizeOpsToken token_value” header in all subsequent GET and POST calls. Read More

Configuring MYVMware Account in vRSLCM via API

One of the method of installing vRealize products via vRSLCM is to configure myvmw repository first and then pulling available product binaries via internet. In this post I will walk through steps of configuring the same via API.

1:  Add myvmw credentials to password Store

2:  Fetch vmid associated with alias created in step-1: When a new password is added to locker store, vRSLCM assigns a unique vmid to that password and all future references to this password is made via assigned vmid.  Read More