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

60 lines
1.6 KiB
Plaintext
Raw Normal View History

2018-06-07 08:26:06 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/d8f1da27-a533-4aab-95bb-117aaccb48c7/links'
2018-01-08 08:26:44 +00:00
2018-06-07 08:26:06 +00:00
GET /v2/projects/d8f1da27-a533-4aab-95bb-117aaccb48c7/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
2018-06-07 08:26:06 +00:00
Date: Thu, 07 Jun 2018 08:13:55 GMT
Server: Python/3.6 GNS3/2.1.7dev1
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
]
},
2018-06-07 08:26:06 +00:00
"link_id": "b0c7889a-5cf0-439a-a6b0-1fdf2fd1858a",
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
},
2018-06-07 08:26:06 +00:00
"node_id": "855bcbdc-2af5-4625-898e-2c647ed580dd",
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
},
2018-06-07 08:26:06 +00:00
"node_id": "0098bb1e-c7a2-40c8-8c29-f323a7872fbd",
2018-01-08 08:26:44 +00:00
"port_number": 4
}
],
2018-06-07 08:26:06 +00:00
"project_id": "d8f1da27-a533-4aab-95bb-117aaccb48c7",
2018-01-08 08:26:44 +00:00
"suspend": false
}
]