4.0

Table Of Contents
4 Click the attribute name and type getVirtualMachineList.
5 Click the attribute Type link and select Action from the list.
6 Click the attribute Value link and search for and select the getAllVirtualMachinesByFolder action.
The getAllVirtualMachinesByFolder action returns an array of VC:VirtualMachine objects.
7 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.
8 Click Save and Close to exit the Web view editor.
9 Open the Virtual Machine Manager Web view in a browser at http://
<orchestrator_server>
:
8280/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.
Create a Web View Component to Display Virtual Machine Information
The vmo:ListPane component lists virtual machines in the left side of the Web view. You can create a Web view
component to show information about each virtual machine in a Web view panel on the right side.
The Web view panel that displays the virtual machine information requires a Web view component that obtains
information from the objects that the vmo:ListPane component lists and displays the information on the right.
The Web view component that obtains object properties implements the WebObjectComponent class.
Prerequisites
You added a vmo:ListPane component to the default.html file, and defined the Web view attributes that the
component requires.
Procedure
1 Create a file called panel.html, and save it at the root of your working folder.
2 Add a title to the panel.html file.
<h3>Virtual Machine Information</h3>
3 Create a Web view component specification file called DisplayVmInfo.jwc in the \components folder.
vCenter Orchestrator Developer's Guide
320 VMware, Inc.