
if we list floating ip and want to operate a port forwarding, we cannot call the update 'port forwarding' api, because we don't know the port forwarding id. The reason for exposing 'internal_port_id' is also to find the associated port as soon as possible, so as to facilitate users to obtain vm information and decide whether to update this port forwarding. this patch adds the port forwarding returned contents: 'id' and 'internal_port_id' when list floatingip. Partial-bug: #1971646 Change-Id: I34aa6948fccc669fc729d032b540bd1aa0c17ce9
96 lines
4.0 KiB
JSON
96 lines
4.0 KiB
JSON
{
|
|
"floatingips": [
|
|
{
|
|
"router_id": "d23abc8d-2991-4a55-ba98-2aaea84cc72f",
|
|
"description": "for test",
|
|
"dns_domain": "my-domain.org.",
|
|
"dns_name": "myfip",
|
|
"created_at": "2016-12-21T10:55:50Z",
|
|
"updated_at": "2016-12-21T10:55:53Z",
|
|
"revision_number": 1,
|
|
"project_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"tenant_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
|
|
"fixed_ip_address": "10.0.0.3",
|
|
"floating_ip_address": "172.24.4.228",
|
|
"port_id": "ce705c24-c1ef-408a-bda3-7bbd946164ab",
|
|
"id": "2f245a7b-796b-4f26-9cf9-9e82d248fda7",
|
|
"status": "ACTIVE",
|
|
"port_details": {
|
|
"status": "ACTIVE",
|
|
"name": "",
|
|
"admin_state_up": true,
|
|
"network_id": "02dd8479-ef26-4398-a102-d19d0a7b3a1f",
|
|
"device_owner": "compute:nova",
|
|
"mac_address": "fa:16:3e:b1:3b:30",
|
|
"device_id": "8e3941b4-a6e9-499f-a1ac-2a4662025cba"
|
|
},
|
|
"tags": ["tag1,tag2"],
|
|
"port_forwardings": [],
|
|
"qos_network_policy_id": "174dd0c1-a4eb-49d4-a807-ae80246d82f4",
|
|
"qos_policy_id": "29d5e02e-d5ab-4929-bee4-4a9fc12e22ae"
|
|
|
|
},
|
|
{
|
|
"router_id": null,
|
|
"description": "for test",
|
|
"dns_domain": "my-domain.org.",
|
|
"dns_name": "myfip2",
|
|
"created_at": "2016-12-21T11:55:50Z",
|
|
"updated_at": "2016-12-21T11:55:53Z",
|
|
"revision_number": 2,
|
|
"project_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"tenant_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
|
|
"fixed_ip_address": null,
|
|
"floating_ip_address": "172.24.4.227",
|
|
"port_id": null,
|
|
"id": "61cea855-49cb-4846-997d-801b70c71bdd",
|
|
"status": "DOWN",
|
|
"port_details": null,
|
|
"tags": ["tag1,tag2"],
|
|
"port_forwardings": [],
|
|
"qos_network_policy_id": "174dd0c1-a4eb-49d4-a807-ae80246d82f4",
|
|
"qos_policy_id": "29d5e02e-d5ab-4929-bee4-4a9fc12e22ae"
|
|
},
|
|
{
|
|
"router_id": "0303bf18-2c52-479c-bd68-e0ad712a1639",
|
|
"description": "for test with port forwarding",
|
|
"dns_domain": "my-domain.org.",
|
|
"dns_name": "myfip3",
|
|
"created_at": "2018-06-15T02:12:48Z",
|
|
"updated_at": "2018-06-15T02:12:57Z",
|
|
"revision_number": 1,
|
|
"project_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"tenant_id": "4969c491a3c74ee4af974e6d800c62de",
|
|
"floating_network_id": "376da547-b977-4cfe-9cba-275c80debf57",
|
|
"fixed_ip_address": null,
|
|
"floating_ip_address": "172.24.4.42",
|
|
"port_id": null,
|
|
"id": "898b198e-49f7-47d6-a7e1-53f626a548e6",
|
|
"status": "ACTIVE",
|
|
"tags": [],
|
|
"port_forwardings": [
|
|
{
|
|
"protocol": "tcp",
|
|
"internal_ip_address": "10.0.0.19",
|
|
"internal_port": 25,
|
|
"internal_port_id": "2057ec54-8be2-11eb-8dcd-0242ac130003",
|
|
"external_port": 2225,
|
|
"id": "0f23a90a-8be2-11eb-8dcd-0242ac130003"
|
|
},
|
|
{
|
|
"protocol": "tcp",
|
|
"internal_ip_address": "10.0.0.18",
|
|
"internal_port": 16666,
|
|
"internal_port_id": "1238be08-a2a8-4b8d-addf-fb5e2250e480",
|
|
"external_port": 8786,
|
|
"id": "e0a0274e-4d19-4eab-9e12-9e77a8caf3ea"
|
|
}
|
|
],
|
|
"qos_network_policy_id": "174dd0c1-a4eb-49d4-a807-ae80246d82f4",
|
|
"qos_policy_id": "29d5e02e-d5ab-4929-bee4-4a9fc12e22ae"
|
|
}
|
|
]
|
|
}
|