Ask Your Question
0

How to get the details of SELECTED instances with APIs in Openstack Kilo

asked 2016-03-14 03:46:42 -0600

Aditi gravatar image

On the "Instances" page, there is a list of instances in the Openstack Kilo. Suppose, I want to know the details of only the selected(by me) instances, how and what commands/APIs can be used? Which files can be used to view the same?

edit retag flag offensive close merge delete

Comments

Do you mean nova show followed by your instance UUID maybe?

haukebruno gravatar imagehaukebruno ( 2016-03-14 06:58:28 -0600 )edit

1 answer

Sort by » oldest newest most voted
1

answered 2016-03-15 07:52:44 -0600

There are multiple methods to achieve this.

  • Firstly through Horizon GUI if you click on specific instance it will show all the details of that instance.
  • Second is through nova client. You can use nova show <instnace-id> to get details for that instance
  • Third is through Python nova client

    from novaclient.client import Client
    nova = Client('1.1', 'username', 'password', 'tenant', 'http://auth_ip:5000/v2.0')
    # Get a list of servers
    nova.servers.list()
    # Get details of specific servers
    nova.servers.get(server-id)
    
  • Then other way is through Nova compute API. This provides you with API that will fetch server details. Also mentioning it here.

    /v2.1/​{tenant_id}​/servers/detail

You can also check the API response through any REST based client from borwser like for example Postman.

Hope that helps !!

edit flag offensive delete link more

Your Answer

Please start posting anonymously - your entry will be published after you log in or create a new account.

Add Answer

Get to know Ask OpenStack

Resources for moderators

Question Tools

1 follower

Stats

Asked: 2016-03-14 03:46:42 -0600

Seen: 396 times

Last updated: Mar 15 '16