Working with vCloud Automation Center IaaS entities

vCloud Automation Center has several constructs such as blueprints, business groups, reservations to manage the virtual machines lifecycle and governance policies.

While most customers will use vCloud Automation Center out of the box some have several use cases for automation and integration. This is where vCenter Orchestrator comes into the picture.


The vCloud Automation Center Infrastructure as a service data model (vCAC IaaS)

vCAC IaaS has an extensible model consisting of different metamodels. Here are some of the meta models:

  • ManagementModelEntities.svc: Generic model providing an abstraction layer to different vendor endpoints.

Which is extended by specific models:

  • AmazonWSModelEntities.svc : To manage Amazon Web service
  • ScvmmModelEntities.svc : To manage Microsoft System Center Virtual Machine Manager
  • UcsModelEntities.svc :To manage Cisco UCS Manager

A new model can be created to extend the management capabilities.

Each model has a number of entity sets. Here are a few of the ManagementModelEntities model entity sets:

  • VirtualMachineTemplates : The vCAC blueprints (abstracting several vendors virtual machine / vApp templates).
  • VirtualMachineTemplateProperties: The vCAC blueprint custom properties
  • VirtualMachines : The vCAC VMs deployed from the blueprints
  • VirtualMachineProperties : The vCAC blueprint custom properties

Each entity set contains a list of entities, For example the list of all the blueprints that have been created (VirtualMachineTemplates).

Each entity has a list a properties (i.e ID, name and so on) and a list of linked entities. The image below shows some entities, their properties and how they are linked together:





Accessing to the data model through the API

Since IaaS is build using Microsoft .net it leverages the Open Data Protocol (also called OData). You can find more about OData here.

Odata basically exposes the data model as a REST API. If you use the URL of one of the management model you can browse the entities as XML atom files. JSON is also supported.

The good think about using the OData API is that you can access all entities in the data model, it is quite powerfull. The issue may be that with great power comes great responsibility. The data model changed between vCAC IaaS versions. These changes may break your API usage. Also if you do unexpected changes in the data model you may break some of the IaaS functionality and loose product support. For example information panels on the IaaS web site do break when some entities are missing links to other entities that are expected. The OData API is not a public API and will eventually be abstracted by a higher level service catalog API and provide the functionality required for most of the automation / integration use cases.

Automation and integration use cases

There are quite a few reasons you may need the vCAC IaaS API such as:

  • Having your own custom portal to leverage the vCAC capabilities
  • Automating some of the tasks that would require a vCAC admin to do several times the same operation in the user interface. For example creating hundreds of provisioning groups.
  • In some cases when vCAC is calling out to a sub system, the sub system may need to call back vCAC to get further information or to update some vCAC entities. For example adding a custom property on a vCAC VM with an external ticketing system request ID.

Automating and integrating vCAC IaaS using the vCAC Iaas plug-in for vCenter Orchestrator

Combine vCAC IaaS and vCenter Orchestrator and you have the best combination of policy based lifecycle management and technical orchestration. vCAC IaaS has a vCO endpoint allowing to run vCO workflows either as part of the IaaS lifecycle steps or with extending second day operations on VMs.

vCenter Orchestrator has a vCAC IaaS plug-in allowing to automate vCAC. You can find this plug-in here. The plug-in includes the "vCAC extensibility package" which allows to extend vCAC IaaS in a few clicks with vCenter Orchestrator workflows. You can find more information about the extensibility package here. The plug-in is providing several facilities including :

  • An inventory of objects allowing end users to select items as a tree view or list:


  • A set of workflows for:
    • Configuring vCAC hosts
    • Performing CRUD operations on credential, endpoints, enterprise groups, machine prefixes and provisioning groups
    • Register VMs to be managed by vCAC IaaS
    • Use a vCO workflow as a vCAC IaaS menu operation or to extend the IaaS VM lifecycle


The rest of the workflow listed above is mainly to get, create, update delete model entities.

Working with model entities

If you want to do anything on the entities that are not managed by the workflows in the administration folder then you will need to work with the entity object.

Getting a model entity using an inventory object

You may wonder how do you start. If the entity you are looking for has an object listed in the vCO inventory you can just use an input parameter of the given type. For example I have created a workflow with an input of vCAC:BluePrint type. Once I run the workflow, as an end user I can select a blueprint by name but also based on several other properties of the blueprint.


