1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 09:48:08 +00:00
gns3-server/docs/api/examples/get_interfaces.txt

88 lines
1.5 KiB
Plaintext
Raw Normal View History

curl -i -X GET 'http://localhost:8000/v1/interfaces'
2015-02-24 10:38:57 +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
2015-07-24 08:15:15 +00:00
CONTENT-LENGTH: 1264
2015-02-24 10:38:57 +00:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
2015-07-24 08:15:15 +00:00
SERVER: Python/3.4 GNS3/1.4.0dev3
2015-02-24 10:38:57 +00:00
X-ROUTE: /v1/interfaces
[
{
"id": "lo0",
2015-07-09 14:16:43 +00:00
"ip_address": "127.0.0.1",
2015-02-24 10:38:57 +00:00
"name": "lo0"
},
{
"id": "gif0",
2015-07-09 14:16:43 +00:00
"ip_address": "",
2015-02-24 10:38:57 +00:00
"name": "gif0"
},
{
"id": "stf0",
2015-07-09 14:16:43 +00:00
"ip_address": "",
2015-02-24 10:38:57 +00:00
"name": "stf0"
},
2015-06-10 12:35:53 +00:00
{
"id": "en0",
2015-07-09 14:16:43 +00:00
"ip_address": "192.168.84.118",
2015-06-10 12:35:53 +00:00
"name": "en0"
},
2015-07-09 14:16:43 +00:00
{
"id": "en1",
"ip_address": "",
"name": "en1"
},
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
{
"id": "en2",
2015-07-09 14:16:43 +00:00
"ip_address": "",
2015-02-24 10:38:57 +00:00
"name": "en2"
},
{
"id": "p2p0",
2015-07-09 14:16:43 +00:00
"ip_address": "",
2015-02-24 10:38:57 +00:00
"name": "p2p0"
},
{
"id": "bridge0",
2015-07-09 14:16:43 +00:00
"ip_address": "",
2015-02-24 10:38:57 +00:00
"name": "bridge0"
},
{
"id": "vboxnet0",
2015-07-24 08:15:15 +00:00
"ip_address": "172.16.43.1",
"name": "vboxnet0"
},
{
"id": "vboxnet1",
2015-07-09 14:16:43 +00:00
"ip_address": "",
"name": "vboxnet1"
},
{
"id": "vboxnet2",
2015-07-09 14:16:43 +00:00
"ip_address": "",
"name": "vboxnet2"
2015-07-09 14:16:43 +00:00
},
{
"id": "vmnet1",
"ip_address": "172.16.16.1",
"name": "vmnet1"
},
{
"id": "vmnet8",
"ip_address": "192.168.229.1",
"name": "vmnet8"
2015-02-24 10:38:57 +00:00
}
]