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
Accessing Server Objects from URLs 7
You can add URLs to Web view pages to access objects in the Orchestrator server, without having to
implement a Web view component. For example, you can add URLs to Web view pages that run an action
in the Orchestrator server or URLs that retrieve resource elements from the Orchestrator server.
n
Running Actions from URLs on page 43
Running actions from URLs rather than by implementing Web view components allows you to run
operations directly in the Orchestrator server without requiring any input parameters from the Web
view user. Running actions from URLs also allows you to define how to process the action results.
n
Accessing Resource Elements from URLs on page 45
Workflows and Web views can require as attributes objects that you create independently of
Orchestrator. To use external objects as attributes in workflows or Web views, you import them into
the Orchestrator server as resource elements.
Running Actions from URLs
Running actions from URLs rather than by implementing Web view components allows you to run
operations directly in the Orchestrator server without requiring any input parameters from the Web view
user. Running actions from URLs also allows you to define how to process the action results.
When you run a workflow from a Web view component, the Web view prompts you for input parameters
before it runs. Web view components also apply formatting to any data they receive from the server. If you
retrieve objects from the server from a URL rather than from a Web view component, you can apply your
own formatting or processing to the data that the URL retrieves.
For example, certain actions return JavaScript Object Notation (JSON) data. If you call such an action from a
URL in a Web view, you can write Ajax functions to process and format the action results. Similarly, if the
action returns an object from the Orchestrator server, you can write JavaScript functions to act on this object
in the Web view.
To run an action from a URL in a Web view, you must declare that action as a Web view attribute and
reference the attribute in the URL.
Web views access actions that you have defined as Web view attributes at the following URL:
https://orchestrator_server:8280/vco/vmo/web_view_url_folder/system/execute/action/action.html?
action=action_attribute_name
To avoid hard-coding the orchestrator_server address into the URL, you can provide relative paths to the
action that start from the directory below the Web view URL folder, as the following path shows:
<a href="./system/execute/action/action.html?action=attribute_name"></a>
VMware, Inc.
43