4.1

Table Of Contents
getVMDisksModes Action Element
The getVMDisksModes action element obtains the modes of the disks running in a virtual machine. Table 2-22
shows the bindings that the getVMDisksModes action element requires.
Table 2-22. Bindings of the getVMDisksModes Action 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:
The current virtual machine
having a snapshot taken
actionResult
OUT Create
n
Local parameter: actionResult
n
Source parameter:
vmDisksModes[attribute]
n
Type: Array/String
n
Description:
The current Disks Modes of
the virtual machine
errorCode
Exception Create Local parameter: errorCode
Create Snapshot? Custom Decision Element
The Create Snapshot? custom decision element determines whether to take snapshots of virtual machines,
depending on the disk modes of the virtual machines. Table 2-23 shows the bindings that the Create Snapshot?
custom decision element requires.
Table 2-23. Bindings of the Create Snapshot? Decision Element
Parameter Name Binding Type
Bind to Existing
or Create
Parameter? Binding Values
vmDisksMode
IN Bind
n
Local parameter: vmDisksMode
n
Source parameter:
vmDisksMode[attribute]
n
Type: Array/String
n
Description:
The current Disks Modes of
the virtual machine
vm
IN Bind
n
Local parameter: vm
n
Source parameter: vm[attribute]
n
Type: VC:VirtualMachine
n
Description:
The current virtual machine
having a snapshot taken
The Create Snapshot? custom decision element custom decision element performs the following scripted
function.
//A snapshot cannot be taken if one of its disks is in independent mode
// (independent-persistent or independent-nonpersistent)
var containsIndependentDisks = false;
if (vmDisksModes!=null && vmDisksModes.length>0) {
for (i in vmDisksModes) {
Chapter 2 Developing Workflows
VMware, Inc. 99