1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-26 16:58:28 +00:00
gns3-server/docs/api/examples/controller_get_projectsprojectidlinks.txt

60 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-03-30 08:56:26 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/42ee96fe-5802-4164-86d7-f4b8fec50eea/links'
2018-01-08 08:26:44 +00:00
2019-03-30 08:56:26 +00:00
GET /v2/projects/42ee96fe-5802-4164-86d7-f4b8fec50eea/links HTTP/1.1
2018-01-08 08:26:44 +00:00
HTTP/1.1 200
Connection: close
Content-Length: 1293
Content-Type: application/json
2019-03-30 08:56:26 +00:00
Date: Sat, 30 Mar 2019 08:49:50 GMT
Server: Python/3.6 GNS3/2.2.0dev8
2018-01-08 08:26:44 +00:00
X-Route: /v2/projects/{project_id}/links
[
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"filters": {
"frequency_drop": [
50
],
"latency": [
10
]
},
2019-03-30 08:56:26 +00:00
"link_id": "423fceec-5297-4fa4-8ae7-be7abfeef98e",
2018-01-08 08:26:44 +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
},
2019-03-30 08:56:26 +00:00
"node_id": "2d322416-e9af-4665-8a85-13fbde3b100d",
2018-01-08 08:26:44 +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
},
2019-03-30 08:56:26 +00:00
"node_id": "69dae8da-bded-4b8b-baea-e1bb280432bf",
2018-01-08 08:26:44 +00:00
"port_number": 4
}
],
2019-03-30 08:56:26 +00:00
"project_id": "42ee96fe-5802-4164-86d7-f4b8fec50eea",
2018-01-08 08:26:44 +00:00
"suspend": false
}
]