5.1
Table Of Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1
- Contents
- Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1
- Introduction to the VMware vCenter Orchestrator Plug-In for vCloud Automation Center
- Using the vCloud Automation Center Plug-In
- Index
Table 2-2. Input Variables
Variable Type
entity
vCAC:Entity
updatedDescription String
var hostId = entity.hostId;
var modelName = entity.modelName;
var entitySetName = entity.entitySetName;
var entityIdString = entity.keyString;
var links = null;
var headers = null;
var updateProperties = new Properties();
updateProperties.put("UserNameDescription", updatedDescription);
//Update the user description
System.getModule("com.vmware.library.vcac")
.updateVCACEntity(hostId, modelName, entitySetName, entityIdString, updateProperties, links,
headers);
Example: Read a vCloud Automation Center model entity
This example script performs the following actions.
1 Defines the model name and the entity set name.
2 Defines the blueprint ID with a property object.
3 Reads the entity.
Table 2-3. 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.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1
14 VMware, Inc.