6.1.0

Table Of Contents
Table 318. Input Variables
Variable Type
host vCAC:VcacHost
templateName
String
var modelName = 'ManagementModelEntities.svc';
var entitySetName = 'VirtualMachineTemplates';
var headers = null;
//Create properties for prefix entity
var properties = {
VirtualMachineTemplateName:templateName,
};
//Read a list of entities
var entities = vCACEntityManager
.readModelEntitiesByCustomFilter(host.id, modelName, entitySetName, properties, headers);
Example: Read a vCloud Automation Center Entity by System Query
This example script performs the following actions:
1 Defines the model name and the entity set name.
2 Defines the system queries by which the entities are filtered and selects the top ten results of all virtual
machines, filtered by the machine state and component flag.
3 Reads a list of entities.
Table 319. Input Variables
Variable Type
host vCAC:VcacHost
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(host.id, modelName, entitySetName, filter, orderBy, select,
top, skip, headers);
Examples of Scripts for Finding vCloud Automation Center Entities
You can cut, paste, and edit the JavaScript examples to write scripts for finding vCloud Automation Center
entities by using the vCACCAFEEntitiesFinder scripting utility object.
For more information about scripting in vCenter Orchestrator, see Developing with VMware vCenter
Orchestrator.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.1
26 VMware, Inc.