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
What to do next
Define the Web view attributes that the vco:ListPane component requires.
Define the Web View Attributes for the vco:ListPane Component
The vco:ListPane component refers to Web view attributes that provide an action to obtain an array of
virtual machines from the server and the virtual machine folder from which to obtain them.
Prerequisites
You added the vco:ListPane component to the default.html Web view file.
Procedure
1 From the drop-down menu in the Orchestrator client, select Administer.
2 In the Web Views view, right-click the Virtual Machine Manager Web view and select Edit.
3 Click the Attributes tab in the Web view editor.
4 Right-click in the Attributes tab and select Add attribute.
5 Click the attribute name and type getVirtualMachineList.
6 Click the attribute Type link and select Action from the list.
7 Click the attribute Value link and search for and select the getAllVirtualMachinesByFolder action.
The getAllVirtualMachinesByFolder action returns an array of VC:VirtualMachine objects.
8 Right-click in the Attributes tab and select Add attribute to create the following Web view attribute:
n
Name: vmFolder
n
Type: VC:VmFolder
n
Value: a virtual machine folder that you select from the vCenter Server inventory
NOTE If you install the Virtual Machine Manager Web view from the Orchestrator samples bundle, you
must edit the vmFolder attribute to point to a virtual machine folder in your vCenter Server before you
publish the Web view.
9 Click Save and Close to exit the Web view editor.
10 Open the Virtual Machine Manager Web view in a browser at https://orchestrator_server:
8280/vco/vmo/
The Virtual Machine Manager Web view displays a list of virtual machines.
The Virtual Machine Manager Web view uses the getVirtualMachineList Web view attribute to obtain the
list of virtual machines from the virtual machine folder that the vmFolder attribute defines. However,
clicking on a virtual machine in the list returns an error, as you did not define how to obtain and display the
virtual machine information.
What to do next
Create a Web view component to obtain and display information about a virtual machine when you click it
in the list.
Developing Web Views for VMware vCenter Orchestrator
54 VMware, Inc.