1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-01 04:38:12 +00:00
gns3-server/docs/api/examples/controller_get_projectsprojectidlinks.txt

50 lines
1.4 KiB
Plaintext
Raw Normal View History

2016-10-20 08:54:07 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/69ab73a7-a498-49b2-968b-bc406897a545/links'
2016-06-04 08:40:39 +00:00
2016-10-20 08:54:07 +00:00
GET /v2/projects/69ab73a7-a498-49b2-968b-bc406897a545/links HTTP/1.1
2016-06-04 08:40:39 +00:00
HTTP/1.1 200
2016-09-27 15:15:40 +00:00
Content-Length: 1111
Content-Type: application/json
2016-10-20 08:54:07 +00:00
Date: Thu, 20 Oct 2016 08:52:48 GMT
Server: Python/3.5 GNS3/2.0.0dev2
2016-09-27 15:15:40 +00:00
X-Route: /v2/projects/{project_id}/links
2016-06-04 08:40:39 +00:00
[
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
2016-10-20 08:54:07 +00:00
"link_id": "d9db6a61-ae1a-4f7d-991a-73c46f62dfab",
2016-09-27 15:15:40 +00:00
"link_type": "ethernet",
2016-06-04 08:40:39 +00:00
"nodes": [
{
"adapter_number": 0,
2016-07-11 13:37:57 +00:00
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "0/3",
"x": -10,
"y": -10
},
2016-10-20 08:54:07 +00:00
"node_id": "fc041a38-4796-420d-bbe1-60c675aff332",
2016-06-04 08:40:39 +00:00
"port_number": 3
},
{
"adapter_number": 2,
2016-07-11 13:37:57 +00:00
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "2/4",
"x": -10,
"y": -10
},
2016-10-20 08:54:07 +00:00
"node_id": "cbeaeb2c-4bbf-42e5-a86f-e358040d7a5e",
2016-06-04 08:40:39 +00:00
"port_number": 4
}
],
2016-10-20 08:54:07 +00:00
"project_id": "69ab73a7-a498-49b2-968b-bc406897a545"
2016-06-04 08:40:39 +00:00
}
]