Ask Your Question

Whats the use of TenantID parameter in /tokens call?

asked 2011-12-22 23:50:52 -0600

Hi guys, I'm working with the keystone API, and according to the docs, for authentication you should do a post to v2.0/tokens with a message that includes a parameter called tenantId. In the example is set to "1234".

In my tests, this parameter can be ommited and the call success with the same result.

When should I include this parameter and when not to? I tryed different combinations with devstack, and my results are equal with or without the param, but I may be missing something. What's the use of this parameter?

BTW nova api seems to receive a tenantid which doesn't do anything neither, but I think must be realated to this param too.

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted

answered 2012-01-12 22:24:24 -0600

rupakg gravatar image

The tenant id gives you a service catalog with services activated for the user with the tenant id. Otherwise, if you do not pass in the tenant id, you will get a global service catalog with only public services.

edit flag offensive delete link more

answered 2011-12-23 01:28:37 -0600

I've just hit the case of unauthorized with correct username/pass and an existing (but not associated with the user) tenantID. This gives the param something useful to do.

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


Asked: 2011-12-22 23:50:52 -0600

Seen: 37 times

Last updated: Jan 12 '12