You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Trying to figure out how to get information about the host for a given virtual machine.
Tried: $virtualMachines = $vhost->findAllManagedObjects('VirtualMachine', array('parent', 'name', 'guest'));
but accessing $vm->parent or $vm->host or $vm->hostSystem doesn't get me to the eSXI machine running the vm.
Tried: $hosts = $vhost->findAllManagedObjects('HostSystem', array('name')); foreach($hosts as $host){ echo '<h1>'.$host->name.'</h1>'; var_dump($host->findAllManagedObjects('VirtualMachine', array('parent', 'name', 'guest')); }
But it doesn't look like running 'findAllManagedObjects' on the host is supported
The text was updated successfully, but these errors were encountered:
Trying to figure out how to get information about the host for a given virtual machine.
Tried:
$virtualMachines = $vhost->findAllManagedObjects('VirtualMachine', array('parent', 'name', 'guest'));
but accessing $vm->parent or $vm->host or $vm->hostSystem doesn't get me to the eSXI machine running the vm.
Tried:
$hosts = $vhost->findAllManagedObjects('HostSystem', array('name')); foreach($hosts as $host){ echo '<h1>'.$host->name.'</h1>'; var_dump($host->findAllManagedObjects('VirtualMachine', array('parent', 'name', 'guest')); }
But it doesn't look like running 'findAllManagedObjects' on the host is supported
The text was updated successfully, but these errors were encountered: