← Back to team overview

openstack team mailing list archive

Re: Keystone: Get user/tenant by name returning full list

 

Defect created: https://bugs.launchpad.net/keystone/+bug/1055763

Thanks


On 9/21/2012 2:18 PM, Dolph Mathews wrote:
> 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@xxxxxxxxxxxxxxxxxx
> <mailto:boden@xxxxxxxxxxxxxxxxxx>> 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@xxxxxxxxxxxxxxxxxxx
>     <mailto:openstack@xxxxxxxxxxxxxxxxxxx>
>     Unsubscribe : https://launchpad.net/~openstack
>     More help   : https://help.launchpad.net/ListHelp
> 
> 



References