Ask Your Question

Is it possible to list volumes per tenant by an admin user?

asked 2015-09-15 10:07:31 -0500

Jeff Jing gravatar image

I would like to list volumes by tenant via an admin account, and I can't login every account as an admin. I notice there is tenant_id listed in volume detail. Is it possible to use it in query parameter via list volume api?

Thanks, Jeff

edit retag flag offensive close merge delete

4 answers

Sort by ยป oldest newest most voted

answered 2016-07-27 06:37:32 -0500

Josseph gravatar image

Hello, friends .

I have similar problem.

I want to: 1. create tenant's flavor and assing to Tenant_Id (tenant was created but no is assign any user) 2. List flavor's tenant

I am try this:

http://x.x.x.y:8774/v2/$ID_TENANT/flavors (http://x.x.x.y:8774/v2/$ID_TENANT/fla...)

This line only function when i put $ID_TENANT and it`s have a user with Primary Proyect point to tenant.


{"badRequest":{ "message":"Malformed request URL:URL's project _id 'ID_TENANT' doesn't match Context's project_id 'ID_TENANT_ASOCIATE_USER_ADMIN',"code":400 }}

I am using this Api Guide: (

How i can solved my problem ? -


edit flag offensive delete link more


I solved with the next :

1.Create Private Tenant

And then use this : (


Josseph gravatar imageJosseph ( 2016-08-02 10:01:58 -0500 )edit

answered 2015-09-16 13:03:57 -0500

Jeff Jing gravatar image

updated 2015-09-16 13:06:15 -0500

I found the solution via Cinder API where query parameter "project_id=<tenant_id>" should be passed over along with "all_tenants=1". The issue can be closed now.

Thanks, Jeff

edit flag offensive delete link more


Which one is the correct answer for you? :)

salvorapi gravatar imagesalvorapi ( 2015-09-17 05:41:39 -0500 )edit

The answers from Salvorapi and Johanno don't meet my needs. I am working with Openstack4J, to develop some applications around Openstack. The admin account that I use is part of every tenant ( project). However I want to use" admin token" to access resources of all tenant one by one.

Jeff Jing gravatar imageJeff Jing ( 2015-09-17 08:59:49 -0500 )edit

answered 2015-09-16 08:33:51 -0500

Or you can view volumes of single tenant with:

# cinder --os-tenant-name <tenant_name> list
edit flag offensive delete link more

answered 2015-09-16 07:59:34 -0500

johanno gravatar image

From a command line you can execute:

cinder list --all-tenants

This makes a call to http://controller:8776/v1/admin_tenant_id/volumes/detail?all_tenants=1

edit flag offensive delete link more


Great !!!!

herrsergio gravatar imageherrsergio ( 2015-09-18 10:53:38 -0500 )edit

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower


Asked: 2015-09-15 10:07:31 -0500

Seen: 3,161 times

Last updated: Sep 16 '15