Search

Method checkCompatibility_Task(VcVirtualMachine vm, VcHostSystem host, VcResourcePool pool, String[] testType)

Tests whether or not a virtual machine could be placed on the given host in the given resource pool.

Returns

VcTask

Arguments

Name Type Description
vm VcVirtualMachine The virtual machine we'd like to place.
host VcHostSystem The host we would like the virtual machine to execute on. The host parameter may be left unset if the compute resource associated with the pool represents a stand-alone host or a DRS-enabled cluster. In the former case the stand-alone host is used. In the latter case, each connected host in the cluster that is not in maintenance mode is tested. If the virtual machine is a template then either this parameter or the pool parameter must be set.
pool VcResourcePool The resource pool we would like the virtual machine to reside in. If the pool parameter is left unset, then the virtual machine's current pool is assumed. If the virtual machine is a template then either this parameter or the host parameter must be set.
testType String[] The set of tests to run. If this argument is not set, all tests will be run. See <a href="VcCheckTestType.html">VcCheckTestType</a> for possible values.