5.5.1

Table Of Contents
Access the Scripting Engine from the Action or Policy Editor
The Orchestrator scripting engine uses the Mozilla Rhino JavaScript engine to help you write scripts for
actions or policies. You access the scripting engine for actions and policies from the Scripting tabs in the
action and policy editors.
Procedure
1 Select an option from the drop-down menu in the Orchestrator client, depending on the type of the
element whose scripting you want to edit.
Option Description
Design
Select this option to edit the scripting of an action element.
Run
Select this option to edit the scripting of a policy.
2 Right-click an action or policy in the Actions or Policies views and select Edit.
3 Click the Scripting tab in the action or policy editor.
You accessed the scripting engine to define the scripted functions of action or policy elements. The Scripting
tab allows you to navigate through the API, consult documentation about the objects, search for objects, and
write JavaScript.
What to do next
Search the Orchestrator API using the API Explorer.
Access the Orchestrator API Explorer
Orchestrator provides an API Explorer that you can use to search the Orchestrator API and see the
documentation for JavaScript objects that you can use in scripted elements.
You can consult an online version of the Scripting API for the vCenter Server plug-in on the Orchestrator
documentation home page.
Procedure
1 Log in to the Orchestrator client.
2 Select Tools > API Explorer.
The API Explorer appears. You can use it to search all the objects and functions of the Orchestrator API.
What to do next
Use the API Explorer to write scripts for scriptable elements.
Use the Orchestrator API Explorer to Find Objects
The Orchestrator API exposes the API of all plugged-in technologies, including the entire vCenter Server
API. The Orchestrator API Explorer helps you find the objects you need to add to scripts.
Prerequisites
Open the API Explorer.
Developing with VMware vCenter Orchestrator
126 VMware, Inc.