Hi, #openstack hypervisor list +----+-------------------------------------+ | ID | Hypervisor Hostname | +----+-------------------------------------+ | 1 | xxxxxxx.ptx.axway.int | +----+-------------------------------------+ #
#python test2.py Hypervisors: [<Hypervisor: 1>] ..... Now, I've to add the Hypervisor hostname display . Thx for help. Regards, J.P. From: Tobias Urdin [mailto:[email protected]] Sent: mardi 7 juin 2016 16:44 To: Jean-Pierre Ribeauville Cc: [email protected] Subject: Re: [Openstack] Using Python SDK to retrieve cloud topology Hello Jean-Pierre, Yes you can. You can gather or control all parts of OpenStack using the REST API:s Best regards #!/usr/bin/env python from novaclient import client nova = client.Client(2, "adminuser", "passwordhere", "adminproject", "http://controller:35357/v2.0"<http://controller:35357/v2.0>) print "Hypervisors:" print nova.hypervisors.list() print "Aggregates:" print nova.aggregates.list() print "Availability zones:" print nova.availability_zones.list() On 06/07/2016 04:16 PM, Jean-Pierre Ribeauville wrote: Hi, By using OpenStack Python SDK, is it possible to retrieve such things as hypervisors , aggregate and availability zones list? Thx for help. Regards, Jean-Pierre RIBEAUVILLE +33 1 4717 2049
_______________________________________________ Mailing list: http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack Post to : [email protected] Unsubscribe : http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack
