Ask Your Question
0

How to authenticate and use a nova service using curl for a openstack end user ?

asked 2016-12-01 05:33:27 -0500

Rahul529 gravatar image

am trying to access the nova api through the curl ,like list of servers and can launch a server using the curl command line service.. 1.How i have to authenticate end user with the keystone and obtain token to access the nova api 2. the endpoints related to access for end user.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-12-02 00:21:55 -0500

bhattimarry gravatar image

You must specify the openstack user with "-u" option. The you will be prompted for the password to enter.

edit flag offensive delete link more
0

answered 2016-12-02 03:58:58 -0500

updated 2016-12-02 04:10:45 -0500

You want to access Keystone with curl, the keystone client or the openstack client? For curl, find out what Keystone API versions you have in this cloud:

curl http://ipaddress:5000

I hope you know the IP address, and that Keystone listens at port 5000.

If v3.x is available, try the examples at http://docs.openstack.org/developer/k.... To find endpoints, try the endpoint APIs http://developer.openstack.org/api-re.... Then use the Nova API documentation http://developer.openstack.org/api-re... for launching instances.

If only v2 is available, start with the deprecated Keystone v2 API documentation http://developer.openstack.org/api-re... (includes examples), then the endpoint API http://developer.openstack.org/api-re..., then Nova as above.

If you use the keystone or openstack clients, they have commands for obtaining tokens and listing the catalog. After that, use the Nova API as above.

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: 2016-12-01 05:33:27 -0500

Seen: 447 times

Last updated: Dec 02 '16