openstack team mailing list archive
-
openstack team
-
Mailing list archive
-
Message #16910
Keystone: Get user/tenant by name returning full list
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
Follow ups