Ask Your Question
2

which Rest API can get all tenant instance information [closed]

asked 2014-10-09 06:05:47 -0600

orangeiv gravatar image

Hi, Sir

I got the instance information by REST API with NOVA /v2/server. but it only can get my tenant instance.

On the other hand, i found Dashboard can show 2 types of instance list by Tenant view and Admin View.

the Admin View can show all tenant instance list information. can you tell me which Rest API can get tenant instance information.

edit retag flag offensive reopen merge delete

Closed for the following reason duplicate question by orangeiv
close date 2015-06-13 07:02:52.607188

Comments

What exactly is your aim. Do you want the user to act as admin. In that case i guess you need to assign user the admin roles through keystone. can you explain what do you mean buy get tenant instance information

Syed Awais Ali gravatar imageSyed Awais Ali ( 2014-10-09 13:31:52 -0600 )edit

1 answer

Sort by ยป oldest newest most voted
4

answered 2014-10-10 13:38:06 -0600

larsks gravatar image

If you are accessing the API using admin credentials, you can pass the all_tenants option with your request. A good way to discover how to use the API is to look at the debug output from the standard clients. For example, if you run the following with admin credentials:

nova --debug list --all-tenants

You will see that it makes a request to:

http://127.0.0.1:8774/v2/e4099fa0b2524798b9666d26c95e6f47/servers/detail?all_tenants=1

That request will return information about all Nova servers (those owned by the admin tenant and those owned by other tenants).

edit flag offensive delete link more

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2014-10-09 06:05:47 -0600

Seen: 2,259 times

Last updated: Oct 10 '14