[Openstack] Keystone API question

Joseph Heck heckj at me.com
Thu May 3 16:29:34 UTC 2012


Hey Luis,

Through the admin API - there is:

	/tenants/{tenant_id}/users/{user_id}/roles

and

	/users/{user_id}/roles

- these are coded in keystone/identity/core.py in the stable/essex release

and the diablo compatibility API

	/users/{user_id}/roleRefs

which is also there - keystone/contrib/admin_crud/core.py

Is that what you're asking?

-joe

On May 2, 2012, at 1:44 PM, Luis Gervaso wrote:

> Hi,
> 
> In Diablo was:
> 
> GET /users/{user_id}/roleRefs
> 
> In Essex it is maintained for compatibility reasons. I understand that this is the obsolete now.
> 
> I can find:
> 
> PUT & DELETE /users/{user_id}/roles/OS-KSADM/{role_id}
> 
> How can get all the roles having a user_id?
> 
> GET /users/{user_id}/roles (i can't find this on stable/essex)
> 
> Returning role list with tenant associated
> 
> Another option that would work for me is:
> 
> GET /users/{user_id}/tenants
> 
> Returning tenant list with role list associated per tenant
> 
> 
> When i GET /user/{user_id} i obtain only this info
> 
> {"user": {"name": "admin", "enabled": true, "email": "admin at example.com", "id": "ef1e63df85b641d7bf3c575bb8670cef", "tenantId": null}}
> 
> Regards
> 
> -- 
> -------------------------------------------
> Luis Alberto Gervaso Martin
> Woorea Solutions, S.L
> CEO & CTO
> mobile: (+34) 627983344
> luis at woorea.es
> 
> 
> _______________________________________________
> Mailing list: https://launchpad.net/~openstack
> Post to     : openstack at lists.launchpad.net
> Unsubscribe : https://launchpad.net/~openstack
> More help   : https://help.launchpad.net/ListHelp

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack/attachments/20120503/143c9aa2/attachment.html>


More information about the Openstack mailing list