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 decorator has methods like update()/delete()/actions etc.
On 04/05/2013 08:00 AM, Romil Gupta wrote: > 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_used > print disk_available > > > On Fri, Apr 5, 2013 at 2:04 AM, Gianluca Cecchi <[email protected] > <mailto:[email protected]>> wrote: > > 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 > > > > > -- > *Thanks & Regards,* > *Romil Gupta > M.Tech (CSE), Manipal > Intern@ HP ISO,Bangalore > Contact No. : 8880414133* -- Michael Pasternak RedHat, ENG-Virtualization R&D _______________________________________________ Users mailing list [email protected] http://lists.ovirt.org/mailman/listinfo/users

