6.1.0
Table Of Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.1
- Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.1
- Introduction to the VMware vCenter Orchestrator Plug-In for vCloud Automation Center
- Configuring the vCloud Automation Center Plug-In
- Using the vCloud Automation Center Plug-In
- Using the vCloud Automation Center Plug-In Inventory
- Using the vCloud Automation Center Plug-In Administration Workflows
- Using the vCloud Automation Center Plug-In Infrastructure Administration Workflows
- Using the vCloud Automation Center Plug-In Requests Workflows
- Using the vCloud Automation Center Plug-In Sample Workflows
- Access the vCloud Automation Center Plug-In API
- Examples of Scripts for Common vCloud Automation Center Tasks
- Examples of Scripts for CRUD vCloud Automation Center Infrastructure Administration Tasks
- Examples of Scripts for Finding vCloud Automation Center Entities
- An Example Script for Getting a Virtual Machine Provisioned as a vCloud Automation Center Catalog Resource
- An Example Script for Content Transfer Between vCloud Automation Center Hosts
- Index
Table 3‑18. 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 3‑19. 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.