gns3-server/docs/api/examples/controller_get_projectsprojectidlinks.txt

50 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-09-27 18:15:40 +03:00
curl -i -X GET 'http://localhost:3080/v2/projects/2295ee85-fc8b-4fa2-878c-914ff651c4a8/links'
2016-06-04 11:40:39 +03:00
2016-09-27 18:15:40 +03:00
GET /v2/projects/2295ee85-fc8b-4fa2-878c-914ff651c4a8/links HTTP/1.1
2016-06-04 11:40:39 +03:00
HTTP/1.1 200
2016-09-27 18:15:40 +03:00
Content-Length: 1111
Content-Type: application/json
Date: Tue, 27 Sep 2016 10:01:18 GMT
Server: Python/3.5 GNS3/2.0.0dev1
X-Route: /v2/projects/{project_id}/links
2016-06-04 11:40:39 +03:00
[
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
2016-09-27 18:15:40 +03:00
"link_id": "ca268d39-d533-4182-87da-16ef58fbf230",
"link_type": "ethernet",
2016-06-04 11:40:39 +03:00
"nodes": [
{
"adapter_number": 0,
2016-07-11 16:37:57 +03:00
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "0/3",
"x": -10,
"y": -10
},
2016-09-27 18:15:40 +03:00
"node_id": "c824d9de-a001-47e4-bbce-9fee0533c10c",
2016-06-04 11:40:39 +03:00
"port_number": 3
},
{
"adapter_number": 2,
2016-07-11 16:37:57 +03:00
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "2/4",
"x": -10,
"y": -10
},
2016-09-27 18:15:40 +03:00
"node_id": "1a1944d6-405f-44cc-9c97-40c753b213f2",
2016-06-04 11:40:39 +03:00
"port_number": 4
}
],
2016-09-27 18:15:40 +03:00
"project_id": "2295ee85-fc8b-4fa2-878c-914ff651c4a8"
2016-06-04 11:40:39 +03:00
}
]