5.5
Table Of Contents
- Developing Web Views for VMware vCenter Orchestrator
- Contents
- Developing Web Views for VMware vCenter Orchestrator
- Web View Overview
- Weboperator Web View
- Web View Development Tasks to Perform in Orchestrator
- Create a Web View Skeleton
- Export a Web View as a Template
- Create a Web View from a Template
- Define a Web View Template as a Resource Element
- Create a Web View from a Resource Element Template
- Export Web View Files to a Working Folder
- Configure the Server for Web View Development
- Import Web View Files from a Working Folder
- Create a Web View Attribute
- Add a Resource Element to a Web View
- Disable Web View Development Mode
- Publish a Web View
- File Structure of a Web View
- Web View Home Page
- Web View Components
- Tapestry Web View Components
- Creating Tapestry Web View Components
- Orchestrator Tapestry Component Library
- vco:DisplayProperty Component
- vco:IfMemberOf Component
- vco:IncludeJavascript Component
- vco:IncludeStylesheet Component
- vco:IncludeWorkflowHeader Component
- vco:ListPane Component
- vco:Login Component
- vco:PageAccessControl Component
- vco:TaskAction Component
- vco:WebformContainer Component
- vco:WorkflowLink Component
- Accessing Server Objects from URLs
- Create a Simple Web View Using the Default Template
- Import the Default Web View Template
- Export the Virtual Machine Manager Web View to a Working Folder
- Provide Unique Component Names
- Configure the Server for Web View Development
- Edit the Virtual Machine Manager Web View Home Page
- Add a vco:ListPane Component to the Web View Home Page
- Define the Web View Attributes for the vco:ListPane Component
- Create a Web View Component to Display Virtual Machine Information
- Create a Web View Tab by Using the Menu Component
- Add Links to Run Workflows from a Web View by Using the vco:WorkflowLink Component
- Customize the Web View Interface
- Publish the Virtual Machine Manager Web View
- Index
Procedure
1 Open the runWorkflows.html file in an HTML editor.
2 Add a reference to the vco:WorkflowLink component to the runWorkflows.html file.
<vco jwcid="@layout/VMMBorder" section="literal: home" title="Run Workflows">
<p style="margin-left: 16px; margin-top: 5px; margin-bottom: 5px;">
Click a workflow to run it.</p>
<ul>
<li>
<a jwcid="@vco:WorkflowLink" workflow="createVM" isDialog="true">
Create simple virtual machine</a>
</li>
</ul>
</vco>
When you set the isDialog property to true, a dialog box appears in which users provide input
parameters to run the workflow.
The workflow property refers to a Web view attribute called createVM that you create in the Orchestrator
client.
3 In the Web Views view in the Orchestrator client, right-click the Virtual Machine Manager Web view
and select Edit.
4 Right-click in the Attributes tab in the Web view editor and select Add attribute.
5 Click the attribute name and type createVM.
6 Click the attribute Type link and select Workflow from the list.
7 Click the attribute Value link and search for and select the Create simple virtual machine workflow.
8 Click Save and Close to exit the Web view editor.
9 Open the Virtual Machine Manager Web view in a browser at https://orchestrator_server:
8280/vco/vmo/.
10 Click the Create simple virtual machine link in the Workflows tab.
A Web form opens in the browser to allow users to enter parameters to create a virtual machine.
11 (Optional) Add more links to start workflows by adding more vco:WorkflowLink references to
runWorkflows.html.
For example, add the following vco:WorkflowLink references:
<li><a jwcid="@vco:WorkflowLink" workflow="cloneVM" isDialog="true">
Clone a virtual machine
</a></li>
<li><a jwcid="@vco:WorkflowLink" workflow="snapVM" isDialog="true">
Take a snapshot of all virtual machines in a resource pool
</a></li>
<li><a jwcid="@vco:WorkflowLink" workflow="removeSnaps" isDialog="true">
Remove virtual machine snapshots of a given size
</a></li>
<li><a jwcid="@vco:WorkflowLink" workflow="thickToThin" isDialog="true">
Convert a virtual disk from thick to thin provisioning
Developing Web Views for VMware vCenter Orchestrator
58 VMware, Inc.