4.1

Table Of Contents
if (vmDisksModes[i].charAt(0)=="i") {
containsIndependentDisks = true;
}
}
} else {
//if no disk found no need to try to snapshot the VM
System.warn("Won't snapshot '"+vm.name+"', no disks found");
return false;
}
if (containsIndependentDisks) {
System.warn("Won't snapshot '"+vm.name+"', independent disk(s) found");
return false;
} else {
System.log("Snapshoting '"+vm.name+"'");
return true;
}
Create a snapshot Workflow Element
The Create a snapshot workflow element takes snapshots of virtual machines. Table 2-24 shows the bindings
that the Create a snapshot workflow element requires.
Table 2-24. Bindings of the Create a snapshot Workflow 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.
name
IN Create
n
Local parameter: name
n
Source parameter:
snapshotName[attribute]
n
Type: string
n
Description:
The name for this snapshot.
The name does not need to be
unique for this virtual
machine.
description
IN Create
n
Local parameter: description
n
Source parameter:
snapshotDescription[attribute]
n
Type: string
n
Description:
A description for this
snapshot.
vCenter Orchestrator Developer's Guide
100 VMware, Inc.