5.1

Table Of Contents
Procedure
1 Enter the name or part of a name of an object in the API Explorer Search text box and click Search.
To limit your search to a particular object type, uncheck or check the Scripting Class, Attributes &
Methods and Types & Enumerations check boxes.
2 Double-click the element in the proposed list.
The object is highlighted in the hierarchical list on the left. A documentation pane under the hierarchical
list presents information about the object.
You found the object you were looking for.
What to do next
Use the objects you find in scripts.
JavaScript Objects in the API Explorer
The Orchestrator API Explorer identifies and groups together the different kinds of JavaScript objects in the
hierarchical tree on the left of the Scripting tab or API Explorer dialog box. The API Explorer uses icons to
help you identify the different kinds of object.
The following table describes the objects of the Orchestrator API and shows their icon.
Table 2-1. JavaScript Objects in the Orchestrator API
Object Icon in Hierarchical List Description
Type Types
Function set Internal type that contains a set of static
methods
Primitive Primitive types
Object Standard Orchestrator scripting objects
Attribute JavaScript attributes
Method JavaScript methods
Constructor JavaScript constructors
Enumeration JavaScript enumerations
String set String set, default values
Module A collection of actions
Plug-in Image that plug-in defines The APIs that plug-ins expose to
Orchestrator
Writing Scripts
The Orchestrator scripting engine helps you to write scripts. Automatic insertion of functions and automatic
completion of lines of scripting accelerates the scripting process and minimizes the potential for writing errors
in scripts.
Prerequisites
A scripted element is open for editing and its Scripting tab is open.
Chapter 2 Scripting
VMware, Inc. 121