Method | URI | Description |
---|---|---|
GET | /v2/{tenant_id}/servers/detail | Lists all servers showing their IPs by type, either fixed or floating. |
Normal response codes: 200
This table shows the URI parameters for the list servers with ip type request:
Name | Type | Description |
---|---|---|
| String | The unique identifier of the tenant or account. |
This operation does not require a request body.
Example 3.424. List servers with IP type: JSON response
{ "servers": [ { "accessIPv4": "", "accessIPv6": "", "addresses": { "private": [ { "OS-EXT-IPS:type": "fixed", "addr": "192.168.0.3", "version": 4 } ] }, "created": "2013-02-07T18:40:59Z", "flavor": { "id": "1", "links": [ { "href": "http://openstack.example.com/openstack/flavors/1", "rel": "bookmark" } ] }, "hostId": "fe866a4962fe3bdb6c2db9c8f7dcdb9555aca73387e72b5cb9c45bd3", "id": "76908712-653a-4d16-807e-d89d41435d24", "image": { "id": "70a599e0-31e7-49b7-b260-868f441e862b", "links": [ { "href": "http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b", "rel": "bookmark" } ] }, "links": [ { "href": "http://openstack.example.com/v2/openstack/servers/76908712-653a-4d16-807e-d89d41435d24", "rel": "self" }, { "href": "http://openstack.example.com/openstack/servers/76908712-653a-4d16-807e-d89d41435d24", "rel": "bookmark" } ], "metadata": { "My Server Name": "Apache1" }, "name": "new-server-test", "progress": 0, "status": "ACTIVE", "tenant_id": "openstack", "updated": "2013-02-07T18:40:59Z", "user_id": "fake" } ] }
Example 3.425. List servers with IP type: XML response
<?xml version='1.0' encoding='UTF-8'?> <servers xmlns:OS-EXT-IPS="http://docs.openstack.org/compute/ext/extended_ips/api/v1.1" xmlns:atom="http://www.w3.org/2005/Atom" xmlns="http://docs.openstack.org/compute/api/v1.1"> <server status="ACTIVE" updated="2013-02-07T18:40:59Z" hostId="51a80e6ee89b638b2cb57eb4e39d89a725e07c8a698f4d8e256f8665" name="new-server-test" created="2013-02-07T18:40:59Z" userId="fake" tenantId="openstack" accessIPv4="" accessIPv6="" progress="0" id="0337de6b-1d43-46c8-8804-35669f1dea9a"> <image id="70a599e0-31e7-49b7-b260-868f441e862b"> <atom:link href="http://openstack.example.com/openstack/images/70a599e0-31e7-49b7-b260-868f441e862b" rel="bookmark"/> </image> <flavor id="1"> <atom:link href="http://openstack.example.com/openstack/flavors/1" rel="bookmark"/> </flavor> <metadata> <meta key="My Server Name">Apache1</meta> </metadata> <addresses> <network id="private"> <ip OS-EXT-IPS:type="fixed" version="4" addr="192.168.0.3"/> </network> </addresses> <atom:link href="http://openstack.example.com/v2/openstack/servers/0337de6b-1d43-46c8-8804-35669f1dea9a" rel="self"/> <atom:link href="http://openstack.example.com/openstack/servers/0337de6b-1d43-46c8-8804-35669f1dea9a" rel="bookmark"/> </server> </servers>
This operation does not return a response body.