Comment 5 for bug 834683

Revision history for this message
Dolph Mathews (dolph) wrote :

I'm starting to think that both the ID *and* Name should be returned along with *any* object that contains both (user, tenant, role, service), as they can both be used to identify resources (clients will generally look at the name, while the keystone server will generally look at the ID). This implies we need to add a lot of missing "name" attributes to the XSD's (and JSON responses).

Conversely, when making requests, it should only be possible to request by ID, e.g.:

GET /tenants/{tenant_id}

We also have a shortcoming when it comes to looking up ID's directly by name... I believe we're missing methods such as:

GET /tenants?name=foobar
GET /roles?name=admin
GET /services?name=nova