zun/api-ref/source/samples/container-network-list-resp.json
Hongbin Lu 53c7f6bb9c Introduce 'fixed_ips' to network_list
Modify the response of network_list API. Add a 'fixed_ips' field
that contains the list of IP addresses and their subnet IDs.
This change is primarily for aligning the format with nova and
neutron so that API consumers can use the same parsing code.
The first use case is from Heat. Heat would be able to use the
same code for parsing nova's interface_list and zun's network_list.

Change-Id: Id1e652d944be852697f18958899e395918ab0885
2018-06-17 19:05:53 +00:00

14 lines
357 B
JSON

{
"networks": [
{
"port_id": "5be06e49-70dc-4984-94a2-1b946bb136fb",
"net_id": "7e6b5e1b-9b44-4f55-b4e3-16a1ead98161",
"fixed_ips": {
"ip_address": "30.30.30.10",
"version": 4,
"subnet_id": "ae8d7cce-859e-432f-8a33-d7d8834ccd14"
}
}
]
}