[Users] Query regarding storagedomins

Romil Gupta romilgupta19 at gmail.com
Fri Apr 5 05:00:51 UTC 2013


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 at 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*
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ovirt.org/pipermail/users/attachments/20130405/e694aa88/attachment-0001.html>


More information about the Users mailing list