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_projectsprojectidlinkslinkid.txt

49 lines
1.3 KiB
Plaintext
Raw Normal View History

2018-01-08 08:26:44 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/23093d79-3767-40fa-a4d2-d6cb9b8b3ad6/links/5ef12b17-0fcd-41c3-b14d-ac9a123fd260'
GET /v2/projects/23093d79-3767-40fa-a4d2-d6cb9b8b3ad6/links/5ef12b17-0fcd-41c3-b14d-ac9a123fd260 HTTP/1.1
HTTP/1.1 200
Connection: close
Content-Length: 916
Content-Type: application/json
Date: Mon, 08 Jan 2018 08:16:36 GMT
Server: Python/3.6 GNS3/2.1.2dev1
X-Route: /v2/projects/{project_id}/links/{link_id}
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"filters": {},
"link_id": "5ef12b17-0fcd-41c3-b14d-ac9a123fd260",
"link_type": "ethernet",
"nodes": [
{
"adapter_number": 0,
"label": {
"text": "Text",
"x": 42,
"y": 0
},
"node_id": "ad56b649-841c-4212-ad67-47e8637f86ca",
"port_number": 3
},
{
"adapter_number": 2,
"label": {
"rotation": 0,
"style": "font-size: 10; font-style: Verdana",
"text": "2/4",
"x": -10,
"y": -10
},
"node_id": "4f2ca049-53e8-4cd1-bd81-396e2b2b40d1",
"port_number": 4
}
],
"project_id": "23093d79-3767-40fa-a4d2-d6cb9b8b3ad6",
"suspend": false
}