Re: [Users] Query regarding storagedomins

2013-04-07 Thread Michael Pasternak
Right, links in sdk entities are used only for convenient tracking of objects in api, sdk itself abstracts HTTP internals, and expose decorators for collections/entities where every collection decorator has list()/get()/add()/etc. methods for listing/querying/creating objects and entity's decor

Re: [Users] Query regarding storagedomins

2013-04-04 Thread Romil Gupta
Hi , Here is the sample code : sd =api.datacenters.get(id = datacenter_id).storagedomains.list() for s in sd: if(s.get_master()): disk_used =s.get_used() / (1024*1024*1024) disk_available = s.get_available() / (1024*1024*1024) print disk_u

Re: [Users] Query regarding storagedomins

2013-04-04 Thread Gianluca Cecchi
On Thu, Apr 4, 2013 at 9:35 PM, Romil Gupta wrote: > I solved it by myself , pls ignore this mail :) Would you like to share it? Thanks, Gianluca ___ Users mailing list Users@ovirt.org http://lists.ovirt.org/mailman/listinfo/users

Re: [Users] Query regarding storagedomins

2013-04-04 Thread Romil Gupta
I solved it by myself , pls ignore this mail :) On Thu, Apr 4, 2013 at 8:30 PM, Romil Gupta wrote: > Hi , > > *I want to fetch the storagedomains details based on the datacenter id > using ovirt-engine-sdk-3.2.0.2-1.* > > Datacenter details: > > > > href="/api/datacenters/e1165cdf-2c42-48a9-8

[Users] Query regarding storagedomins

2013-04-04 Thread Romil Gupta
Hi , *I want to fetch the storagedomains details based on the datacenter id using ovirt-engine-sdk-3.2.0.2-1.* Datacenter details: datacenter1 Default I want to know how I could get the storagedomains details using the above xml ? *_session = API(url=rhevm_uri, username=rhevm_user