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

55 lines
1.6 KiB
Plaintext
Raw Normal View History

2019-10-23 14:00:00 +00:00
curl -i -X GET 'http://localhost:3080/v2/projects/7ba6bf64-8660-4fc5-8698-4d4de0f6a0ed/links'
2018-01-08 08:26:44 +00:00
2019-10-23 14:00:00 +00:00
GET /v2/projects/7ba6bf64-8660-4fc5-8698-4d4de0f6a0ed/links 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: 1251
2018-01-08 08:26:44 +00:00
Content-Type: application/json
2019-10-23 14:00:00 +00:00
Date: Wed, 23 Oct 2019 13:43:36 GMT
Server: Python/3.6 GNS3/2.2.1dev1
2018-01-08 08:26:44 +00:00
X-Route: /v2/projects/{project_id}/links
[
{
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": {
"frequency_drop": [
50
],
"latency": [
10
]
},
2019-10-23 14:00:00 +00:00
"link_id": "8119504a-b500-4b21-9c5a-fb51fa6d7f5f",
2018-01-08 08:26:44 +00:00
"link_type": "ethernet",
"nodes": [
{
"adapter_number": 0,
"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": "0/3"
2018-01-08 08:26:44 +00:00
},
2019-10-23 14:00:00 +00:00
"node_id": "edc21b55-e691-4d5b-8c39-96ad981901eb",
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
},
2019-10-23 14:00:00 +00:00
"node_id": "85ab9d5c-7389-43bd-a70d-e6e046b7f831",
2018-01-08 08:26:44 +00:00
"port_number": 4
}
],
2019-10-23 14:00:00 +00:00
"project_id": "7ba6bf64-8660-4fc5-8698-4d4de0f6a0ed",
2018-01-08 08:26:44 +00:00
"suspend": false
}
]