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 <gianluca.cecchi@gmail.com> 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