Ask Your Question

Revision history [back]

click to hide/show revision 1
initial version

List Server Id using python-novaclient Python API

I'm trying to list Images and servers using python API as an example

from novaclient.v1_1 import client

nt = client.Client("admin", "admin_pass", "admin", "http://192.168.1.70:5000/v2.0", service_type="compute") print(nt.servers.list()) tu and the result is [<server: iso="">, <server: ubuntu2="">, <server: fedora="">, <server: fedora="">, <server: ubuntu="">]

I need to get all informations about servers and images such as Id or status. I can get them using Command-line API but not using python API

List How to list Server Id using python-novaclient Python APIAPI?

I'm trying to list Images and servers using python API as an example

from novaclient.v1_1 import client

client

nt = client.Client("admin", "admin_pass", "admin", "http://192.168.1.70:5000/v2.0", service_type="compute") print(nt.servers.list())

tu and the result is [<server: iso="">, <server: ubuntu2="">, <server: fedora="">, <server: fedora="">, <server: ubuntu="">]

[<Server: Iso>, <Server: ubuntu2>, <Server: fedora>, <Server: fedora>, <Server: ubuntu>]

I need to get all informations about servers and images such as Id or status. I can get them using Command-line API but not using python API

How to list Server Id using python-novaclient Python API?

I'm trying to list Images and servers using python API as an example

from novaclient.v1_1 import client

nt = client.Client("admin", "admin_pass", "admin", "http://192.168.1.70:5000/v2.0", service_type="compute")
print(nt.servers.list())

tu and the result is

[<Server: Iso>, <Server: ubuntu2>, <Server: fedora>, <Server: fedora>, <Server: ubuntu>]

I need to get all informations about servers and images such as Id or status. I can get them using Command-line API but not using python API