4.1

Table Of Contents
Table 2-25. Bindings of the VM Snapshots Scriptable Task Element
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
vm
IN Bind
n
Local parameter: vm
n
Source parameter: vm[attribute]
n
Type: VC:VirtualMachine
n
Description:
An active virtual machine of
which to take a snapshot.
snapshotVmArray
IN Bind
n
Local parameter:
snapshotVmArray
n
Source parameter:
snapshotVmArray[attribute]
n
Type: Array/VC:VirtualMachine
n
Description:
The Array of virtual
machines of which snapshots
have been taken
snapshotVmArray
OUT Bind
n
Local parameter:
snapshotVmArray
n
Source parameter:
snapshotVmArray[attribute]
n
Type: Array/VC:VirtualMachine
n
Description:
The Array of virtual
machines of which snapshots
have been taken
The VM Snapshots scriptable task element performs the following scripted function.
//Writes the following event in the vCO database
Server.log("Successfully took snapshot of the VM '"+vm.name);
//Inserts the VM snapshot in an array
snapshotVmArray.push(vm);
Increment Scriptable Task Element
The Increment scriptable task element increments the counter that counts the number of virtual machines in
the array. Table 2-26 shows the bindings that the Increment scriptable task element requires.
vCenter Orchestrator Developer's Guide
102 VMware, Inc.