Cloud information by API

asked 2014-04-16 07:22:04 -0600

mmaurizi gravatar image

Hi all,

Is there a way to get summary information about cloud using API? In particular I'm interesting in obtain OpenStack version (Grizzly, Havana).

Second is there chance to obtain a cloud identifier (code, UUID or something like that) using API?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted

answered 2014-04-16 09:00:58 -0600

larsks gravatar image

There is no mechanism for obtaining the release name via the API. With most services you can find information about supported API versions by querying the top-level URL for the endpoint. For example, if I query the glance endpoint:

$ curl http://localhost:9292/
{"versions": [{"status": "CURRENT", "id": "v2.2", "links": [{"href": "http://localhost:9292/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.1", "links": [{"href": "http://localhost:9292/v2/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v2.0", "links": [{"href": "http://localhost:9292/v2/", "rel": "self"}]}, {"status": "CURRENT", "id": "v1.1", "links": [{"href": "http://localhost:9292/v1/", "rel": "self"}]}, {"status": "SUPPORTED", "id": "v1.0", "links": [{"href": "http://localhost:9292/v1/", "rel": "self"}]}]}

And of course you can get a list of available services by querying Keystone for the service catalog.

There is no concept of a "cloud identifier". Individual clouds are identified by API endpoints. Generally, each OpenStack cloud will have a unique Keystone authentication URL, and I guess you could treat this as an identifier.

edit flag offensive delete link more


Thanks for the answer.

API version is OK but i was trying to find release name release name. No problem.

About using keystone authentication URL as identifier there could be problem in case there will be change for Keystone authentication server. But it could be a solution.

mmaurizi gravatar imagemmaurizi ( 2014-04-16 09:12:30 -0600 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2014-04-16 07:22:04 -0600

Seen: 97 times

Last updated: Apr 16 '14