1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-25 01:38:08 +00:00
gns3-server/docs/api/examples/get_interfaces.txt
2015-01-31 14:34:49 -07:00

41 lines
618 B
Plaintext

curl -i -X GET 'http://localhost:8000/interfaces'
GET /interfaces HTTP/1.1
HTTP/1.1 200
CONNECTION: close
CONTENT-LENGTH: 364
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /interfaces
[
{
"id": "lo",
"name": "lo"
},
{
"id": "eth0",
"name": "eth0"
},
{
"id": "wlan0",
"name": "wlan0"
},
{
"id": "vmnet1",
"name": "vmnet1"
},
{
"id": "vmnet8",
"name": "vmnet8"
},
{
"id": "vboxnet0",
"name": "vboxnet0"
}
]