[Openstack] Keystone: Get user/tenant by name returning full list

Dolph Mathews dolph.mathews at gmail.com
Fri Sep 21 18:18:24 UTC 2012


I'm not aware that this was ever implemented during essex (it was available
in diablo) -- definitely worth opening a bug!

-Dolph


On Fri, Sep 21, 2012 at 11:15 AM, boden <boden at linux.vnet.ibm.com> wrote:

> As per the Keystone v2.0 API docs, I've been trying to use the 'get user
> by name' and 'get tenant by name' APIs to retrieve the respective
> resource by name. The URI signatures are:
>
> v2.0/users​?name=string
> v2.0/tenants​?name=string
>
> respectively.
>
> However, both of these APIs are returning the full list (collection) of
> users/tenants rather than the single resource specified in the 'name'
> parameter.
>
> EX:
> ----------------
> (request)
> GET http://localhost:35357/v2.0/tenants?name=DefaultTenant
>
> (response)
> {u'tenants': [{u'id': u'0e98e4ac9590428c997e3aabf18a49d4', u'enabled':
> True, u'description': u'Services Tenant', u'name': u'Services'}, {u'id':
> u'6f8945f2d47f4abea149b7a0176b12a8', u'enabled': True, u'description':
> u'Default Tenant', u'name': u'DefaultTenant'}], u'tenants_links': []}
> ----------------
>
> I did a bug search but didn't see anything existing. Hence I'm trying to
> confirm this issue is worthy of a defect?
>
> Thx
>
>
> _______________________________________________
> 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/20120921/79009bbd/attachment.html>


More information about the Openstack mailing list