5.5.1

Table Of Contents
Table 121. Bindings of the Create a snapshot Workflow Element (Continued)
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
snapshot
OUT Create
n
Local parameter: snapshot
n
Source parameter: NULL
n
Type:
VC:VirtualMachineSnapshot
n
Description:
The snapshot taken.
errorCode
Exception Create
Local parameter: errorCode
VM Snapshots Scriptable Task Element
The VM Snapshots scriptable task element adds the snapshots to an array. The following table shows the
bindings that the VM Snapshots scriptable task element requires.
Table 122. 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);
Developing with VMware vCenter Orchestrator
116 VMware, Inc.