2015-01-26 08:40:48 +00:00
|
|
|
curl -i -X GET 'http://localhost:8000/interfaces'
|
|
|
|
|
|
|
|
GET /interfaces HTTP/1.1
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
2015-02-04 09:31:31 +00:00
|
|
|
CONNECTION: keep-alive
|
|
|
|
CONTENT-LENGTH: 652
|
2015-01-26 08:40:48 +00:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2015-02-04 09:31:31 +00:00
|
|
|
SERVER: Python/3.4 GNS3/1.3.dev1
|
|
|
|
X-ROUTE: /v1/interfaces
|
2015-01-26 08:40:48 +00:00
|
|
|
|
|
|
|
[
|
|
|
|
{
|
2015-02-04 09:31:31 +00:00
|
|
|
"id": "lo0",
|
|
|
|
"name": "lo0"
|
2015-01-26 08:40:48 +00:00
|
|
|
},
|
|
|
|
{
|
2015-02-04 09:31:31 +00:00
|
|
|
"id": "gif0",
|
|
|
|
"name": "gif0"
|
2015-01-26 08:40:48 +00:00
|
|
|
},
|
|
|
|
{
|
2015-02-04 09:31:31 +00:00
|
|
|
"id": "stf0",
|
|
|
|
"name": "stf0"
|
2015-01-26 08:40:48 +00:00
|
|
|
},
|
|
|
|
{
|
2015-02-04 09:31:31 +00:00
|
|
|
"id": "en0",
|
|
|
|
"name": "en0"
|
2015-01-26 08:40:48 +00:00
|
|
|
},
|
|
|
|
{
|
2015-02-04 09:31:31 +00:00
|
|
|
"id": "en1",
|
|
|
|
"name": "en1"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "fw0",
|
|
|
|
"name": "fw0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "en2",
|
|
|
|
"name": "en2"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "p2p0",
|
|
|
|
"name": "p2p0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "bridge0",
|
|
|
|
"name": "bridge0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "vboxnet0",
|
|
|
|
"name": "vboxnet0"
|
|
|
|
},
|
|
|
|
{
|
|
|
|
"id": "vboxnet1",
|
|
|
|
"name": "vboxnet1"
|
2015-01-26 08:40:48 +00:00
|
|
|
}
|
|
|
|
]
|