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
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
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
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
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
5 matches
Mail list logo