Ask Your Question
0

Can I access the glance endpoint directly?

asked 2018-03-12 01:28:27 -0500

liaodalin19903 gravatar image

As we know, the glance access endpoint is:

http://controller:9292/v2

In my browser I have login.
but how can I get in the endpoint in browser.

I directly access the http://controller:9292/v2 I will get denied. (I have login, but there maybe should provide a token)

image description

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2018-03-12 02:35:45 -0500

updated 2018-03-12 02:40:45 -0500

You can list the Glance versions without a token. If Glance really runs behind port 9292 (in Pike or Queens, it may well run behind Apache and use a different URL), http://controller:9292 or http://controller:9292/versionslist the versions that the installed Glance offers. See https://developer.openstack.org/api-r....

Unlike Keystone, the v2 API reference doesn't seem to implement a "naked" API http://controller:9292/v2.

Any other API requires you to provide the token as an http header. You also need to provide the API method. The browser doesn't give you the flexibility to do that. There are browser plugins for building and submitting RESTful API requests for Firefox and Chrome, but logging on to Horizon and submitting an API request are two entirely different things.

For examples on how to access the Glance API on the command line, see https://docs.openstack.org/newton/use... (the web page documents Newton but should work for all later releases as well).

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2018-03-12 01:28:27 -0500

Seen: 35 times

Last updated: Mar 12