6.2
Table Of Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.2
- Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.2
- 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 Workflows
- 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
- Example vCloud Automation Center Plug-In Scripts
- Index
5 Starts the action responsible for deleting the entity.
Table 4‑4. 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.
Table 4‑5. 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.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 6.2
28 VMware, Inc.