You can access to the properties displayed in the inventory and additional ones by scripting.

The API Explorer lists the following properties and methods:


So for example blueprint.memoryMB will return 2048.

This allows to read the blueprint properties.  To modifiy the blueprint properties or to get the blueprint linked entities requires to get the entity object backing up this inventory object.

var blueprintEntity = blueprint.getEntity();

In a few cases the inventory object is not the same as the entity set name. For example the code above will first print "VirtualMachineTemplates" for a blueprint. VirtualMachineTemplate is how blueprints are called in the data model, "blueprint" is the name used in the end user interface and documentation. Since the inventory objects are aimed at end users it matches the user interface one.

The last line will print all the available properties of the entity. This is useful whan you want to filter on a particular property to get an entity.

Getting a model entity object using filtering

You may want to get a particular entity without user intervention. For this you can use the vCACEntityManager.readModelEntitiesByCustomFilter(); For this you need to specifiy as parameters:

  • The vCAC IaaS host id in which to make the search
  • The model name: Here we use ManagementModelEntities.svc which contains the virtualMachineTemplates entity set.
  • The entity set: Here virtualMachineTemplates.
  • The properties used for filtering : Here the only property we want to filter on is the blueprint name.
  • VirtualMachineTemplateName : We could have filtered on any other of the properties.
var model = "ManagementModelEntities.svc";
var entitySetName = "VirtualMachineTemplates";
var property = new Properties();
var entities = vCACEntityManager.readModelEntitiesByCustomFilter(, model, entitySetName, property, null);

The method above will run a query on the server side. This is a lot more performant than for example pulling all the blueprints in the scripting and iterating through their properties.

Note that readModelEntitiesByCustomFilter will always return an array of elements assuming there will be 0 to n entities matching the supplied property.

Another example is to get the virtualMachine entity from a virtualMachineId. This is typically what is needed when calling a vCO workflow from a vCAC workflow stub.

var properties = new Properties();
properties.put("VirtualMachineID", virtualMachineId);
return vCACEntityManager.readModelEntity(, "ManagementModelEntities.svc", "VirtualMachines", properties, null);

You can also perform more complex queries. The code below return the top ten results of all virtual machines, filtered by the machine state and component flag

