Ask Your Question

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

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

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

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

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

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

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

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 To find endpoints, try the endpoint APIs Then use the Nova API documentation for launching instances.

If only v2 is available, start with the deprecated Keystone v2 API documentation (includes examples), then the endpoint API, 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

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-12-01 05:33:27 -0600

Seen: 733 times

Last updated: Dec 02 '16