1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-24 17:28:08 +00:00
gns3-server/docs/api/examples/compute_get_networkinterfaces.txt

80 lines
1.9 KiB
Plaintext
Raw Normal View History

2018-01-08 08:26:44 +00:00
curl -i -X GET 'http://localhost:3080/v2/compute/network/interfaces'
GET /v2/compute/network/interfaces HTTP/1.1
HTTP/1.1 200
Connection: close
2020-01-08 02:52:15 +00:00
Content-Length: 1601
2018-01-08 08:26:44 +00:00
Content-Type: application/json
2020-01-08 02:52:15 +00:00
Date: Wed, 08 Jan 2020 02:26:16 GMT
Server: Python/3.6 GNS3/2.2.4dev1
2018-01-08 08:26:44 +00:00
X-Route: /v2/compute/network/interfaces
[
{
"id": "docker0",
"ip_address": "172.17.0.1",
2020-01-08 02:52:15 +00:00
"mac_address": "02:42:0f:c7:42:69",
"name": "docker0",
"netmask": "255.255.0.0",
2018-01-08 08:26:44 +00:00
"special": true,
"type": "ethernet"
},
{
"id": "lo",
"ip_address": "127.0.0.1",
"mac_address": "00:00:00:00:00:00",
"name": "lo",
"netmask": "255.0.0.0",
2018-01-08 08:26:44 +00:00
"special": true,
"type": "ethernet"
},
{
"id": "virbr0",
"ip_address": "192.168.122.1",
2019-10-23 14:00:00 +00:00
"mac_address": "52:54:00:d4:71:01",
"name": "virbr0",
"netmask": "255.255.255.0",
2018-01-08 08:26:44 +00:00
"special": true,
"type": "ethernet"
},
{
"id": "virbr0-nic",
2018-01-08 08:26:44 +00:00
"ip_address": "",
2019-10-23 14:00:00 +00:00
"mac_address": "52:54:00:d4:71:01",
"name": "virbr0-nic",
2018-01-08 08:26:44 +00:00
"netmask": "",
"special": true,
"type": "ethernet"
2018-06-07 08:26:06 +00:00
},
{
"id": "vmnet1",
2019-10-23 14:00:00 +00:00
"ip_address": "172.16.9.1",
2018-06-07 08:26:06 +00:00
"mac_address": "00:50:56:c0:00:01",
"name": "vmnet1",
"netmask": "255.255.255.0",
"special": true,
"type": "ethernet"
},
{
"id": "vmnet8",
2019-10-23 14:00:00 +00:00
"ip_address": "192.168.193.1",
2018-06-07 08:26:06 +00:00
"mac_address": "00:50:56:c0:00:08",
"name": "vmnet8",
"netmask": "255.255.255.0",
"special": true,
"type": "ethernet"
},
{
2019-10-23 14:00:00 +00:00
"id": "wlp2s0",
2020-01-08 02:52:15 +00:00
"ip_address": "192.168.1.175",
2019-10-23 14:00:00 +00:00
"mac_address": "9c:b6:d0:99:3c:07",
"name": "wlp2s0",
"netmask": "255.255.255.0",
"special": false,
"type": "ethernet"
2018-01-08 08:26:44 +00:00
}
]