2015-03-30 09:05:54 +00:00
|
|
|
curl -i -X GET 'http://localhost:8000/v1/interfaces'
|
2015-02-24 10:38:57 +00:00
|
|
|
|
2015-03-30 09:05:54 +00:00
|
|
|
GET /v1/interfaces HTTP/1.1
|
2015-02-24 10:38:57 +00:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
2015-07-09 14:16:43 +00:00
|
|
|
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
2015-02-24 10:38:57 +00:00
|
|
|
CONNECTION: keep-alive
|
2016-01-04 16:04:15 +00:00
|
|
|
CONTENT-LENGTH: 1012
|
2015-02-24 10:38:57 +00:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2016-01-04 16:04:15 +00:00
|
|
|
SERVER: Python/3.5 GNS3/1.4.0dev13
|
2015-02-24 10:38:57 +00:00
|
|
|
X-ROUTE: /v1/interfaces
|
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2016-01-04 16:04:15 +00:00
|
|
|
"id": "bridge0",
|
2015-07-09 14:16:43 +00:00
|
|
|
"ip_address": "",
|
2016-01-04 16:04:15 +00:00
|
|
|
"name": "bridge0"
|
2015-02-24 10:38:57 +00:00
|
|
|
},
|
2015-06-10 12:35:53 +00:00
|
|
|
{
|
|
|
|
"id": "en0",
|
2015-10-16 17:05:29 +00:00
|
|
|
"ip_address": "",
|
2015-06-10 12:35:53 +00:00
|
|
|
"name": "en0"
|
|
|
|
},
|
2015-07-09 14:16:43 +00:00
|
|
|
{
|
|
|
|
"id": "en1",
|
2015-10-16 17:05:29 +00:00
|
|
|
"ip_address": "192.168.84.114",
|
2015-07-09 14:16:43 +00:00
|
|
|
"name": "en1"
|
|
|
|
},
|
2016-01-04 16:04:15 +00:00
|
|
|
{
|
|
|
|
"id": "en2",
|
|
|
|
"ip_address": "",
|
|
|
|
"name": "en2"
|
|
|
|
},
|
2015-04-07 14:09:27 +00:00
|
|
|
{
|
|
|
|
"id": "fw0",
|
2015-07-09 14:16:43 +00:00
|
|
|
"ip_address": "",
|
2015-04-07 14:09:27 +00:00
|
|
|
"name": "fw0"
|
|
|
|
},
|
2015-02-24 10:38:57 +00:00
|
|
|
{
|
2016-01-04 16:04:15 +00:00
|
|
|
"id": "lo0",
|
|
|
|
"ip_address": "127.0.0.1",
|
|
|
|
"name": "lo0"
|
2015-02-24 10:38:57 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "p2p0",
|
2015-07-09 14:16:43 +00:00
|
|
|
"ip_address": "",
|
2015-02-24 10:38:57 +00:00
|
|
|
"name": "p2p0"
|
|
|
|
},
|
2015-03-30 09:05:54 +00:00
|
|
|
{
|
|
|
|
"id": "vboxnet0",
|
2016-01-04 16:04:15 +00:00
|
|
|
"ip_address": "172.16.43.1",
|
2015-03-30 09:05:54 +00:00
|
|
|
"name": "vboxnet0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "vboxnet1",
|
2016-01-04 16:04:15 +00:00
|
|
|
"ip_address": "192.168.59.3",
|
2015-03-30 09:05:54 +00:00
|
|
|
"name": "vboxnet1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "vboxnet2",
|
2015-07-09 14:16:43 +00:00
|
|
|
"ip_address": "",
|
2015-03-30 09:05:54 +00:00
|
|
|
"name": "vboxnet2"
|
2015-07-09 14:16:43 +00:00
|
|
|
},
|
2015-10-16 17:05:29 +00:00
|
|
|
{
|
|
|
|
"id": "vboxnet3",
|
|
|
|
"ip_address": "192.168.99.1",
|
|
|
|
"name": "vboxnet3"
|
2015-02-24 10:38:57 +00:00
|
|
|
}
|
|
|
|
]
|