Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 vCenter Orchestrator 5.1 This document supports the version of each product listed and supports all subsequent versions until the document is replaced by a new edition. To check for more recent editions of this document, see http://www.vmware.com/support/pubs.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 You can find the most up-to-date technical documentation on the VMware Web site at: http://www.vmware.com/support/ The VMware Web site also provides the latest product updates. If you have comments about this documentation, submit your feedback to: docfeedback@vmware.com Copyright © 2012 VMware, Inc. All rights reserved. This product is protected by U.S. and international copyright and intellectual property laws.
Contents Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 4 VMware, Inc.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 provides information and instructions ® about configuring and using the VMware vCenter Orchestrator plug-in for vCloud Automation Center 5.1. Intended Audience This book is intended for anyone who is installing and configuring the plug-in, using the API of the plug-in, and using the workflow library.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 6 VMware, Inc.
Introduction to the VMware vCenter Orchestrator Plug-In for vCloud Automation Center 1 The vCloud Automation Center plug-in (VMware vCenter Orchestrator plug-in for vCloud Automation Center) allows interaction between vCenter Orchestrator and vCloud Automation Center. You can use the vCloud Automation Center plug-in to provision virtual machines, take post-provision actions, and run Create, Read, Update, and Delete (CRUD) operations on the vCloud Automation Center model.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 vCloud Automation Center Verify that you have access to a vCloud Automation Center server. Version 5.1 of the plug-in works with vCloud Automation Center 4.5 and 5.1. For information about setting up vCloud Automation Center, see vCloud Automation Center Installation Guide. Install the vCloud Automation Center Plug-In To be able to use the vCloud Automation Center plug-in, you must download the .
Using the vCloud Automation Center Plug-In 2 The vCloud Automation Center plug-in workflow library contains workflows that you can use to provision virtual machines and take post-provision actions. You can use the scripting API of the plug-in to develop custom workflows. You can use custom HTTP headers, such as the vCloud Automation Center specific headers Tasks and Identity, and apply them in the CRUD, provisioning, and post-provisioning workflows.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 Add a vCloud Automation Center Host You can run a workflow to add a vCloud Automation Center host and configure the host connection parameters. Prerequisites Verify that you have the permissions to perform this task. Procedure 1 From the drop-down menu in the Orchestrator client, select Run or Design. 2 Click the Workflows view.
Chapter 2 Using the vCloud Automation Center Plug-In Workflow Name Description Create a vCAC model entity Creates and persists an entity for a specified vCloud Automation Center model. Delete a vCAC model entity Deletes a specified vCloud Automation Center model entity. Invoke a post-provisioning action Invokes a specified post-provisioning action on a given virtual machine. Provision a virtual machine from a blueprint Provisions a virtual machine from a vCloud Automation Center blueprint.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 5 Select a vCloud Automation Center host. 6 In the Model name text box, type the model name. 7 In the Entity set name text box, type the entity set name. The HTTP headers property is set by using scripting or REST API. 8 Click Submit to run the workflow. Using the vCloud Automation Center Plug-In Inventory You can use the Inventory view to run workflows on vCloud Automation Center objects.
Chapter 2 Using the vCloud Automation Center Plug-In Table 2-1. Input Variables Variable Type host vCAC:VcacHost var modelName = 'ManagementModelEntities.svc'; var entitySetName = 'HostNamePrefixes'; var links = null; var headers = null; //Create properties for prefix entity var prefixInputProperties = { MachinePrefix:'test-prefix', NextMachineNo:1, MachineNumberLength:3 }; //Save the prefix var prefixEntity = vCACEntityManager .createModelEntity(host.
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 Table 2-2. Input Variables Variable Type entity vCAC:Entity updatedDescription String var var var var hostId = entity.hostId; modelName = entity.modelName; entitySetName = entity.entitySetName; entityIdString = entity.keyString; var links = null; var headers = null; var updateProperties = new Properties(); updateProperties.put("UserNameDescription", updatedDescription); //Update the user description System.getModule("com.
Chapter 2 Using the vCloud Automation Center Plug-In 5 Invokes the action responsible for deleting the entity. Table 2-4. Input Variables Variable Type entity vCAC:Entity var var var var hostId = entity.hostId; modelName = entity.modelName; entitySetName = entity.entitySetName; entityKeyString = entity.keyString; var headers = null; //Delete the entity System.getModule("com.vmware.library.vcac") .
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 16 VMware, Inc.
Index A W adding a vCloud Automation Center host 10 adding a vCloud Automation Center model entity 11 API access 12 audience 5 workflow library 9 workflows configuration 9 CRUD 10 model entity 10 standard workflows 10 C configuration 9 F functional prerequisites 7 H host configure 9 manage 9 I installation 7 installation process 8 introduction, vCloud Automation Center plugin 7 Inventory 12 O Orchestrator 7 R reading a vCloud Automation Center model entity 11 registering a vCloud Automation Center
Using the vCenter Orchestrator Plug-In for vCloud Automation Center 5.1 18 VMware, Inc.