Get Entities from vcac:virtualmachine object:
Use findAllforType (scroll right for full code):
var arrayOfVcacVM = Server.findAllForType("vCAC:VirtualMachine", "IsMissing eq true and IsManaged eq true");
Using readModelEntitiesByCustomFilter
(scroll right for full code):
var props = new Properties() props.put("IsMissing",true) var arrayOfManagedEntities = vCACEntityManager.readModelEntitiesByCustomFilter(host.id, "ManagementModelEntities.svc", "VirtualMachines", props, null);
Leave a Reply