2016-06-04 11:40:39 +03:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/fa91f78d-63fc-4460-bcbd-219f9bf240b2/links' -d '{"nodes": [{"adapter_number": 0, "node_id": "17829f3f-f334-4051-910e-ffc5aa661c02", "port_number": 3}, {"adapter_number": 2, "node_id": "df5b3f33-a535-4f5b-b06a-ccc219e1f0d3", "port_number": 4}]}'
|
2016-03-11 18:20:09 +02:00
|
|
|
|
2016-06-04 11:40:39 +03:00
|
|
|
POST /v2/projects/fa91f78d-63fc-4460-bcbd-219f9bf240b2/links HTTP/1.1
|
2016-03-11 18:20:09 +02:00
|
|
|
{
|
2016-05-12 09:44:38 +03:00
|
|
|
"nodes": [
|
2016-03-11 18:20:09 +02:00
|
|
|
{
|
|
|
|
"adapter_number": 0,
|
2016-06-04 11:40:39 +03:00
|
|
|
"node_id": "17829f3f-f334-4051-910e-ffc5aa661c02",
|
2016-05-12 09:44:38 +03:00
|
|
|
"port_number": 3
|
2016-03-11 18:20:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"adapter_number": 2,
|
2016-06-04 11:40:39 +03:00
|
|
|
"node_id": "df5b3f33-a535-4f5b-b06a-ccc219e1f0d3",
|
2016-05-12 09:44:38 +03:00
|
|
|
"port_number": 4
|
2016-03-11 18:20:09 +02:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 201
|
2016-06-04 11:40:39 +03:00
|
|
|
CONTENT-LENGTH: 514
|
2016-03-11 18:20:09 +02:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2016-04-18 17:49:36 +03:00
|
|
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
2016-03-11 18:20:09 +02:00
|
|
|
X-ROUTE: /v2/projects/{project_id}/links
|
|
|
|
|
|
|
|
{
|
2016-05-12 09:44:38 +03:00
|
|
|
"capture_file_name": null,
|
|
|
|
"capture_file_path": null,
|
|
|
|
"capturing": false,
|
2016-06-04 11:40:39 +03:00
|
|
|
"link_id": "f7c8392b-d888-4824-8099-6f80fe40cef7",
|
2016-05-12 09:44:38 +03:00
|
|
|
"nodes": [
|
2016-03-11 18:20:09 +02:00
|
|
|
{
|
|
|
|
"adapter_number": 0,
|
2016-06-04 11:40:39 +03:00
|
|
|
"node_id": "17829f3f-f334-4051-910e-ffc5aa661c02",
|
2016-05-12 09:44:38 +03:00
|
|
|
"port_number": 3
|
2016-03-11 18:20:09 +02:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"adapter_number": 2,
|
2016-06-04 11:40:39 +03:00
|
|
|
"node_id": "df5b3f33-a535-4f5b-b06a-ccc219e1f0d3",
|
2016-05-12 09:44:38 +03:00
|
|
|
"port_number": 4
|
2016-03-11 18:20:09 +02:00
|
|
|
}
|
2016-06-04 11:40:39 +03:00
|
|
|
],
|
|
|
|
"project_id": "fa91f78d-63fc-4460-bcbd-219f9bf240b2"
|
2016-03-11 18:20:09 +02:00
|
|
|
}
|