Ask Your Question

Revision history [back]

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 !!