var modelName = 'ManagementModelEntities.svc';
var entitySetName = 'VirtualMachines';
var filter = "VirtualMachineState eq 'Off' and IsComponent eq true";
var orderBy = 'VirtualMachineName asc';
var top = 10; {
var skip = 0;,
var headers = null;
var select = null;
var entities = vCACEntityManager
readModelEntitiesBySystemQuery(, modelName, entitySetName, filter, orderBy, select,
top, skip, headers);

Using the entities

You will need to use the entities to get to its linked entities. For example the code below gets the virtualMachineTemplateProperties entity which matches the propertyName.

var virtualMachineTemplatePropertiesEntities = virtualMachineTemplateEntity.getLink(host, "VirtualMachineTemplateProperties");
for each (var virtualMachineTemplatePropertiesEntity in virtualMachineTemplatePropertiesEntities) {
 if (virtualMachineTemplatePropertiesEntity.getProperty("PropertyName") == propertyName) {
 //System.log("Found existing property " + propertyName);

For updating this property entity you would use:

var model = "ManagementModelEntities.svc";
var entitySet = "VirtualMachineTemplateProperties";
var properties = new Properties();
properties.put("PropertyName", propertyName);
properties.put("PropertyValue", propertyValue);
properties.put("IsHidden", propertyIsHidden);
properties.put("IsRuntime", false);
properties.put("IsEncrypted", false);
var links = new Properties();
links.put("VirtualMachineTemplate",virtualMachineTemplateEntity); //The property needs to link back to the blueprint
var entityKey = virtualMachineTemplatePropertiesEntity.entityKey;
 var entityKeyId = entityKey.get("Id");
 System.log("Update entity id " + entityKeyId + " with property " + propertyName + " : " + propertyValue + " on virtualMachineTemplate entity " + blueprint.displayName);
var updatedEntity = vCACEntityManager.updateModelEntityBySerializedKey( , model , entitySet , entityKeyId , properties, links);

For creating a new entity property you would replace the last paragraph by :

System.log("Create property " + propertyName + " : " + propertyValue + " on virtualMachineTemplate entity " + blueprint.displayName);
 var createdEntity= vCACEntityManager.createModelEntity(, model, entitySet, properties, links);

The code above is an extract of the addUpdatePropertyFromBlueprint action that is included in the 5.2 version of the vCAC plug-in for vCO. There is a similar action called addUpdatePropertyFromVirtualMachineEntity for handling virtual machine properties.

Converting the entities back to an inventory object

If you found a particular entity usng the scripting you may want to get the inventory object it matches. In this case you can use the following method:

inventoryObject = entity.getInventoryObject(); 

This of course only works for entities having a matching inventory object.

For example here is an action returning blueprints with a given name:

if (vcacHost == null) return null; 
var model = "ManagementModelEntities.svc"; 
var entitySetName = "VirtualMachineTemplates"; 
var property = new Properties(); 
var entities = vCACEntityManager.readModelEntitiesByCustomFilter(, model, entitySetName, property, null); 
var blueprints = new Array(); 
for each (var entity in entities) { 
return blueprints;

More information

The Using the vCenter Orchestrator plug-in for vCloud Automation Center 5.2 guide from VMware technical publications provides additional information and scripting examples.


0 #11 shivendra 2016-12-08 12:36
i am working on automation of vRA through APIs.
but i am not able to find the blueprints API.
please help.
0 #10 Abhishek Mittal 2016-12-02 12:18
I need to collect all requests from vRA along with there status.
After collecting this info i need to mail the request ID's which are in progress for long time.

Can someone suggest how can i get all the requests from vRA into vRO?
0 #9 cotje 2016-09-27 15:08
Hi Christophe,

How did you create the entity relationship image? Is this something I can use in my own environment?

0 #8 Swaroop 2014-11-22 06:10

I have a Clone VM action in vCAC. Once the VM is cloned, it has to be imported to vCAC using Infrastructure Organiser. To import a VM we need details like the Business Group, Reservation, Owner and Blueprint name. Is there any possibility through vCO to get the Reservation of the source VM?
0 #7 Deepak 2014-09-20 14:43
Hi burke,
Thanks for the link.
I followed the article

and using the VCAC Designer to call the VCO Workflow (VCAC VCO workflow template) which returns the Custom vm-name based on the properties and user input.

But I would like to know is it possible to get and modify the model entity to rename VCAC vm all from VCO Workflow.
0 #6 oschistad 2014-09-11 16:35
MIght as well ask this here;

Is there any way to filter for multiple property:value pairs in readModelEntiti esByCustomFilte r? If I simply add multiple pairs to the object I get unexpected results, possibly just the first property added.
+1 #5 burke 2014-09-09 13:03
Quoting Deepak:
Can any one help in how to get and update the VCAC vm name entity for naming convention.


Greetings Deepak - try this article:
0 #4 Deepak 2014-09-09 12:31
Can any one help in how to get and update the VCAC vm name entity for naming convention.

0 #3 burke 2014-08-21 12:04
Quoting oschistad:
Hey Christophe, great post.

Any chance you could post a higher resolution version of that entity relationship image? The text is juust too grainy to make out currently.

Actually, if you click on the image to get the popup window to come up, it zooms a little -- but is limited by YOUR screen height. When that is loaded, right click and save the image - at "actual size", this image is quite clear. Note: I just did this myself to see full diagram. Even my 27" screen isn't big enough to see whole thing when set to actual size ;)
+2 #2 oschistad 2014-08-21 05:23
Hey Christophe, great post.

Any chance you could post a higher resolution version of that entity relationship image? The text is juust too grainy to make out currently.


Book Shelf

Experts Exchange

NUC Lab Kit

Below are my thoughts for a vSAN nuc lab. Since I already have cables, not including them here. I ordered (and received by Nov 30, 2016)
3 x nuc, 3 x 32GB Crucial mem, 3 x Toshiba NVMe drive, 3 x Startech USB to GB NIC, and 3 x Crucial 1TB SSD. I've also been very happy with my Cisco SG300-10 so I bought one more since my existing one only has one port available. Each of the items listed here are linked below - all were purchased using the provided links below.
single NIC (See this post for details on using the USB -> GB NIC item listed below

I stayed with the i5 for the power consumption and form factor vs. the i7 Skull Canyon ;)