Ask Your Question

How to get list of hypervisors/datastores in vmware region in openstack using rest api?

asked 2015-01-27 05:07:27 -0500

BhavyaM gravatar image

In case of KVM region, the query

"curl -H "X-Auth-Token: <token-id>" http://<ip_address>:8774/v2/<tenant-id>/os-hypervisors/detail | python -m json.tool",

gives the list of hypervisors and more details, but in case of vmware, this return only repeated json of region name with various services that are running.

Appreciate all help, Thanks Bhavya.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2015-01-28 01:04:30 -0500

BhavyaM gravatar image (

nova.conf needs to be modified to change my_ip to vCenter Ip address and restart the services and then within a minute (since nova resource scheduler polls information every minute), the rest query will return vCenter ip in 'host_ip' attribute value and from there on vCenter rest api's can be used to figure out the details about hypervisors and datastores etc.

Thanks Bhavya

edit flag offensive delete link more


Can't accept my own answer after I found the right solution since I don't have enough repo points :D

BhavyaM gravatar imageBhavyaM ( 2015-01-28 01:05:51 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-01-27 05:06:42 -0500

Seen: 404 times

Last updated: Jan 28 '15