vRO
Get resource pool from vC:Virtualmachine
/**
* @param {vc:VirtualMachine} vcVm – The virtaul machine of vCenter.
*/
resourcePool = vcVm.runtime.host.parent.resourcePool;
/**
* @param {vc:VirtualMachine} vcVm – The virtaul machine of vCenter.
*/
resourcePool = vcVm.runtime.host.parent.resourcePool;