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

35 lines
938 B
Plaintext
Raw Normal View History

2016-06-17 09:12:22 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/6301354b-5871-41b0-a10a-f3a045e7b984/links'
2016-06-04 08:40:39 +00:00
2016-06-17 09:12:22 +00:00
GET /v2/projects/6301354b-5871-41b0-a10a-f3a045e7b984/links HTTP/1.1
2016-06-04 08:40:39 +00:00
HTTP/1.1 200
CONTENT-LENGTH: 594
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/2.0.0dev1
X-ROUTE: /v2/projects/{project_id}/links
[
{
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
2016-06-17 09:12:22 +00:00
"link_id": "dfb56d2f-daae-453d-963c-d03bb5f23ad7",
2016-06-04 08:40:39 +00:00
"nodes": [
{
"adapter_number": 0,
2016-06-17 09:12:22 +00:00
"node_id": "f22c215f-0f73-49c6-9466-a0d98d4f5b14",
2016-06-04 08:40:39 +00:00
"port_number": 3
},
{
"adapter_number": 2,
2016-06-17 09:12:22 +00:00
"node_id": "3c615e0b-e819-428e-bb4f-0e96467e660a",
2016-06-04 08:40:39 +00:00
"port_number": 4
}
],
2016-06-17 09:12:22 +00:00
"project_id": "6301354b-5871-41b0-a10a-f3a045e7b984"
2016-06-04 08:40:39 +00:00
}
]