Comment 1 for bug 1681348

Revision history for this message
Kristi Nikolla (knikolla) wrote :

Hi Xiaoliang,

By all other OpenStack components do you mean, for example, listing volumes in cinder? In that case doing /v3/<project_id>/volumes will return all the volumes that you have access to within the project your token is scoped to. In cinder too, doing "?name=" will give you an empty list, since it will be querying for a volume named exactly "" (empty).

The /v3/projects API is for admins only. So when it is performed by an admin it will return all the projects in keystone regardless of user. When you use the "?name=" filter, it will query for a project **matching** exactly the name "" (empty) and failing to find one will correctly return an empty list.

If you are looking to get all projects of the current user you should use /v3/auth/projects.