18.08.2013 Views

Using the vCenter Orchestrator Plug-In for vCloud Automation ...

Using the vCenter Orchestrator Plug-In for vCloud Automation ...

Using the vCenter Orchestrator Plug-In for vCloud Automation ...

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

<strong>Using</strong> <strong>the</strong> <strong>vCenter</strong> <strong>Orchestrator</strong> <strong>Plug</strong>-<strong>In</strong> <strong>for</strong> <strong>vCloud</strong> <strong>Automation</strong> Center 5.1<br />

5 Select a <strong>vCloud</strong> <strong>Automation</strong> Center host.<br />

6 <strong>In</strong> <strong>the</strong> Model name text box, type <strong>the</strong> model name.<br />

7 <strong>In</strong> <strong>the</strong> Entity set name text box, type <strong>the</strong> entity set name.<br />

The HTTP headers property is set by using scripting or REST API.<br />

8 Click Submit to run <strong>the</strong> workflow.<br />

<strong>Using</strong> <strong>the</strong> <strong>vCloud</strong> <strong>Automation</strong> Center <strong>Plug</strong>-<strong>In</strong> <strong>In</strong>ventory<br />

You can use <strong>the</strong> <strong>In</strong>ventory view to run workflows on <strong>vCloud</strong> <strong>Automation</strong> Center objects.<br />

You can enable <strong>the</strong> Use contextual menu in inventory option to display <strong>the</strong> workflows that are available <strong>for</strong><br />

an inventory object. After <strong>the</strong> option is enabled, when you right-click an object in <strong>the</strong> <strong>Orchestrator</strong> inventory,<br />

all available workflows <strong>for</strong> <strong>the</strong> object are displayed.<br />

Access <strong>the</strong> <strong>vCloud</strong> <strong>Automation</strong> Center <strong>Plug</strong>-<strong>In</strong> API<br />

<strong>Orchestrator</strong> provides an API Explorer to allow you to search <strong>the</strong> <strong>vCloud</strong> <strong>Automation</strong> Center plug-in API and<br />

see <strong>the</strong> documentation <strong>for</strong> JavaScript objects that you can use in scripted elements.<br />

Procedure<br />

1 Log in to <strong>the</strong> <strong>Orchestrator</strong> client as an administrator.<br />

2 Select Tools > API Explorer.<br />

3 To expand <strong>the</strong> hierarchical list of <strong>vCloud</strong> <strong>Automation</strong> Center plug-in API objects, double-click <strong>the</strong><br />

vCAC module in <strong>the</strong> left pane.<br />

What to do next<br />

You can copy code from API elements and paste it into scripting boxes. For more in<strong>for</strong>mation about API<br />

scripting, see Developing with VMware <strong>vCenter</strong> <strong>Orchestrator</strong>.<br />

Examples of Scripts <strong>for</strong> CRUD <strong>vCloud</strong> <strong>Automation</strong> Center Tasks<br />

You can cut, paste, and edit <strong>the</strong> JavaScript examples to write scripts <strong>for</strong> CRUD <strong>vCloud</strong> <strong>Automation</strong> Center<br />

tasks.<br />

For more in<strong>for</strong>mation about scripting, see Developing with VMware <strong>vCenter</strong> <strong>Orchestrator</strong>.<br />

Example: Create a <strong>vCloud</strong> <strong>Automation</strong> Center model entity<br />

This example script per<strong>for</strong>ms <strong>the</strong> following actions.<br />

1 Defines <strong>the</strong> model name and <strong>the</strong> entity set name.<br />

2 Defines <strong>the</strong> properties of <strong>the</strong> host prefix.<br />

3 Saves <strong>the</strong> host prefix entity.<br />

4 Defines <strong>the</strong> properties of <strong>the</strong> provisioning group.<br />

5 Defines <strong>the</strong> provisioning group as a link.<br />

6 Saves <strong>the</strong> provisioning group entity, by linking it with <strong>the</strong> host name prefix.<br />

12 VMware, <strong>In</strong>c.

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!