Professional Documents
Culture Documents
1. Versions
Version
Date
0.2.1
User
Nov 6, 2013
Internal
Comment
Current version:0.2.1
2. Inputs
Name
Type
Description
folder*
VC:VmFolder
name*
string
vm*
VC:VirtualMachine
powerOn*
boolean
template*
boolean
datastore*
VC:Datastore
host
VC:HostSystem
pool
VC:ResourcePool
doSysprep
boolean
Page
clientName*
Type
string
Description
productId*
string
joinDomain
string
joinWorkgroup
string
domainAdmin*
string
domainAdminPassword*
string
licenseMode*
licenseUsers*
number
Page
newAdminPassword*
Type
string
Description
inTimezone*
Enums:MSTimeZone
network
VC:Network
dnsServerList
Array/string
dnsDomain
string
dhcp*
boolean
gateway
Array/string
ipAddress
string
macAddress
string
netBIOS
primaryWINS
Windows
string
secondaryWINS
string
Page
subnetMask
Type
string
Description
orgName*
string
Organization name
fullName*
string
*Parameter is mandatory
3. Outputs
Name
newVM
Type
VC:VirtualMachine
Description
4. Attributes
Name
Type
Description
task
VC:Task
Task to await
progress
boolean
pollRate
number
spec
Any
location
Any
customization
Any
globalIPSettings
Any
Page
identity
Type
Any
Description
nicSettingMaps
Array/Any
options
Any
Optional operations
(VimCustomizationOptions:
LinuxOptions or WinOptions)
autoLogon
boolean
timeZone
number
adapterMapping
Any
startVm
boolean
tempNewVm
VC:VirtualMachine
pollingRate
number
timeout
number
sourceVirtualEthernetCa Any
rd
template defines
Page
virtualEthernetCard
Type
Description
Any
config
Any
deviceChange
Array/Any
addNumberToName
boolean
nicPosition
number
targetDatastore
VC:Datastore
templateAttr
boolean
5. Parameter
Parameter
vm
presentation
Description
Virtual machine to
Parameter Info
clone
name
virtual machine
template
virtual machine as
a template
powerOn
virtual machine
pool
Resource pool
Page
Description
host
Host
folder
Virtual machine
Parameter Info
folder
datastore
Datastore in which
to store the
virtual machine. If
not specified, the
current datastore
is used
fullName
orgName
Organization name
doSysprep
newAdminPassword
New local
administrator
password
inTimezone
newly created
virtual machine
productId
Windows key
(ignored if
template key is
VLK)
Page
licenseMode
Description
Server licensing
mode
licenseUsers
Number of licenses
(only if License
Parameter Info
mode = PerServer)
joinDomain
joinWorkgroup
Workgroup name to
join
domainAdmin
authentication if
the virtual machine
is joining a domain
domainAdminPassword Password string to
access the domain
macAddress
network
GetAction("com.vmware.library.vc.vm
.network","getNetworkForGivenNic").
call( #vm , 1.0)
dhcp
to configure the
virtual network
adapter
ipAddress
Fixed valid IP
address
subnetMask
Page
gateway
Description
Parameter Info
List of gateways,
in order of
preference
dnsDomain
dnsServerList
netBIOS
primaryWINS
The IP address of
the primary WINS
server
secondaryWINS
The IP address of
the secondary WINS
server
6. Workflow
schema
Page
7. Workflow
Name
checkVMwareI
items
Type
WorkflowItemTask
nput
vim3WaitTask
Next item
Set start
vm?
WorkflowItemTask
Set ouput vm
End
cloneVM
Description
WorkflowItemTask
vim3WaitTask
End
getCloneSpec
WorkflowItemTask
cloneVM
Page
10
Get Windows
Type
WorkflowItemLink
Customizatio
Next item
Description
Get 1 Nic
Setting Map
n (Sysprep)
getRelocateS
WorkflowItemTask
pec
getCustomiza
er
WorkflowItemTask
tionSpec
getCustomiza
getNicByNumb
getRelocateS
pec
WorkflowItemTask
Get Windows
tionGlobalIP
Customizatio
Settings
n (Sysprep)
Get 1 Nic
WorkflowItemLink
WorkflowItemTask
getCustomiza
Setting Map
Nic -> Nic[]
tionSpec
Get Timezone
WorkflowItemTask
in Number
getCustomiza
tionGlobalIP
Settings
Set start
WorkflowItemTask
vm?
Template?
Set ouput vm
Get Timezone
in Number
WorkflowItemGeneri Mark as
cCondition
Template
WorkflowItemTask
Template?
WorkflowItemEnd
Do sysprep?
WorkflowItemGeneri vim3WaitDnsN
cCondition
ameInTools
WorkflowItemEnd
Power on?
WorkflowItemGeneri
cCondition
WorkflowItemEnd
WorkflowItemEnd
Page
11
Get a
Type
WorkflowItemLink
Next item
Description
Get Device[]
VirtualEther
netCard to
change the
network
Nic found?
Get Device[]
WorkflowItemGeneri Network
cCondition
defined
WorkflowItemTask
getConfigSpe
cSimple
getConfigSpe
WorkflowItemTask
getCloneSpec
cSimple
vim3WaitDnsN
WorkflowItemTask
Power on?
ameInTools
getNicByNumb
WorkflowItemTask
er
Nic found?
Shutdown
WorkflowItemLink
guest OS and
wait
Page
12
Type
Next item
Network
WorkflowItemGeneri Get a
defined
cCondition
Description
VirtualEther
netCard to
change the
network
Set
WorkflowItemTask
datastore if
checkVMwareI
nput
null
Mark as
WorkflowItemLink
Template
8. Source
Mark an existing VM as a
template, preventing it to start
8.1. checkVMwareInput
//Auto generated script, cannot be modified !
System.getModule("com.vmware.library.vc.vm.spec").checkVMwareInput(vm,folder,datastore,hos
t,pool) ;
8.2. vim3WaitTaskEnd
//Auto generated script, cannot be modified !
actionResult =
System.getModule("com.vmware.library.vc.basic").vim3WaitTaskEnd(task,progress,pollRate) ;
8.3. cloneVM
//Auto generated script, cannot be modified !
actionResult = System.getModule("com.vmware.library.vc.vm").cloneVM(vm,folder,name,spec) ;
8.4. getCloneSpec
//Auto generated script, cannot be modified !
actionResult =
System.getModule("com.vmware.library.vc.vm.spec").getCloneSpec(config,customization,locati
on,powerOn,template) ;
8.5. getRelocateSpec
Page
13
8.6. getCustomizationSpec
//Auto generated script, cannot be modified !
actionResult =
System.getModule("com.vmware.library.vc.vm.spec").getCustomizationSpec(globalIPSettings,id
entity,nicSettingMap,options) ;
8.7. getCustomizationGlobalIPSettings
//Auto generated script, cannot be modified !
actionResult =
System.getModule("com.vmware.library.vc.vm.spec").getCustomizationGlobalIPSettings(dnsServ
erList,dnsSuffixList) ;
Page
14
8.13. getConfigSpecSimple
//Auto generated script, cannot be modified !
actionResult =
System.getModule("com.vmware.library.vc.vm.spec").getConfigSpecSimple(deviceChange,files,f
lags,memoryMB,name,numCPUs) ;
8.14. vim3WaitDnsNameInTools
//Auto generated script, cannot be modified !
System.getModule("com.vmware.library.vc.vm.tools").vim3WaitDnsNameInTools(vm,pollingRate,d
nsNameToWait,timeout,addNumberToName) ;
8.15. getNicByNumber
//Auto generated script, cannot be modified !
actionResult =
System.getModule("com.vmware.library.vc.vm.network").getNicByNumber(vm,nicPosition) ;
Page
15