Ask Your Question

Listing containers per tenant

asked 2013-03-02 13:39:17 -0500

vkmc gravatar image


I was wondering if listing containers per tenant is an available feature. I checked the client and the current code, and it doesn't look like it.

I know that the --os-tenant-name option is available but is not a viable replacement in the current implementation I'm working on [0] because it only works for projects of which the admin is a member.

In case that this functionality is indeed not available, do you think that filing a blueprint is a good idea?

I'd like to hear your suggestions, thanks a lot!

[0] (

edit retag flag offensive close merge delete

5 answers

Sort by ยป oldest newest most voted

answered 2013-03-11 01:26:03 -0500

vkmc gravatar image

Thanks Chmouel! It sounds feasible, I will try that approach :)

edit flag offensive delete link more

answered 2013-03-03 19:32:14 -0500

Hi Victoria,

I am not sure I understand your question, you would like to list containers in a tenant without specifying a user?

Thansk, Chmouel.

edit flag offensive delete link more

answered 2013-03-03 20:28:02 -0500

vkmc gravatar image

Hi Chmouel,

Oh you're right, I missed an important detail. I wanted to list all the containers within a tenant with the admin user. As mentioned, this is to implement the tenant deletion workflow on Horizon :)

Do you know if there is a similar feature I could use to access all the containers within a tenant?



edit flag offensive delete link more

answered 2013-03-04 14:44:08 -0500

vkmc gravatar image

#2 provides more information for this question

edit flag offensive delete link more

answered 2013-03-08 22:03:41 -0500

So you basically would need to have a account with the ResellerAdmin role which would allow you to access other accounts.

The steps would be :

  • have an admin user with the ResellerAdmin role (create the role already if it wasn't created before) :

  • get the tenant_id of the tenant you want to access.

  • the storage_url will become :


  • get a token from the admin user.

  • you will be able to access the tenant_id like this :

curl -H 'X-Auth-User: ${ADMIN_TOKEN}' ${USER_STORAGE_URL}

I don't know if that's clear enough, feel free to ping me on irc if needed.

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2013-03-02 13:39:17 -0500

Seen: 184 times

Last updated: Mar 11 '13