Thread Previous • Date Previous • Date Next • Thread Next |
On 07/17/2012 04:05 PM, Matt Joyce wrote:
curl -H "X-Auth-Token:123456789001234"http://localhost:5000/v2.0/tenants that seems to do the trick for me for now.
Ah, I see that is hooked up to: get_tenants_for_token, I was looking for the wrong API. That then calls: tenant_ids = self.identity_api.get_tenants_for_user(context, user_ref['id'])
I'm not sure that this is the right semantics for it, but it looks like it does what you want.
On Tue, Jul 17, 2012 at 1:03 PM, Adam Young <ayoung@xxxxxxxxxx <mailto:ayoung@xxxxxxxxxx>> wrote:On 07/17/2012 03:55 PM, Matt Joyce wrote:On Tue, Jul 17, 2012 at 12:55 PM, Adam Young <ayoung@xxxxxxxxxx <mailto:ayoung@xxxxxxxxxx>> wrote: On 07/17/2012 03:47 PM, Matt Joyce wrote: As a non admin user. Querying the keystone v2 API is there a way for me to get a list of the tenants that I am a member of? Or is that only a v3 thing? -Matt I was just looking into it, and there is no such API yet. The underlying Identity provider call is get_tenants_for_user and there does not seem to be a route set up that calls that. 8( <--- sad panda face. That would have been a very useful call for me right now. I hope we have something by folsom ( albeit s/tenant/project/ig ) -MattYou can try this one out: https://github.com/admiyo/keystone/commit/997f9cb76fa908afebf434bef4905add085823ca
Thread Previous • Date Previous • Date Next • Thread Next |