6.1.0

Table Of Contents
Table 316. Input Variables
Variable Type
host vCAC:VcacHost
blueprintID
String
var modelName = 'ManagementModelEntities.svc';
var entitySetName = 'VirtualMachineTemplates';
var links = null;
var headers = null;
//Create properties for the prefix entity
var blueprintId = {
VirtualMachineTemplateID:blueprintId,
};
//Read the blueprint
var entity = vCACEntityManager
.readModelEntity(host.id, modelName, entitySetName, blueprintId, headers);
Example: Delete a vCloud Automation Center Model Entity
This example script performs the following actions:
1 Gets the host ID from the provided entity.
2 Gets the model name from the provided entity.
3 Gets the entity set name from the provided entity.
4 Gets the entity ID from the provided entity.
5 Starts the action responsible for deleting the entity.
Table 317. Input Variables
Variable Type
entity vCAC:Entity
var hostId = entity.hostId;
var modelName = entity.modelName;
var entitySetName = entity.entitySetName;
var entityKeyString = entity.keyString;
var headers = null;
//Delete the entity
System.getModule("com.vmware.library.vcac")
.deleteVCACEntity(hostId, modelName, entitySetName, entityKeyString, headers);
Example: Read a vCloud Automation Center Entity by Custom Filter
This example script performs the following actions:
1 Defines the model name and the entity set name.
2 Defines the properties by which the entities are filtered.
3 Reads a list of entities.
Chapter 3 Using the vCloud Automation Center Plug-In
VMware, Inc. 25