You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
gns3-server/docs/api/examples/controller_put_projectsproj...

80 lines
2.3 KiB

curl -i -X PUT 'http://localhost:3080/v2/projects/98dffbde-364b-49ef-bd61-cd3d12f5e521/links/2ac96baf-b053-446a-8bbf-51d331c318c6' -d '{"filters": {"frequency_drop": [50], "latency": [10]}, "nodes": [{"adapter_number": 0, "label": {"text": "Hello", "x": 64, "y": 0}, "node_id": "d72e2acf-d797-47a0-8c29-f269b1287aff", "port_number": 3}, {"adapter_number": 2, "node_id": "27ada508-50dd-4671-b0cd-584fbc467676", "port_number": 4}]}'
PUT /v2/projects/98dffbde-364b-49ef-bd61-cd3d12f5e521/links/2ac96baf-b053-446a-8bbf-51d331c318c6 HTTP/1.1
{
"filters": {
"frequency_drop": [
50
],
"latency": [
10
]
},
"nodes": [
{
"adapter_number": 0,
"label": {
"text": "Hello",
"x": 64,
"y": 0
},
"node_id": "d72e2acf-d797-47a0-8c29-f269b1287aff",
"port_number": 3
},
{
"adapter_number": 2,
"node_id": "27ada508-50dd-4671-b0cd-584fbc467676",
"port_number": 4
}
]
}
HTTP/1.1 201
Connection: close
Content-Length: 1027
Content-Type: application/json
Date: Wed, 23 Oct 2019 13:43:36 GMT
Server: Python/3.6 GNS3/2.2.1dev1
X-Route: /v2/projects/{project_id}/links/{link_id}
{
"capture_compute_id": null,
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"filters": {
"frequency_drop": [
50
],
"latency": [
10
]
},
"link_id": "2ac96baf-b053-446a-8bbf-51d331c318c6",
"link_type": "ethernet",
"nodes": [
{
"adapter_number": 0,
"label": {
"text": "Hello",
"x": 64,
"y": 0
},
"node_id": "d72e2acf-d797-47a0-8c29-f269b1287aff",
"port_number": 3
},
{
"adapter_number": 2,
"label": {
"style": "font-family: TypeWriter;font-size: 10.0;font-weight: bold;fill: #000000;fill-opacity: 1.0;",
"text": "2/4"
},
"node_id": "27ada508-50dd-4671-b0cd-584fbc467676",
"port_number": 4
}
],
"project_id": "98dffbde-364b-49ef-bd61-cd3d12f5e521",
"suspend": false
}