2.2.2. List addresses by network

 
MethodURIDescription
GET/v2/{tenant_id}/servers/{server_id}/ips/{network_label}

Lists addresses for a specified tenant, server, and network.

Specify the tenant ID, server ID, and network label in the request URI.

Normal response codes: 200, 203

Error response codes: computeFault (400, 500, ), serviceUnavailable (503), badRequest (400), unauthorized (401), forbidden (403), badMethod (405), overLimit (413), itemNotFound (404), buildInProgress (409)

 2.2.2.1. Request

This table shows the URI parameters for the list addresses by network request:

NameTypeDescription

{tenant_id}

​U​U​ID

The tenant ID in a multi-tenancy cloud.

{server_id}

​U​U​ID

The UUID for the server.

{network_label}

​String

The network label, such as public or private.

This operation does not require a request body.

 2.2.2.2. Response

 

Example 2.23. List addresses by network: JSON response

{
   "network":{
      "id":"public",
      "ip":[
         {
            "version":4,
            "addr":"67.23.10.132"
         },
         {
            "version":6,
            "addr":"::babe:67.23.10.132"
         },
         {
            "version":4,
            "addr":"67.23.10.131"
         },
         {
            "version":6,
            "addr":"::babe:4317:0A83"
         }
      ]
   }
}

 

Example 2.24. List addresses by network: XML response

<?xml version="1.0" encoding="UTF-8"?>
<network xmlns="http://docs.openstack.org/compute/api/v1.1"
         id="public">
    <ip version="4" addr="67.23.10.132"/>
    <ip version="6" addr="::babe:67.23.10.132"/>
    <ip version="4" addr="67.23.10.131"/>
    <ip version="6" addr="::babe:4317:0A83"/>
</network>

Questions? Discuss on ask.openstack.org
Found an error? Report a bug against this page


loading table of contents...