Ask Your Question

How to use REST API

asked 2016-04-19 08:13:04 -0500

Sofiane68 gravatar image

Hi guys

I got a question about REST APIs:

What is the use of using it ?

From where should I run the API command :

  • from Controller node?
  • from Compute node?
  • from instances?

How can I use it from Mozilla Firefox ?

I downloaded the pluging REST API client but I do not know what to do after

thank you in advance ;)

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2016-04-19 13:56:01 -0500

dbaxps gravatar image

updated 2016-04-25 10:23:03 -0500

UPDATE 04/25/2016

1. When you obtain authentication token - http://controller:5000/v2  Keystone (httpd) is running on Controller, CONFIG_KEYSTONE_API=v2.0 was set during install.
2. If you send POST or GET to nova-api - http://controller:8774/v2  nova-api is running on Controller. Keystone public port is 5000, openstack-nova-api port is 8774.

Please, see had me to make improvements to article during 2 or 3 days. They made about 70 moderations silently
Any given rejection I was supposed to guess which place they disliked this time. As far as it finally hit news wire means that article looks good to editorial team. It should be written good for you as well. Chrome Advanced REST Client provide a real relief, unless you run it in batch mode ( script ). I fixed confusing typo bellow just one IP address , which is Controller running keystone service ( public port 5000) and nova-api ( port 8774 )
(keystone service was included as apache wsgi in the past releases)


Take a look at posts :-

I was able reproduce
However , REST API requests like :-

[root@ip-192-169-142-127 ~(keystone_admin)]# curl -s -H "X-Auth-Token: $OS_TOKEN" \$OS_TENANT_NAME/flavors \
| python -m json.tool

I got samples running after update :-

[root@ip-192-169-142-127 ~(keystone_admin)]# curl -s -H "X-Auth-Token: $OS_TOKEN"  | python -m json.tool

where b47473d8953d49b29910fc681a2ff773 is admin's tenant id.

Starting server via Firefox RESTClient POST request

image description

edit flag offensive delete link more

answered 2016-04-25 07:44:55 -0500

Sofiane68 gravatar image

Thank you very much..

For me I got only one address for all API .. it is the case for you?

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2016-04-19 08:13:04 -0500

Seen: 1,191 times

Last updated: Apr 25 '16