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

47 lines
1.3 KiB
Plaintext
Raw Normal View History

2020-01-08 02:52:15 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/1740ba78-ed59-4da9-880d-d2f4675a06c2/links/39a5ec94-aa23-4825-baad-853f0ac63e4a'
2018-01-08 08:26:44 +00:00
2020-01-08 02:52:15 +00:00
GET /v2/projects/1740ba78-ed59-4da9-880d-d2f4675a06c2/links/39a5ec94-aa23-4825-baad-853f0ac63e4a HTTP/1.1
2018-01-08 08:26:44 +00:00
HTTP/1.1 200
Connection: close
2019-10-23 14:00:00 +00:00
Content-Length: 921
2018-01-08 08:26:44 +00:00
Content-Type: application/json
2020-01-08 02:52:15 +00:00
Date: Wed, 08 Jan 2020 02:27:58 GMT
Server: Python/3.6 GNS3/2.2.4dev1
2018-01-08 08:26:44 +00:00
X-Route: /v2/projects/{project_id}/links/{link_id}
{
2019-10-23 14:00:00 +00:00
"capture_compute_id": null,
2018-01-08 08:26:44 +00:00
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"filters": {},
2020-01-08 02:52:15 +00:00
"link_id": "39a5ec94-aa23-4825-baad-853f0ac63e4a",
2018-01-08 08:26:44 +00:00
"link_type": "ethernet",
"nodes": [
{
"adapter_number": 0,
"label": {
"text": "Text",
"x": 42,
"y": 0
},
2020-01-08 02:52:15 +00:00
"node_id": "4a330d9b-fbb1-4865-ae79-2350e8ca9397",
2018-01-08 08:26:44 +00:00
"port_number": 3
},
{
"adapter_number": 2,
"label": {
2019-10-23 14:00:00 +00:00
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "2/4"
2018-01-08 08:26:44 +00:00
},
2020-01-08 02:52:15 +00:00
"node_id": "74ad52f6-faf2-4c6b-8b29-e36c9f0ba03a",
2018-01-08 08:26:44 +00:00
"port_number": 4
}
],
2020-01-08 02:52:15 +00:00
"project_id": "1740ba78-ed59-4da9-880d-d2f4675a06c2",
2018-01-08 08:26:44 +00:00
"suspend": false
}