AcquireSessionInfo
This sample will acquire a session with VC or ESX
and print a cim service ticket and related
session information to a file
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
host [required] : Name of the host
info [optional] : Type of info required
only [cimticket] for now
file [optional] : Full path of the file to save data to
Command Line:
run.bat com.vmware.general.Browser --url [webserviceurl]
--username [username] --password [password]
--host [hostname] --info [password] --file [path_to_file]
AddVirtualNic
This sample is used to add a Virtual Nic to a PortGroup
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
portgroupname [required] : Name of the port group
ipaddress [optional] : ipaddress for the nic, if not set DHCP
will be in affect for the nic
hostname [optional] : Name of the host
datacentername [optional] : Name of the datacenter
Command Line:
Add VirtualNic to a PortGroup on a Virtual Switch
run.bat com.vmware.host.AddVirtualNic --url [webserviceurl]
--username [username] --password [password]
--hostname [hostname] --datacentername [mydatacenter]
--portgroupname [myportgroup] --ipaddress [AAA.AAA.AAA.AAA]
Add VirtualNic to a PortGroup on a Virtual Switch without hostname
run.bat com.vmware.host.AddVirtualNic --url [webserviceurl]
--username [username] --password [password]
--datacentername [mydatacenter]
--portgroupname [myportgroup] --ipaddress [AAA.AAA.AAA.AAA]
Add VirtualNic to a PortGroup on a Virtual Switch without datacentername
run.bat com.vmware.host.AddVirtualNic --url [webserviceurl]
--username [username] --password [password]
--portgroupname [myportgroup] --ipaddress [AAA.AAA.AAA.AAA]
AddVirtualSwitch
This sample is used to add a virtual switch
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vswitchid [required]: Name of the switch to be added
hostname [required]: Name of the host
Command Line:
Add a Virtual Switch
run.bat com.vmware.host.AddVirtualSwitch --url [webserviceurl]
--username [username] --password [password] --hostname [hostname]
--vswitchid [mySwitch]
AddVirtualSwitchPortGroup
This sample is used to add a Virtual Machine Port Group to a vSwitch
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vswitchid [required] : Name of the vSwitch to add portgroup to
portgroupname [required] : Name of the port group
hostname [optional] : Name of the host
Command Line:
Add Virtual switch Port Group:
run.bat com.vmware.host.AddVirtualSwitchPortGroup
--url [webserviceurl] --username [username] --password [password]
--vswitchid [mySwitch] --portgroupname [myportgroup] --hostname [hostname]
Browser
This sample prints managed entity, its type, reference value,
property name, Property Value, Inner Object Type, its Inner Reference Value
and inner property value
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.general.Browser --url [webserviceurl]
--username [username] --password [password]
ColdMigration
This sample puts VM files in specified Datacenter and
Datastore and register and reconfigure the particular VM
Parameters:
url [required]: url of the web service.
Connect
This sample simply connects to an ESX server or to vCenter server
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.general.Connect --url [webserviceurl]
--username [username] --password [password]
Create
This sample creates managed entity like Host-Standalone Cluster
Datacenter, and folder
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
parentname [required] : specifies the name of the parent folder
itemtype [required] : Type of the object to be added
e.g.
Create() -
Constructor for class com.vmware.general.Create
Delete
This sample deletes the specified managed entity from the inventory tree
The managed entity can be a virtual machine, ClusterComputeResource or a Folder
Parameters
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
entityname [required] : Virtual Machine|ClusterComputeResource|Folder
Command Line:
To delete a folder named 'testFolder'
run.bat com.vmware.general.Delete --url [webserviceurl]
--username [username] --password [password] --entityname [testFolder]
To delete a datacenter named myData
run.bat com.vmware.general.Delete --url [webserviceurl]
--username [username] --password [password] --entityname [myData]
Delete() -
Constructor for class com.vmware.general.Delete
DeleteOneTimeScheduledTask
This sample demonstrates deleting a scheduled task
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
taskname [required] : name of the task to be deleted
Command Line:
run.bat com.vmware.scheduling.DeleteOneTimeScheduledTask
--url [webserviceurl] --username [username] --password [password]
--taskname [TaskToBeDeleted]
EventHistoryCollectorMonitor
This sample demonstrates how to create and monitor an EventHistoryCollector
This sample uses the latestPage property of the EventHistoryCollector
to filter the Events
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.vm.EventHistoryCollectorMonitor
--url [webserviceurl] --username [username] --password [password]
GetCurrentTime
This sample gets the current time of the vSphere Server
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.general.GetCurrentTime
--url [webservicesurl] --username [Username] --password [password]
GetHostName
This sample gets the hostname and additional details of the ESX Servers
in the inventory
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.general.GetHostName
--url [webservicesurl] --username [username] --password [password]
This sample demonstrates HostProfileManager and ProfileComplainceManager
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
sourcehostname [required] : Name of the host
entityname [required] : Attached Entity Name
entitytype [required] : Attached Entity Type
Command Line:
Create hostprofile given profileSourceHost (host system)
profileAttachEntity (host system), profileAttachEntityType (host system)
Applies config after attaching hostprofile to host system and check for compliance");
run.bat com.vmware.host.HostProfileManager --url [webserviceurl]");
--username [username] --password [password] --sourcehostname [host name]
--entityname [host name] --entitytype HostSystem
Create hostprofile given profileSourceHost (host system),
profileAttachEntity (cluster computer resource), profileAttachEntityType
(cluster compute resource)
Attaches hostprofile to all hosts in cluster and checks for compliance
run.bat com.vmware.host.HostProfileManager --url [webserviceurl]
--username [username] --password [password] --sourcehostname [host name]
--entityname [Cluster] --entitytype ClusterComputeResource
OneTimeScheduledTask
This sample demonstrates creation of ScheduledTask using the ScheduledTaskManager
Parameters:
url [required] : url of the web service.
PrintCounters
This sample writes available VM, Hostsystem or ResourcePool
perf counters into the file specified
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
entitytype [required] : Managed entity
[HostSystem|VirtualMachine|ResourcePool]
entityname [required] : name of the managed entity
filename [required] : Full path of filename to write to
Command Line:
Save counters available for a host
run.bat com.vmware.performance.PrintCounters
--url https://myHost.com/sdk
--username [user] --password [password] --entitytype HostSystem
--entityname myHost.com --filename myHostCounters
PropertyCollector
This sample illustrates the property collector features added in version 4.1
Parameters:
url [required] : url of the web service.");
username [required] : username for the authentication");
password [required] : password for the authentication");
extension [required] : Extension to be demonstrated [retrieveproperties |
updates | filterspec | propertycollector]
vmname [optional] : Name of the virtual machine
maxobjects [optional] : The maximum number of ObjectContent data objects
that should be returned in a single result
updatetype [optional] : waitforupdates | checkforupdates| extension
nooftasks [optional] : Number of tasks to be created
Command Line:
Retrieve Properties Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension retrieveproperties
--maxobjects [maxobjects]
Updates Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension updates
--vmname [vm name] --updatetype [waitforupdates | checkforupdates| extension]
Filter Spec Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension filterspec
--vmname [vm name] --noofTasks [Number of tasks to be created]
Property Collector Extension
run.bat com.vmware.general.PropertyCollector --url [webserviceurl]
--username [username] --password [password] --extension propertycollector
RealTime
This sample displays performance measurements from the current time
at the console
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : name of the vm
Command Line:
run.bat com.vmware.performance.RealTime
--url [webservice url] --username [user] --password [password]
--vmname [name of the vm]
This sample demonstrates Destroy or Unregister
Managed Inventory Object like a Host, VM, Folder, etc
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
objtype [required] : type of managedobject to remove or unregister");
e.g.
RemoveVirtualNic
This sample removes a Virtual Nic from a PortGroup on a vSwitch
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
portgroupname [required] : Name of port group to remove Virtual Nic from
hostname [required] : Name of host
datacentername [optional] : Name of datacenter
Command Line:
Remove a VirtualNic from a PortGroup
run.bat com.vmware.host.RemoveVirtualNic --url [webserviceurl]
--username [username] --password [password] --datacentername [mydatacenter]
--portgroupname [myportgroup] --hostname [hostname]
Remove a VirtualNic from a PortGroup without hostname
run.bat com.vmware.host.RemoveVirtualNic --url [webserviceurl]
--username [username] --password [password] --datacentername [mydatacenter]
--portgroupname [myportgroup]
Remove a VirtualNic from a PortGroup without datacentername
run.bat com.vmware.host.RemoveVirtualNic --url [webserviceurl]
--username [username] --password [password]
--portgroupname [myportgroup] --hostname [name of the host]
RemoveVirtualSwitch
This sample removes a virtual switch
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vswitchid [required] : Name of the switch to be added
hostname [required] : Name of the host
Command Line:
Remove a Virtual Switch
run.bat com.vmware.host.RemoveVirtualSwitch --url [webserviceurl]
--username [username] --password [password]
--vswitchid [mySwitch] --hostname [hostname]
RemoveVirtualSwitchPortGroup
This sample removes a Virtual Switch PortGroup
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
portgroupname [required] : Name of the port group to be removed
hostname [required] : Name of the host
Command Line:
Remove Virtual Switch Port Group
run.bat com.vmware.host.RemoveVirtualSwitchPortGroup
--url [webserviceurl] --username [username] --password [password]
--portgroupname[myportgroup] --hostname [hostname]
Rename
This sample demonstrates renaming a manged entity
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
entityname [required] : name of the inventory object - a managed entity
newname [required] : new name of the inventory object - a managed entity
Command Line:
Rename a virtual machine VM to new name VM2
run.bat com.vmware.general --url [webserviceurl]
--username [username] --password [password] --entityname VM
--newname VM2
Rename a resource pool named Rp to new name pool
java com.vmware.general --url [webserviceurl]
--username [username] --password [password] --entityname Rp
--newname pool
Rename() -
Constructor for class com.vmware.general.Rename
RunProgram
This sample runs a specified program inside a virtual machine with
output re-directed to a temporary file inside the guest and
downloads the output file.
SCSILunName
This sample displays the CanonicalName,Vendor,Model,Data,Namespace
and NamespaceId of the host SCSI LUN name
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
hostname [required] : host for which SCSI details will be displayed
Command Line:
run.bat com.vmware.scsilun.SCSILunName
--url [webserviceurl] --username [username] --password [password]
--hostname [host name]
SearchIndex
This sample demonstrates the SearchIndex API
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
dcname [required] : name of the datacenter
vmdnsname [optional] : Dns of a virtual machine
hostdnsname [optional] : Dns of the ESX host
vmpath [optional] : Inventory path of a virtual machine
vmip [optional] : IP Address of a virtual machine
Command Line:
Run the search index with dcName myDatacenter
run.bat com.vmware.general.SearchIndex --url [webserviceurl]
--username [username] --password [password] --dcName myDatacenter
Run the search index with dcName myDatacenter and vmpath to virtual machine named Test
run.bat com.vmware.general.SearchIndex --url [webserviceurl]
--username [username] --password [password] --dcName myDatacenter
--vmpath //DatacenterName//vm//Test
Run the search index with dcName myDatacenter and hostdns 'abc.bcd.com'
run.bat com.vmware.general.SearchIndex --url [webserviceurl]
--username [username] --password [password]
--dcName myDatacenter --hostDns abc.bcd.com
Run the search index with dcName myDatacenter and ip of the vm as 111.123.155.21
run.bat com.vmware.general.SearchIndex --url [webserviceurl]
--username [username] --password [password]
--dcName myDatacenter --vmIP 111.123.155.21
SimpleAgent
The SimpleAgent class uses the local credential store to obtain user account
and password information, for automated logon to the target host system.
SimpleClient
This sample lists the inventory contents (managed entities)
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.general.SimpleClient
--url [webserviceurl] --username [username] --password [password]
TaskList
This sample prints out a list of tasks if any are running
The sample display the tasks in the following format:
Operation:
Name:
Type:
State:
Error:
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
Command Line:
run.bat com.vmware.general.TaskList --url [webserviceurl]
--username [username] --password [password]
VITop
This sample is an ESX-Top-like application that lets administrators specify
the CPU and memory counters by name to obtain metrics for a specified host
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
host [required] : name of the host
cpu [required] : CPU counter name
e.g.
VITop() -
Constructor for class com.vmware.performance.VITop
VIUsage
This sample creates a GUI for graphical representation of the counters
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
host [required] : Name of the host
counter [required] : Full counter name in dotted notation
(group.counter.rollup)
e.g.
VIUsage() -
Constructor for class com.vmware.performance.VIUsage
VMClone
This sample makes a template of an existing VM and
deploy multiple instances of this template onto a datacenter
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
datacentername [required] : name of Datacenter
vmpath [required] : inventory path of the VM
clonename [required] : name of the clone
Command Line:
java com.vmware.vm.VMClone --url [webserviceurl]
--username [username] --password [password]
--datacentername [DatacenterName]"
--vmpath [vmPath] --clonename [CloneName]
VMCreate
This sample creates a VM
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : Name of the virtual machine
datacentername [required] : Name of the datacenter
hostname [required] : Name of the host
guestosid [optional] : Type of Guest OS
cpucount [optional] : Total cpu count
disksize [optional] : Size of the Disk
memorysize [optional] : Size of the Memory in 1024MB blocks
datastorename [optional] : Name of dataStore
Command Line:
Create a VM given datacenter and host names
run.bat com.vmware.vm.VMCreate --url [webserviceurl]
--username [username] --password [password] --vmname [vmname]
--datacentername [DataCenterName] --hostname [hostname]
Create a VM given its name, Datacenter name and GuestOsId
run.bat com.vmware.vm.VMCreate --url [webserviceurl]
--username [username] --password [password] --vmname [vmname]
--datacentername [DataCenterName] --guestosid [GuestOsId]
Create a VM given its name, Datacenter name and its cpucount
run.bat com.vmware.vm.VMCreate --url [webserviceurl]
--username [username] --password [password] --vmname [vmname]
--datacentername [DataCenterName] --cpucount [cpucount]
VMDeltaDisk
This sample creates a delta disk on top of an existing virtual disk in a VM,
and simultaneously removes the original disk using the reconfigure API.
VMDiskCreate
This sample demonstrates how to create a virtual disk
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : Name of the virtual machine
datastorename [optional] : name of the DataStore
disksize [required] : Size of the virtual disk in MB
disktype [optional] : Virtual Disk Type
[thin | preallocated | eagerzeroed | rdm | rdmp]
persistence [optional] : Persistence mode of the virtual disk
[persistent | independent_persistent | independent_nonpersistent]
devicename [optional] : Canonical name of the LUN to use for disk types
Command Line:
VMDiskCreate --url [webserviceurl]
--username [username] --password [password]
--vmname [vmname] --disksize [8]
--disktype [thin | preallocated | eagerzeroed | rdm | rdmp]
--persistence [persistent | independent_persistent | independent_nonpersistent]
--devicename vmhba0:0:0:0
VMEventHistoryCollectorMonitor
This sample is responsible for creating EventHistoryCollector
filtered for a single VM and monitoring Events using the
latestPage attribute of the EventHistoryCollector.
VMLinkedClone
This sample creates a linked clone from an existing snapshot
Each independent disk needs a DiskLocator with
diskmovetype as moveAllDiskBackingsAndDisallowSharing
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : Name of the virtual machine
snapshotname [required] : Name of the snaphot
clonename [required] : Name of the cloneName
Command Line:
Create a linked clone
run.bat com.vmware.vm.VMLinkedClone --url [webserviceurl]
--username [username] --password [password] --vmname [myVM]
--snapshotname [snapshot name] --clonename [clone name]
VMManageCD
This sample adds / removes CDROM to / from an existing VM
This sample lists information about a VMs CDROMs
This sample updates an existing CDROM a VM
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : name of the virtual machine
operation [required] : operation type - [get|add|remove|set]
isopath [optional] : full datastore path to the iso file
remote [optional] : Specify the device is a remote or client device or iso
startconnected [optional] : virtual CD starts connected when VM powers on
connect [optional] : virtual CD is connected after creation or update
Set only if VM is powered on
label [optional] : used to find the device.key value
devicename [optional] : Specify the path to the CD on the VM's host
Command Line:
Get CD-Rom Info");
run.bat com.vmware.vm.VMManageCD
--url [webserviceurl] --username [username] --password [password]
--operation get --vmname [Virtual Machine Name]
Add CD-Rom
run.bat com.vmware.vm.VMManageCD
--url --username [username] --password [password]
--operation add --vmname [Virtual Machine Name]
--isoPath "[datastore1] test.iso" --remote false --connect true
Remove CD-Rom
run.bat com.vmware.vm.VMManageCD
--url [webserviceurl] --username [username] --password [password]
--operation remove --vmname [Virtual Machine Name]
--label CD\\DVD Drive 1
Reconfigure CD-Rom
run.bat com.vmware.vm.VMManageCD
--url [webserviceurl] --username [username] --password [password]
--operation set --vmname [Virtual Machine Name]
--label CD\\DVD Drive 1 --connect false
VMManageFloppy
This sample adds / removes floppy to / from an existing VM
This sample lists information about a VMs Floppies
This sample updates an existing floppy drive on a VM
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : name of the virtual machine
operation [required] : operation type - [get|add|remove|set]
imgpath [optional] : path of image file
remote [optional] : device is a remote or client device or iso
startconnected [optional] : virtual floppy starts connected on VM poweron
connect [optional] : virtual floppy is connected
Set only if the VM is powered on
label [optional] : used to find the device.key value
device [optional] : path to the floppy on the VM's host
Command Line:
Get Floppy Info");
run.bat com.vmware.vm.VMManageFloppy
--url [webserviceurl] --username [username] --password [password]
--operation get --vmname [Virtual Machine Name]
Add Floppy
run.bat com.vmware.vm.VMManageFloppy
--url [webserviceurl] --username [username] --password [password]
--operation add --vmname [Virtual Machine Name]
--imgpath test.flp --remote false --connect true
Remove Floppy
run.bat com.vmware.vm.VMManageFloppy
--url [webserviceurl] --username [username] --password [password]
--operation remove --vmname [Virtual Machine Name]
--label Floppy Drive 1
Reconfigure Floppy
run.bat com.vmware.vm.VMManageFloppy
--url [webserviceurl] --username [username] --password [password]
--operation set --vmname [Virtual Machine Name]
--label Floppy Drive 1 --connect false
VMotion
Used to validate if VMotion is feasible between two hosts or not,
It is also used to perform migrate/relocate task depending on the data given
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : name of the virtual machine
targethost [required] : Name of the target host
sourcehost [required] : Name of the host containing the virtual machine
targetpool [required] : Name of the target resource pool
targetdatastore [required] : Name of the target datastore
priority [required] : The priority of the migration task:-
defaultPriority, highPriority,lowPriority
state [optional]
Command Line:
run.bat com.vmware.vm.VMotion --url [URLString] --username [User] --password [Password]
--vmname [VMName] --targethost [Target host] --sourcehost [Source host] --targetpool [Target resource pool]
--targetdatastore [Target datastore] --priority [Migration task priority] --state
VMPowerOps
Demonstrates VirtualMachine Power operations
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
operation [required] : type of the operation
[poweron | poweroff | reset | suspend |
reboot | shutdown | standby]
datacentername [optional] : name of the datacenter
guestid [optional] : guest id of the vm
hostname [optional] : name of the host
vmname [optional] : name of the virtual machine
Command Line:
run.bat com.vmware.vm.VMPowerOps --url [URLString] --username [User] --password [Password]
--operation [Operation] --datacenter [DatacenterName]--guestid [GuestId] --hostname [HostName]
--vmname [VMName]
VMPowerStateAlarm
This sample which creates an Alarm to monitor the virtual machine's power state
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : Name of the virtual machine
alarm [required] : Name of the alarms
Command Line:
Create an alarm AlarmABC on a virtual machine
run.bat com.vmware.vm.VMPowerStateAlarm --url [webserviceurl]
--username [username] --password [password] --vmname [vmname] --alarm [alarm]
VMRelocate
Used to relocate a linked clone using disk move type
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : name of the virtual machine
diskmovetype [required] : Either of
[moveChildMostDiskBacking | moveAllDiskBackingsAndAllowSharing]
datastorename [required] : Name of the datastore
Command Line:
run.bat com.vmware.vm.VMRelocate --url [URLString] --username [User] --password [Password]
--vmname [VMName] --diskmovetype [DiskMoveType] --datastorename [Datastore]
WeeklyRecurrenceScheduledTask
This sample demonstrates creation of weekly recurring ScheduledTask
using the ScheduledTaskManager
Parameters:
url [required] : url of the web service
username [required] : username for the authentication
password [required] : password for the authentication
vmname [required] : virtual machine to be powered off
taskname [required] : Name of the task to be created
Command Line:
run.bat com.vmware.scheduling.WeeklyRecurrenceScheduledTask
--url [webserviceurl] --username [username] --password [password]
--vmname [VM name] --taskname [TaskToBeCreated]