1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 19:28:07 +00:00
gns3-server/docs/api/examples/controller_get_projectsprojectidlinks.txt

51 lines
1.4 KiB
Plaintext
Raw Normal View History

2017-06-29 15:14:09 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/a683bc42-6b18-4c1e-9497-23f11f5e60bc/links'
2017-03-21 12:32:04 +00:00
2017-06-29 15:14:09 +00:00
GET /v2/projects/a683bc42-6b18-4c1e-9497-23f11f5e60bc/links HTTP/1.1
2017-03-21 12:32:04 +00:00
HTTP/1.1 200
Connection: close
Content-Length: 1111
Content-Type: application/json
2017-06-29 15:14:09 +00:00
Date: Thu, 29 Jun 2017 15:07:52 GMT
Server: Python/3.6 GNS3/2.1.0dev1
2017-03-21 12:32:04 +00:00
X-Route: /v2/projects/{project_id}/links
[
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
2017-06-29 15:14:09 +00:00
"link_id": "a810aca4-4e76-47a2-9a33-78dd3c5d0f21",
2017-03-21 12:32:04 +00:00
"link_type": "ethernet",
"nodes": [
{
"adapter_number": 0,
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "0/3",
"x": -10,
"y": -10
},
2017-06-29 15:14:09 +00:00
"node_id": "13eee57f-4240-43eb-89f0-3cbe635f98d7",
2017-03-21 12:32:04 +00:00
"port_number": 3
},
{
"adapter_number": 2,
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "2/4",
"x": -10,
"y": -10
},
2017-06-29 15:14:09 +00:00
"node_id": "a2102f85-9ca9-451e-aa67-f4c0f3dfc0a6",
2017-03-21 12:32:04 +00:00
"port_number": 4
}
],
2017-06-29 15:14:09 +00:00
"project_id": "a683bc42-6b18-4c1e-9497-23f11f5e60bc"
2017-03-21 12:32:04 +00:00
}
]