Different ways to use odata searches for VCAC:VirtualMachine and VCAC:Entity

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);

Posted

in

, , , ,

by

Tags:

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *