Ask Your Question
0

How can I get Keystone data in other modules (Neutron)?

asked 2015-07-13 06:55:12 -0500

andergg8 gravatar image

I'm working on a project where I need to obtain some info from keystone database in Neutron, not only project_id. Its a new field I've added to the project table in Keystone module. How could I get that info?

It's a Juno installation.

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
0

answered 2015-07-13 11:47:18 -0500

jzhu gravatar image

If you had added the new field via project property, you should be able to get it back via python-keystoneclient (keystoneclient.projects.get(project_id) which will return the whole project object). You just need to be properly authorized on the get() operation depending on the Keystone policy.

edit flag offensive delete link more

Comments

Sorry, how should I be properly authorized? Via auth_token?

andergg8 gravatar imageandergg8 ( 2015-07-13 12:30:18 -0500 )edit

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: 2015-07-13 06:04:55 -0500

Seen: 43 times

Last updated: Jul 13 '15