2016-06-14 08:24:55 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/projects/ccb10cc2-de54-438f-9c63-31f995fd8602/links' -d '{"nodes": [{"adapter_number": 0, "node_id": "bea5549b-a28c-49b1-8b04-d6042e151274", "port_number": 3}, {"adapter_number": 2, "node_id": "93b44fb7-66b5-4d74-b38f-704becf510e5", "port_number": 4}]}'
|
2016-03-11 16:20:09 +00:00
|
|
|
|
2016-06-14 08:24:55 +00:00
|
|
|
POST /v2/projects/ccb10cc2-de54-438f-9c63-31f995fd8602/links HTTP/1.1
|
2016-03-11 16:20:09 +00:00
|
|
|
{
|
2016-05-12 06:44:38 +00:00
|
|
|
"nodes": [
|
2016-03-11 16:20:09 +00:00
|
|
|
{
|
|
|
|
"adapter_number": 0,
|
2016-06-14 08:24:55 +00:00
|
|
|
"node_id": "bea5549b-a28c-49b1-8b04-d6042e151274",
|
2016-05-12 06:44:38 +00:00
|
|
|
"port_number": 3
|
2016-03-11 16:20:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"adapter_number": 2,
|
2016-06-14 08:24:55 +00:00
|
|
|
"node_id": "93b44fb7-66b5-4d74-b38f-704becf510e5",
|
2016-05-12 06:44:38 +00:00
|
|
|
"port_number": 4
|
2016-03-11 16:20:09 +00:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 201
|
2016-06-04 08:40:39 +00:00
|
|
|
CONTENT-LENGTH: 514
|
2016-03-11 16:20:09 +00:00
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
2016-04-18 14:49:36 +00:00
|
|
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
2016-03-11 16:20:09 +00:00
|
|
|
X-ROUTE: /v2/projects/{project_id}/links
|
|
|
|
|
|
|
|
{
|
2016-05-12 06:44:38 +00:00
|
|
|
"capture_file_name": null,
|
|
|
|
"capture_file_path": null,
|
|
|
|
"capturing": false,
|
2016-06-14 08:24:55 +00:00
|
|
|
"link_id": "8ebfe109-0326-4c9b-8942-4859219a322c",
|
2016-05-12 06:44:38 +00:00
|
|
|
"nodes": [
|
2016-03-11 16:20:09 +00:00
|
|
|
{
|
|
|
|
"adapter_number": 0,
|
2016-06-14 08:24:55 +00:00
|
|
|
"node_id": "bea5549b-a28c-49b1-8b04-d6042e151274",
|
2016-05-12 06:44:38 +00:00
|
|
|
"port_number": 3
|
2016-03-11 16:20:09 +00:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"adapter_number": 2,
|
2016-06-14 08:24:55 +00:00
|
|
|
"node_id": "93b44fb7-66b5-4d74-b38f-704becf510e5",
|
2016-05-12 06:44:38 +00:00
|
|
|
"port_number": 4
|
2016-03-11 16:20:09 +00:00
|
|
|
}
|
2016-06-04 08:40:39 +00:00
|
|
|
],
|
2016-06-14 08:24:55 +00:00
|
|
|
"project_id": "ccb10cc2-de54-438f-9c63-31f995fd8602"
|
2016-03-11 16:20:09 +00:00
|
|
|
}
|