Ask Your Question
0

quantum API's [closed]

asked 2013-12-13 01:41:56 -0500

RHK gravatar image

updated 2013-12-16 22:26:58 -0500

Hello,

I am running my network node with quantum (grizzly). It was running successfully. Now i gone through quantum API's to understand more. Below was the doc link which i am refering.

http://docs.openstack.org/api/openstack-network/2.0/content/

Now i am trying to get Lists networks that the tenant who submits the request can access, through browser and curl both are not giving the List Networks response in my setup. How can i get the existing Networks in my setup through these URI mentioned in the document.

Regards, RHK

edit retag flag offensive reopen merge delete

Closed for the following reason the question is answered, right answer was accepted by dheeru
close date 2014-01-03 02:53:41.342421

Comments

I don't understand what you're trying to achieve here. Can you please edit your question and try being more specific? Look at the documentation too, please http://docs.openstack.org

smaffulli gravatar imagesmaffulli ( 2013-12-13 14:11:08 -0500 )edit

Updated...

RHK gravatar imageRHK ( 2013-12-16 22:27:52 -0500 )edit

Can you show us what you're trying to do? What `curl` command are you using? Are you getting back errors? What errors? How are you authenticating...do you have a valid keystone token?

larsks gravatar imagelarsks ( 2013-12-16 22:52:28 -0500 )edit

To list Networks: curl -s http://10.0.1.3:9696/v2/798c841d-30a7-4aeb-83cb-405d1d028e77/networks -X GET -H "X-Auth-Project-Id: kaveri" -H "Accept: application/json" -H "X-Auth-Token: (token_id) | python -mjson.tool Extra data: line 1 column 4 - line 5 column 4 (char 4 - 52) kaveri ---> user name

RHK gravatar imageRHK ( 2013-12-18 00:16:37 -0500 )edit

yes i have a valid keystone token for each and every tenant. Tenant : kaveri_project user: kaveri password : kaveri123 token : MIIKdQYJKoZIhvcNAQcCoIIKZjCCC........... etc, ID | Label | Cidr 798c841d-30a7-4aeb-83cb-405d1d028e77 | kaveri_network | None

RHK gravatar imageRHK ( 2013-12-18 00:34:48 -0500 )edit

1 answer

Sort by ยป oldest newest most voted
1

answered 2013-12-16 23:47:26 -0500

dheeru gravatar image

cURL utility is meant for querying the urls. Can you use that command and give the urls. Any reason you are using the browser ?

edit flag offensive delete link more

Comments

Comments like this should be left as comments on the question, not as answers. Thanks!

larsks gravatar imagelarsks ( 2013-12-17 08:25:10 -0500 )edit

I understand. Thank your suggestion as well. It was not a comment. It was ans I was driving him towards.

dheeru gravatar imagedheeru ( 2013-12-17 08:31:13 -0500 )edit

No reason, just i am trying. Yes i tried with curl i can able to get the existing security groups, images, flavors. I am also trying to get the Networks, subnets, ports in my existing setup.

RHK gravatar imageRHK ( 2013-12-18 00:24:26 -0500 )edit

curl -s http://10.0.1.3:9696/v2/798c841d-30a7-4aeb-83cb-405d1d028e77/networks -X GET -H "X-Auth-Project-Id: kaveri" -H "Accept: application/json" -H "X-Auth-Token: (token-id) | python -mjson.tool Extra data: line 1 column 4 - line 5 column 4 (char 4 - 52) Any modifications need to do in that curl?

RHK gravatar imageRHK ( 2013-12-18 00:27:49 -0500 )edit
1

Try curl -v -H "X-Auth-Token:$token" http://10.0.1.3:9696/v2/<tenantname>/networks | python -m json.tool curl -s -H "X-Auth-Token: $token" -H "Content-type: application/json" http://10.0.1.3:9696/v2.0/networks

dheeru gravatar imagedheeru ( 2013-12-18 02:26:00 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2013-12-13 01:41:56 -0500

Seen: 96 times

Last updated: Dec 16 '13