Method | URI | Description |
---|---|---|
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)
This table shows the URI parameters for the list addresses by network request:
Name | Type | Description |
---|---|---|
| UUID | The tenant ID in a multi-tenancy cloud. |
| UUID | The UUID for the server. |
| String | The network label, such as
|
This operation does not require a request body.
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>