mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-12-21 21:57:49 +00:00
Update documentation
This commit is contained in:
parent
3ca4edef93
commit
e710eff22e
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/afe02424-fadb-4d0e-917d-b2841fcb4be0/adapters/0/ports/0/nio'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3dc0854f-0bbe-463c-ad04-6f5c99786540/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/afe02424-fadb-4d0e-917d-b2841fcb4be0/adapters/0/ports/0/nio HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3dc0854f-0bbe-463c-ad04-6f5c99786540/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/10473f90-0011-4736-91c6-07959b39e8d7'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/51d71d03-f1e8-4863-bcb7-cc13edbab6ef'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/10473f90-0011-4736-91c6-07959b39e8d7 HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/51d71d03-f1e8-4863-bcb7-cc13edbab6ef HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7d32a3f1-1a55-43af-8df8-52089d25913b/adapters/1/ports/0/nio'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8ec9575e-f928-4e6f-becd-795df7a0a20e/adapters/1/ports/0/nio'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7d32a3f1-1a55-43af-8df8-52089d25913b/adapters/1/ports/0/nio HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8ec9575e-f928-4e6f-becd-795df7a0a20e/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0b3fe4b7-a5b4-41ec-b954-f1d5f3aa8ad1'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bce7d29c-4ccb-42ad-a3b5-6534cdf09273'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0b3fe4b7-a5b4-41ec-b954-f1d5f3aa8ad1 HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bce7d29c-4ccb-42ad-a3b5-6534cdf09273 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/16acffe6-bd3c-4e4c-a6dc-474c6fe75eab/adapters/1/ports/0/nio'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a44ef10-61fb-4f0a-98d2-516a58b14e86/adapters/1/ports/0/nio'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/16acffe6-bd3c-4e4c-a6dc-474c6fe75eab/adapters/1/ports/0/nio HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/3a44ef10-61fb-4f0a-98d2-516a58b14e86/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/90895d0c-eb7b-423a-b0d9-9ec220295cde/adapters/0/ports/0/nio'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/fb25ddff-28fc-47d5-9151-c0f919dbcf7e/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/90895d0c-eb7b-423a-b0d9-9ec220295cde/adapters/0/ports/0/nio HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/fb25ddff-28fc-47d5-9151-c0f919dbcf7e/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/ffc5b9ae-4a21-4050-b1c3-ad7e39b3824c'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b2e2b69a-4934-4e7e-8bcd-e0f459725763'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/ffc5b9ae-4a21-4050-b1c3-ad7e39b3824c HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b2e2b69a-4934-4e7e-8bcd-e0f459725763 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4d11a031-e27e-490a-ab7c-d894a6133538/adapters/0/ports/0/nio'
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5e88621b-9b70-4121-91a2-4f788ca8b3b3/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4d11a031-e27e-490a-ab7c-d894a6133538/adapters/0/ports/0/nio HTTP/1.1
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5e88621b-9b70-4121-91a2-4f788ca8b3b3/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,11 +1,11 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/1cc0e78f-8e5f-4183-a6ec-765dd979c28b'
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/42132b18-719b-408c-a78a-a349c5966396'
|
||||||
|
|
||||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/1cc0e78f-8e5f-4183-a6ec-765dd979c28b HTTP/1.1
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/42132b18-719b-408c-a78a-a349c5966396 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 720
|
CONTENT-LENGTH: 721
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
|||||||
"l1_keepalives": false,
|
"l1_keepalives": false,
|
||||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/iou/1cc0e78f-8e5f-4183-a6ec-765dd979c28b",
|
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/42132b18-719b-408c-a78a-a349c5966396",
|
||||||
"node_id": "1cc0e78f-8e5f-4183-a6ec-765dd979c28b",
|
"node_id": "42132b18-719b-408c-a78a-a349c5966396",
|
||||||
"nvram": 128,
|
"nvram": 128,
|
||||||
"path": "iou.bin",
|
"path": "iou.bin",
|
||||||
"private_config": null,
|
"private_config": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d5633d29-ce9c-4688-8df7-a61f78db8917'
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/061d6c7c-0288-402d-9731-69caa6422a3c'
|
||||||
|
|
||||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d5633d29-ce9c-4688-8df7-a61f78db8917 HTTP/1.1
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/061d6c7c-0288-402d-9731-69caa6422a3c HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
|||||||
"kernel_image": "",
|
"kernel_image": "",
|
||||||
"kernel_image_md5sum": null,
|
"kernel_image_md5sum": null,
|
||||||
"legacy_networking": false,
|
"legacy_networking": false,
|
||||||
"mac_address": "00:dd:80:89:17:00",
|
"mac_address": "00:dd:80:2a:3c:00",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/d5633d29-ce9c-4688-8df7-a61f78db8917",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/061d6c7c-0288-402d-9731-69caa6422a3c",
|
||||||
"node_id": "d5633d29-ce9c-4688-8df7-a61f78db8917",
|
"node_id": "061d6c7c-0288-402d-9731-69caa6422a3c",
|
||||||
"options": "",
|
"options": "",
|
||||||
"platform": "x86_64",
|
"platform": "x86_64",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64",
|
||||||
"ram": 256,
|
"ram": 256,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
"usage": ""
|
"usage": ""
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/138f4a6d-56e8-4e19-a419-ca3c6a1881f1'
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3d3e36f1-5dc8-4c30-8421-c7a4f987d1be'
|
||||||
|
|
||||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/138f4a6d-56e8-4e19-a419-ca3c6a1881f1 HTTP/1.1
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3d3e36f1-5dc8-4c30-8421-c7a4f987d1be HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,7 +21,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
|||||||
"linked_clone": false,
|
"linked_clone": false,
|
||||||
"name": "VMTEST",
|
"name": "VMTEST",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "138f4a6d-56e8-4e19-a419-ca3c6a1881f1",
|
"node_id": "3d3e36f1-5dc8-4c30-8421-c7a4f987d1be",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"ram": 0,
|
"ram": 0,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a8ad89b2-58c2-4a3a-9def-0fa96cf60b04'
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/19f16d2f-1859-4a51-a816-45d1d8af547b'
|
||||||
|
|
||||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a8ad89b2-58c2-4a3a-9def-0fa96cf60b04 HTTP/1.1
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/19f16d2f-1859-4a51-a816-45d1d8af547b HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
|||||||
"console": 5720,
|
"console": 5720,
|
||||||
"console_type": "telnet",
|
"console_type": "telnet",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/a8ad89b2-58c2-4a3a-9def-0fa96cf60b04",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/19f16d2f-1859-4a51-a816-45d1d8af547b",
|
||||||
"node_id": "a8ad89b2-58c2-4a3a-9def-0fa96cf60b04",
|
"node_id": "19f16d2f-1859-4a51-a816-45d1d8af547b",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": null,
|
"startup_script": null,
|
||||||
"startup_script_path": null,
|
"startup_script_path": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/92936d82-5536-428d-b7e6-bbd5c9ec0ab0/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d810f789-7b5c-4e9c-9ddd-cb66aa11a48a/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/92936d82-5536-428d-b7e6-bbd5c9ec0ab0/adapters/0/ports/0/nio HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d810f789-7b5c-4e9c-9ddd-cb66aa11a48a/adapters/0/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"lport": 4242,
|
"lport": 4242,
|
||||||
"rhost": "127.0.0.1",
|
"rhost": "127.0.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/dd08a886-f8f6-4ed1-80b5-553ddc8a738f/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3ecbe3f3-4972-4c4e-bfd3-5d182c4bc6d8/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/dd08a886-f8f6-4ed1-80b5-553ddc8a738f/adapters/0/ports/0/start_capture HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/3ecbe3f3-4972-4c4e-bfd3-5d182c4bc6d8/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
{
|
{
|
||||||
"capture_file_name": "test.pcap",
|
"capture_file_name": "test.pcap",
|
||||||
"data_link_type": "DLT_EN10MB"
|
"data_link_type": "DLT_EN10MB"
|
||||||
@ -8,12 +8,12 @@ POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/dd08
|
|||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 145
|
CONTENT-LENGTH: 146
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
{
|
{
|
||||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/tmp/captures/test.pcap"
|
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/tmp/captures/test.pcap"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d92f7488-adc7-4d9f-acca-32d383be3760/adapters/0/ports/0/stop_capture' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/cb14a233-7808-4219-9df8-eb7c6e986f7a/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d92f7488-adc7-4d9f-acca-32d383be3760/adapters/0/ports/0/stop_capture HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/cb14a233-7808-4219-9df8-eb7c6e986f7a/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,16 +1,16 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "efaecf66-4a0b-4420-be86-674148fa0e60", "path": "iou.bin", "startup_config_content": "hostname test"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b", "path": "iou.bin", "startup_config_content": "hostname test"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes HTTP/1.1
|
||||||
{
|
{
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_id": "efaecf66-4a0b-4420-be86-674148fa0e60",
|
"node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b",
|
||||||
"path": "iou.bin",
|
"path": "iou.bin",
|
||||||
"startup_config_content": "hostname test"
|
"startup_config_content": "hostname test"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HTTP/1.1 201
|
HTTP/1.1 201
|
||||||
CONTENT-LENGTH: 736
|
CONTENT-LENGTH: 737
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
@ -25,8 +25,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes
|
|||||||
"l1_keepalives": false,
|
"l1_keepalives": false,
|
||||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/iou/efaecf66-4a0b-4420-be86-674148fa0e60",
|
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/17425b54-3868-47dc-94ba-7775e7c04d1b",
|
||||||
"node_id": "efaecf66-4a0b-4420-be86-674148fa0e60",
|
"node_id": "17425b54-3868-47dc-94ba-7775e7c04d1b",
|
||||||
"nvram": 128,
|
"nvram": 128,
|
||||||
"path": "iou.bin",
|
"path": "iou.bin",
|
||||||
"private_config": null,
|
"private_config": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/de14f54e-5131-458f-b573-b53e59619b56/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38dfca02-6ea0-44e8-b58c-b7bdca09308a/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/de14f54e-5131-458f-b573-b53e59619b56/adapters/1/ports/0/nio HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38dfca02-6ea0-44e8-b58c-b7bdca09308a/adapters/1/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"ethernet_device": "bridge0",
|
"ethernet_device": "bridge0",
|
||||||
"type": "nio_ethernet"
|
"type": "nio_ethernet"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/069284e9-12eb-4be8-a244-3927bb43582e/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93cf9e7b-070d-408b-81f5-283a9a0e247e/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/069284e9-12eb-4be8-a244-3927bb43582e/adapters/0/ports/0/start_capture HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93cf9e7b-070d-408b-81f5-283a9a0e247e/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
{
|
{
|
||||||
"capture_file_name": "test.pcap",
|
"capture_file_name": "test.pcap",
|
||||||
"data_link_type": "DLT_EN10MB"
|
"data_link_type": "DLT_EN10MB"
|
||||||
@ -8,12 +8,12 @@ POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/069284e
|
|||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 145
|
CONTENT-LENGTH: 146
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
{
|
{
|
||||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/tmp/captures/test.pcap"
|
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/tmp/captures/test.pcap"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/21919014-54d8-4231-82f9-5553642ad0e1/adapters/0/ports/0/stop_capture' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c8ebed81-7cfb-4392-8af8-2dff93de291c/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/21919014-54d8-4231-82f9-5553642ad0e1/adapters/0/ports/0/stop_capture HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c8ebed81-7cfb-4392-8af8-2dff93de291c/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/368fbab8-0f8c-4bfc-8522-94b3a9b863a4/reload' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3947b6cc-ea2a-4e04-92f3-cade4f6404fb/reload' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/368fbab8-0f8c-4bfc-8522-94b3a9b863a4/reload HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3947b6cc-ea2a-4e04-92f3-cade4f6404fb/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c186f0ad-0337-4e59-bad9-7489f7724fb3/start' -d '{"iourc_content": "test"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f8607a0c-8df3-482b-927f-321018542107/start' -d '{"iourc_content": "test"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c186f0ad-0337-4e59-bad9-7489f7724fb3/start HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f8607a0c-8df3-482b-927f-321018542107/start HTTP/1.1
|
||||||
{
|
{
|
||||||
"iourc_content": "test"
|
"iourc_content": "test"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 784
|
CONTENT-LENGTH: 785
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
@ -18,12 +18,12 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
|||||||
"console": 5711,
|
"console": 5711,
|
||||||
"console_type": "telnet",
|
"console_type": "telnet",
|
||||||
"ethernet_adapters": 2,
|
"ethernet_adapters": 2,
|
||||||
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9dgxyo_f/iourc",
|
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7xj2kn7r/iourc",
|
||||||
"l1_keepalives": false,
|
"l1_keepalives": false,
|
||||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/iou/c186f0ad-0337-4e59-bad9-7489f7724fb3",
|
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/f8607a0c-8df3-482b-927f-321018542107",
|
||||||
"node_id": "c186f0ad-0337-4e59-bad9-7489f7724fb3",
|
"node_id": "f8607a0c-8df3-482b-927f-321018542107",
|
||||||
"nvram": 128,
|
"nvram": 128,
|
||||||
"path": "iou.bin",
|
"path": "iou.bin",
|
||||||
"private_config": null,
|
"private_config": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/39bca3a8-3f06-4adb-8ae5-5689905f9486/stop' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e2dce29b-ae1b-415b-881b-855a0e194590/stop' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/39bca3a8-3f06-4adb-8ae5-5689905f9486/stop HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e2dce29b-ae1b-415b-881b-855a0e194590/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64", "ram": 1024}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64", "ram": 1024}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1
|
||||||
{
|
{
|
||||||
"hda_disk_image": "linux\u8f7d.img",
|
"hda_disk_image": "linux\u8f7d.img",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64",
|
||||||
"ram": 1024
|
"ram": 1024
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes
|
|||||||
"kernel_image": "",
|
"kernel_image": "",
|
||||||
"kernel_image_md5sum": null,
|
"kernel_image_md5sum": null,
|
||||||
"legacy_networking": false,
|
"legacy_networking": false,
|
||||||
"mac_address": "00:dd:80:4f:2e:00",
|
"mac_address": "00:dd:80:0c:c1:00",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/bc7d4e56-365c-4202-847e-6ed106b74f2e",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/38fa68a3-8717-4a7c-9bbb-3a64a9e60cc1",
|
||||||
"node_id": "bc7d4e56-365c-4202-847e-6ed106b74f2e",
|
"node_id": "38fa68a3-8717-4a7c-9bbb-3a64a9e60cc1",
|
||||||
"options": "",
|
"options": "",
|
||||||
"platform": "x86_64",
|
"platform": "x86_64",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64",
|
||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
"usage": ""
|
"usage": ""
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b4805a2e-88eb-4c42-ae4c-fd2648481e6c/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/945b147c-060f-4a79-ac1c-32c0c736e1bf/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b4805a2e-88eb-4c42-ae4c-fd2648481e6c/adapters/1/ports/0/nio HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/945b147c-060f-4a79-ac1c-32c0c736e1bf/adapters/1/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"ethernet_device": "eth0",
|
"ethernet_device": "eth0",
|
||||||
"type": "nio_ethernet"
|
"type": "nio_ethernet"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/faf4b8ca-b06e-4a9d-865c-a19dffbecfbb/reload' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f456a9c9-0425-488f-8172-c8e3df767434/reload' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/faf4b8ca-b06e-4a9d-865c-a19dffbecfbb/reload HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f456a9c9-0425-488f-8172-c8e3df767434/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d5be88c0-9daa-4ec5-af19-794279a2ab74/resume' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6599101f-a3ac-4303-826e-7092f7bab117/resume' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d5be88c0-9daa-4ec5-af19-794279a2ab74/resume HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6599101f-a3ac-4303-826e-7092f7bab117/resume HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/a08a9122-a95c-4a89-b186-c1bd2aedd631/start' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f8bf0222-44dc-4ac6-ab1c-32a50982d326/start' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/a08a9122-a95c-4a89-b186-c1bd2aedd631/start HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f8bf0222-44dc-4ac6-ab1c-32a50982d326/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
|
|||||||
"kernel_image": "",
|
"kernel_image": "",
|
||||||
"kernel_image_md5sum": null,
|
"kernel_image_md5sum": null,
|
||||||
"legacy_networking": false,
|
"legacy_networking": false,
|
||||||
"mac_address": "00:dd:80:d6:31:00",
|
"mac_address": "00:dd:80:d3:26:00",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/a08a9122-a95c-4a89-b186-c1bd2aedd631",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/f8bf0222-44dc-4ac6-ab1c-32a50982d326",
|
||||||
"node_id": "a08a9122-a95c-4a89-b186-c1bd2aedd631",
|
"node_id": "f8bf0222-44dc-4ac6-ab1c-32a50982d326",
|
||||||
"options": "",
|
"options": "",
|
||||||
"platform": "x86_64",
|
"platform": "x86_64",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64",
|
||||||
"ram": 256,
|
"ram": 256,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
"usage": ""
|
"usage": ""
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/006d3535-840b-44e3-8506-eddb110564bc/stop' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d0e548d5-1cd1-40a7-84af-225702ce993a/stop' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/006d3535-840b-44e3-8506-eddb110564bc/stop HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d0e548d5-1cd1-40a7-84af-225702ce993a/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ee874901-5d79-4faa-affe-05db857ecc8d/suspend' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/50bc44d6-3274-4e34-8967-f03bc6f77a38/suspend' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ee874901-5d79-4faa-affe-05db857ecc8d/suspend HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/50bc44d6-3274-4e34-8967-f03bc6f77a38/suspend HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -25,7 +25,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes
|
|||||||
"linked_clone": false,
|
"linked_clone": false,
|
||||||
"name": "VM1",
|
"name": "VM1",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "76c2367e-e886-4787-bf13-0013afee2752",
|
"node_id": "65abbe8d-dff3-43be-a3d1-c18f2f4658a2",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"ram": 0,
|
"ram": 0,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/39f94b38-dd28-4c26-9239-d1171001dcea/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/97942d37-2d75-4599-b04d-2b05444a4c05/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/39f94b38-dd28-4c26-9239-d1171001dcea/adapters/0/ports/0/nio HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/97942d37-2d75-4599-b04d-2b05444a4c05/adapters/0/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"lport": 4242,
|
"lport": 4242,
|
||||||
"rhost": "127.0.0.1",
|
"rhost": "127.0.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/05cf9641-d762-45c5-ae74-d3611d40bf79/reload' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8bf8e172-f166-42e0-bdfd-80aca6f2e4fb/reload' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/05cf9641-d762-45c5-ae74-d3611d40bf79/reload HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/8bf8e172-f166-42e0-bdfd-80aca6f2e4fb/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b7bb3fc0-cf2d-4249-b145-d2b299b55034/resume' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/622fb0cc-d606-460f-b747-40522d9b343a/resume' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b7bb3fc0-cf2d-4249-b145-d2b299b55034/resume HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/622fb0cc-d606-460f-b747-40522d9b343a/resume HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b5eb371f-7ffd-459e-930f-010d75ef0df3/start' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7a1579fb-2768-4999-bca3-647e9ba47a63/start' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b5eb371f-7ffd-459e-930f-010d75ef0df3/start HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7a1579fb-2768-4999-bca3-647e9ba47a63/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4d701eaa-6a38-40eb-83ed-4bfb9822093e/stop' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4bbb3869-411b-4a29-9d63-134c51da727e/stop' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4d701eaa-6a38-40eb-83ed-4bfb9822093e/stop HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4bbb3869-411b-4a29-9d63-134c51da727e/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/029533b2-c003-4d07-aac6-72d448734736/suspend' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21931428-40d7-466e-9c6c-26fbf90a6172/suspend' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/029533b2-c003-4d07-aac6-72d448734736/suspend HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/21931428-40d7-466e-9c6c-26fbf90a6172/suspend HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -18,8 +18,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes
|
|||||||
"console": 5720,
|
"console": 5720,
|
||||||
"console_type": "telnet",
|
"console_type": "telnet",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/fa1a7eb2-88ad-4ef1-bd68-ca56cca882f8",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/8a4dac14-7af3-4f14-bc94-866223f81c51",
|
||||||
"node_id": "fa1a7eb2-88ad-4ef1-bd68-ca56cca882f8",
|
"node_id": "8a4dac14-7af3-4f14-bc94-866223f81c51",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": null,
|
"startup_script": null,
|
||||||
"startup_script_path": null,
|
"startup_script_path": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/c5268754-4060-448d-aa6c-4d4c10af2682/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5cf81283-7a37-4fe4-b387-228eda727008/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/c5268754-4060-448d-aa6c-4d4c10af2682/adapters/0/ports/0/nio HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5cf81283-7a37-4fe4-b387-228eda727008/adapters/0/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"lport": 4242,
|
"lport": 4242,
|
||||||
"rhost": "127.0.0.1",
|
"rhost": "127.0.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/543d58a9-65f9-4f0e-9982-e5925db2a402/reload' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2721cc81-3274-4a89-9e7b-4cfb986a9e80/reload' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/543d58a9-65f9-4f0e-9982-e5925db2a402/reload HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/2721cc81-3274-4a89-9e7b-4cfb986a9e80/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/0fd5308e-4894-434b-b72b-f6fef405092d/start' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/696e00ce-d1b5-461f-8f8f-a5397762f0d4/start' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/0fd5308e-4894-434b-b72b-f6fef405092d/start HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/696e00ce-d1b5-461f-8f8f-a5397762f0d4/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
|||||||
"console": 5720,
|
"console": 5720,
|
||||||
"console_type": "telnet",
|
"console_type": "telnet",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/0fd5308e-4894-434b-b72b-f6fef405092d",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/696e00ce-d1b5-461f-8f8f-a5397762f0d4",
|
||||||
"node_id": "0fd5308e-4894-434b-b72b-f6fef405092d",
|
"node_id": "696e00ce-d1b5-461f-8f8f-a5397762f0d4",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": null,
|
"startup_script": null,
|
||||||
"startup_script_path": null,
|
"startup_script_path": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/99160adf-5437-42b0-8444-9af17e9e21d6/stop' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/75f19d3b-b46c-4f80-973f-d126e8011dd1/stop' -d '{}'
|
||||||
|
|
||||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/99160adf-5437-42b0-8444-9af17e9e21d6/stop HTTP/1.1
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/75f19d3b-b46c-4f80-973f-d126e8011dd1/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,20 +0,0 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/90010203-0405-0607-0809-0a0b0c0d0e0b' -d '{"name": "second_name", "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_update_path_project_non_l0"}'
|
|
||||||
|
|
||||||
PUT /v2/compute/projects/90010203-0405-0607-0809-0a0b0c0d0e0b HTTP/1.1
|
|
||||||
{
|
|
||||||
"name": "second_name",
|
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_update_path_project_non_l0"
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
HTTP/1.1 403
|
|
||||||
CONTENT-LENGTH: 96
|
|
||||||
CONTENT-TYPE: application/json
|
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
|
||||||
X-ROUTE: /v2/compute/projects/{project_id}
|
|
||||||
|
|
||||||
{
|
|
||||||
"message": "You are not allowed to modify the project directory path",
|
|
||||||
"status": 403
|
|
||||||
}
|
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/88891d34-4227-4d66-a4ab-b7af183df673' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/aca4e44c-9642-4662-826e-f88af1989002' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||||
|
|
||||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/88891d34-4227-4d66-a4ab-b7af183df673 HTTP/1.1
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/aca4e44c-9642-4662-826e-f88af1989002 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 5713,
|
"console": 5713,
|
||||||
"environment": "GNS3=1\nGNS4=0",
|
"environment": "GNS3=1\nGNS4=0",
|
||||||
@ -10,7 +10,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/88891
|
|||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 653
|
CONTENT-LENGTH: 654
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
@ -28,8 +28,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
|
|||||||
"environment": "GNS3=1\nGNS4=0",
|
"environment": "GNS3=1\nGNS4=0",
|
||||||
"image": "nginx:latest",
|
"image": "nginx:latest",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/docker/88891d34-4227-4d66-a4ab-b7af183df673",
|
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/docker/aca4e44c-9642-4662-826e-f88af1989002",
|
||||||
"node_id": "88891d34-4227-4d66-a4ab-b7af183df673",
|
"node_id": "aca4e44c-9642-4662-826e-f88af1989002",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"start_command": "yes",
|
"start_command": "yes",
|
||||||
"status": "stopped"
|
"status": "stopped"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2284ee92-6faf-4eef-8469-e4449c2163d6' -d '{"console": 5712, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a92f74-b721-4346-9f8d-11bc7f651f62' -d '{"console": 5712, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
||||||
|
|
||||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2284ee92-6faf-4eef-8469-e4449c2163d6 HTTP/1.1
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a92f74-b721-4346-9f8d-11bc7f651f62 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 5712,
|
"console": 5712,
|
||||||
"ethernet_adapters": 4,
|
"ethernet_adapters": 4,
|
||||||
@ -16,7 +16,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2284ee92
|
|||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 795
|
CONTENT-LENGTH: 796
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
@ -27,12 +27,12 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
|||||||
"console": 5712,
|
"console": 5712,
|
||||||
"console_type": "telnet",
|
"console_type": "telnet",
|
||||||
"ethernet_adapters": 4,
|
"ethernet_adapters": 4,
|
||||||
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpurz_vwy8/iourc",
|
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3osvg462/iourc",
|
||||||
"l1_keepalives": true,
|
"l1_keepalives": true,
|
||||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_json4/project-files/iou/2284ee92-6faf-4eef-8469-e4449c2163d6",
|
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_json4/project-files/iou/50a92f74-b721-4346-9f8d-11bc7f651f62",
|
||||||
"node_id": "2284ee92-6faf-4eef-8469-e4449c2163d6",
|
"node_id": "50a92f74-b721-4346-9f8d-11bc7f651f62",
|
||||||
"nvram": 2048,
|
"nvram": 2048,
|
||||||
"path": "iou.bin",
|
"path": "iou.bin",
|
||||||
"private_config": null,
|
"private_config": null,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/91996aa5-a205-42b0-80df-9a86685a8563' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||||
|
|
||||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9 HTTP/1.1
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/91996aa5-a205-42b0-80df-9a86685a8563 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 5712,
|
"console": 5712,
|
||||||
"hdb_disk_image": "linux\u8f7d.img",
|
"hdb_disk_image": "linux\u8f7d.img",
|
||||||
@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
|||||||
"kernel_image": "",
|
"kernel_image": "",
|
||||||
"kernel_image_md5sum": null,
|
"kernel_image_md5sum": null,
|
||||||
"legacy_networking": false,
|
"legacy_networking": false,
|
||||||
"mac_address": "00:dd:80:44:a9:00",
|
"mac_address": "00:dd:80:85:63:00",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/91996aa5-a205-42b0-80df-9a86685a8563",
|
||||||
"node_id": "d6ed47f2-4e1e-4ceb-a344-fbc6842f44a9",
|
"node_id": "91996aa5-a205-42b0-80df-9a86685a8563",
|
||||||
"options": "",
|
"options": "",
|
||||||
"platform": "x86_64",
|
"platform": "x86_64",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpysiulotp/qemu-system-x86_64",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpetl5k_20/qemu-system-x86_64",
|
||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
"usage": ""
|
"usage": ""
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/51520b2b-ec87-4fc2-993f-55b7906cc620' -d '{"console": 5721, "name": "test"}'
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5e581f48-254f-413c-994f-ff03a349d386' -d '{"console": 5721, "name": "test"}'
|
||||||
|
|
||||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/51520b2b-ec87-4fc2-993f-55b7906cc620 HTTP/1.1
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5e581f48-254f-413c-994f-ff03a349d386 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 5721,
|
"console": 5721,
|
||||||
"name": "test"
|
"name": "test"
|
||||||
@ -24,7 +24,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
|||||||
"linked_clone": false,
|
"linked_clone": false,
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "51520b2b-ec87-4fc2-993f-55b7906cc620",
|
"node_id": "5e581f48-254f-413c-994f-ff03a349d386",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"ram": 0,
|
"ram": 0,
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e9189e9d-f799-489d-9dc0-5fe7921cef82' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e27400b3-bf43-4ba1-95e5-7784db5b8d05' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||||
|
|
||||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e9189e9d-f799-489d-9dc0-5fe7921cef82 HTTP/1.1
|
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e27400b3-bf43-4ba1-95e5-7784db5b8d05 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 5722,
|
"console": 5722,
|
||||||
"name": "test",
|
"name": "test",
|
||||||
@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
|||||||
"console": 5722,
|
"console": 5722,
|
||||||
"console_type": "telnet",
|
"console_type": "telnet",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3sguypp7/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e9189e9d-f799-489d-9dc0-5fe7921cef82",
|
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpdrjz2o0r/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e27400b3-bf43-4ba1-95e5-7784db5b8d05",
|
||||||
"node_id": "e9189e9d-f799-489d-9dc0-5fe7921cef82",
|
"node_id": "e27400b3-bf43-4ba1-95e5-7784db5b8d05",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": "ip 192.168.1.1",
|
"startup_script": "ip 192.168.1.1",
|
||||||
"startup_script_path": "startup.vpc",
|
"startup_script_path": "startup.vpc",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/6e5a4f20-02c2-4577-9443-08a36f761048'
|
curl -i -X DELETE 'http://localhost:3080/v2/projects/7074992f-14e6-46f8-bd00-e0ebe49ba6bb'
|
||||||
|
|
||||||
DELETE /v2/projects/6e5a4f20-02c2-4577-9443-08a36f761048 HTTP/1.1
|
DELETE /v2/projects/7074992f-14e6-46f8-bd00-e0ebe49ba6bb HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/2c27794e-287e-489a-b4b8-0d58780088dd/drawings/cc8650a6-06cc-4ae2-a68f-67ba8a4dbced'
|
curl -i -X DELETE 'http://localhost:3080/v2/projects/8f835819-7610-431f-ac63-f7aac942da0f/drawings/751256c7-86de-4bca-a224-cd46bdc0a289'
|
||||||
|
|
||||||
DELETE /v2/projects/2c27794e-287e-489a-b4b8-0d58780088dd/drawings/cc8650a6-06cc-4ae2-a68f-67ba8a4dbced HTTP/1.1
|
DELETE /v2/projects/8f835819-7610-431f-ac63-f7aac942da0f/drawings/751256c7-86de-4bca-a224-cd46bdc0a289 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/78c7348f-eb8d-4fbb-a407-8a7dfd4161a0/links/36dc6f8d-c5e3-4b89-b356-0d10ccfbd313'
|
curl -i -X DELETE 'http://localhost:3080/v2/projects/15ec7567-33b4-4648-876a-b7128c33cb07/links/cbca8122-7162-4ce0-a2ad-82075775bada'
|
||||||
|
|
||||||
DELETE /v2/projects/78c7348f-eb8d-4fbb-a407-8a7dfd4161a0/links/36dc6f8d-c5e3-4b89-b356-0d10ccfbd313 HTTP/1.1
|
DELETE /v2/projects/15ec7567-33b4-4648-876a-b7128c33cb07/links/cbca8122-7162-4ce0-a2ad-82075775bada HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/98a9042c-e068-469c-bdbf-73f7d9358ec9/nodes/c838cd10-6930-4306-9a3b-7318563de413'
|
curl -i -X DELETE 'http://localhost:3080/v2/projects/3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1/nodes/fa1fc0e2-c4bd-4f0e-ad65-36a71111f381'
|
||||||
|
|
||||||
DELETE /v2/projects/98a9042c-e068-469c-bdbf-73f7d9358ec9/nodes/c838cd10-6930-4306-9a3b-7318563de413 HTTP/1.1
|
DELETE /v2/projects/3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1/nodes/fa1fc0e2-c4bd-4f0e-ad65-36a71111f381 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/56a6146a-721a-4062-8d86-bb1bd0dcd1af/snapshots/4d5a39b3-4e32-48e2-abf0-9fc8a20de7b7'
|
curl -i -X DELETE 'http://localhost:3080/v2/projects/b220fd00-88c0-4ae4-a457-9e06ece8243e/snapshots/61eeff3d-750f-4c73-beff-29757c862e1a'
|
||||||
|
|
||||||
DELETE /v2/projects/56a6146a-721a-4062-8d86-bb1bd0dcd1af/snapshots/4d5a39b3-4e32-48e2-abf0-9fc8a20de7b7 HTTP/1.1
|
DELETE /v2/projects/b220fd00-88c0-4ae4-a457-9e06ece8243e/snapshots/61eeff3d-750f-4c73-beff-29757c862e1a HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -5,7 +5,7 @@ GET /v2/projects HTTP/1.1
|
|||||||
|
|
||||||
|
|
||||||
HTTP/1.1 200
|
HTTP/1.1 200
|
||||||
CONTENT-LENGTH: 284
|
CONTENT-LENGTH: 285
|
||||||
CONTENT-TYPE: application/json
|
CONTENT-TYPE: application/json
|
||||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
@ -15,7 +15,7 @@ X-ROUTE: /v2/projects
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-91/test_list_projects1",
|
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-140/test_list_projects1",
|
||||||
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
|
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/3a2b5f84-6aba-4125-a044-0c925f727547'
|
curl -i -X GET 'http://localhost:3080/v2/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf'
|
||||||
|
|
||||||
GET /v2/projects/3a2b5f84-6aba-4125-a044-0c925f727547 HTTP/1.1
|
GET /v2/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpoxbcislw/projects/3a2b5f84-6aba-4125-a044-0c925f727547",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmplesu6g2y/projects/752e3ddf-bcad-4feb-b72c-6498a74bfabf",
|
||||||
"project_id": "3a2b5f84-6aba-4125-a044-0c925f727547",
|
"project_id": "752e3ddf-bcad-4feb-b72c-6498a74bfabf",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/ac9ddc94-514a-4517-821e-39e7c958591b/drawings'
|
curl -i -X GET 'http://localhost:3080/v2/projects/21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4/drawings'
|
||||||
|
|
||||||
GET /v2/projects/ac9ddc94-514a-4517-821e-39e7c958591b/drawings HTTP/1.1
|
GET /v2/projects/21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4/drawings HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -13,8 +13,8 @@ X-ROUTE: /v2/projects/{project_id}/drawings
|
|||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"drawing_id": "b717be1b-f3a8-4d7f-8b0f-c64c790f764c",
|
"drawing_id": "9fcf65e4-ffd7-47ad-af23-f161d5bbfa11",
|
||||||
"project_id": "ac9ddc94-514a-4517-821e-39e7c958591b",
|
"project_id": "21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4",
|
||||||
"rotation": 0,
|
"rotation": 0,
|
||||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||||
"x": 10,
|
"x": 10,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/ff74612a-3716-4a1b-94e3-611cfec47404/links'
|
curl -i -X GET 'http://localhost:3080/v2/projects/3863fae6-89f2-44b8-8440-130c111f5237/links'
|
||||||
|
|
||||||
GET /v2/projects/ff74612a-3716-4a1b-94e3-611cfec47404/links HTTP/1.1
|
GET /v2/projects/3863fae6-89f2-44b8-8440-130c111f5237/links HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "e1904198-89c6-4e40-98e9-dee68a74314f",
|
"link_id": "99a8611f-f802-4a23-9d6f-3f5c1fdc6efa",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"adapter_number": 0,
|
"adapter_number": 0,
|
||||||
@ -27,7 +27,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
|||||||
"x": -10,
|
"x": -10,
|
||||||
"y": -10
|
"y": -10
|
||||||
},
|
},
|
||||||
"node_id": "0295bcda-195e-49ec-8e09-d5cda9537656",
|
"node_id": "3d057b55-d638-4d38-9d22-a2f6f56d1799",
|
||||||
"port_number": 3
|
"port_number": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -39,10 +39,10 @@ X-ROUTE: /v2/projects/{project_id}/links
|
|||||||
"x": -10,
|
"x": -10,
|
||||||
"y": -10
|
"y": -10
|
||||||
},
|
},
|
||||||
"node_id": "3edda52d-d1e9-457e-adb0-b96cc431191c",
|
"node_id": "de315007-d0cf-499e-93b4-cf7ed94a14e6",
|
||||||
"port_number": 4
|
"port_number": 4
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"project_id": "ff74612a-3716-4a1b-94e3-611cfec47404"
|
"project_id": "3863fae6-89f2-44b8-8440-130c111f5237"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/fbe2b2ae-c040-41b4-83b8-3f342a1644fc/nodes'
|
curl -i -X GET 'http://localhost:3080/v2/projects/21f741da-fe54-4d8d-ad40-fef06d536dc5/nodes'
|
||||||
|
|
||||||
GET /v2/projects/fbe2b2ae-c040-41b4-83b8-3f342a1644fc/nodes HTTP/1.1
|
GET /v2/projects/21f741da-fe54-4d8d-ad40-fef06d536dc5/nodes HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -28,9 +28,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes
|
|||||||
},
|
},
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "5eb6752d-e2d1-41e3-9267-2b501086f499",
|
"node_id": "3797673d-fb0c-40d6-9fa1-c768167c1989",
|
||||||
"node_type": "vpcs",
|
"node_type": "vpcs",
|
||||||
"project_id": "fbe2b2ae-c040-41b4-83b8-3f342a1644fc",
|
"project_id": "21f741da-fe54-4d8d-ad40-fef06d536dc5",
|
||||||
"properties": {
|
"properties": {
|
||||||
"startup_script": "echo test"
|
"startup_script": "echo test"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/652e8a52-a4f2-4d7a-8282-9a705a8e7ff3/nodes/6f1375d0-4a33-4e45-8cc5-2ba9cae479d1/dynamips/auto_idlepc'
|
curl -i -X GET 'http://localhost:3080/v2/projects/2e182242-533c-45fa-a997-c4dbfd13f66c/nodes/444057ba-eb3d-4120-8f9d-8e764bab489f/dynamips/auto_idlepc'
|
||||||
|
|
||||||
GET /v2/projects/652e8a52-a4f2-4d7a-8282-9a705a8e7ff3/nodes/6f1375d0-4a33-4e45-8cc5-2ba9cae479d1/dynamips/auto_idlepc HTTP/1.1
|
GET /v2/projects/2e182242-533c-45fa-a997-c4dbfd13f66c/nodes/444057ba-eb3d-4120-8f9d-8e764bab489f/dynamips/auto_idlepc HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/92597fc5-7c1a-44a6-8b62-62b55dc350e2/nodes/f2b03514-8111-4cdd-b3e0-91a3c59bd360/dynamips/idlepc_proposals'
|
curl -i -X GET 'http://localhost:3080/v2/projects/086d8799-7ab0-4d3c-a355-da83ab65b8c8/nodes/18a28349-459a-4644-a220-6d3f1c87ba4f/dynamips/idlepc_proposals'
|
||||||
|
|
||||||
GET /v2/projects/92597fc5-7c1a-44a6-8b62-62b55dc350e2/nodes/f2b03514-8111-4cdd-b3e0-91a3c59bd360/dynamips/idlepc_proposals HTTP/1.1
|
GET /v2/projects/086d8799-7ab0-4d3c-a355-da83ab65b8c8/nodes/18a28349-459a-4644-a220-6d3f1c87ba4f/dynamips/idlepc_proposals HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:3080/v2/projects/3fb5988c-2390-44c4-a150-f595a2e215e6/snapshots'
|
curl -i -X GET 'http://localhost:3080/v2/projects/95248748-6c54-4935-a3e1-db0638fa923e/snapshots'
|
||||||
|
|
||||||
GET /v2/projects/3fb5988c-2390-44c4-a150-f595a2e215e6/snapshots HTTP/1.1
|
GET /v2/projects/95248748-6c54-4935-a3e1-db0638fa923e/snapshots HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -13,9 +13,9 @@ X-ROUTE: /v2/projects/{project_id}/snapshots
|
|||||||
|
|
||||||
[
|
[
|
||||||
{
|
{
|
||||||
"created_at": 1471255682,
|
"created_at": 1471275494,
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"project_id": "3fb5988c-2390-44c4-a150-f595a2e215e6",
|
"project_id": "95248748-6c54-4935-a3e1-db0638fa923e",
|
||||||
"snapshot_id": "26c7190c-1a66-43f1-9799-9c11e6a65cf3"
|
"snapshot_id": "2da92e42-c175-4d37-b0d4-85433c4a9be5"
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
|
@ -17,7 +17,7 @@ X-ROUTE: /v2/projects
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpeq5e2r05/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9tsioz_l/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/load
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmp466im_/projects/b57f5cb1-7161-4551-b042-7c5bcc239efe",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpixvpn8v2/projects/1207c9ba-3f18-4d4c-8adc-271cfaefed03",
|
||||||
"project_id": "b57f5cb1-7161-4551-b042-7c5bcc239efe",
|
"project_id": "1207c9ba-3f18-4d4c-8adc-271cfaefed03",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/d55aceb2-642f-4ef9-9d77-6b021edf1908/close' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6/close' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/d55aceb2-642f-4ef9-9d77-6b021edf1908/close HTTP/1.1
|
POST /v2/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6/close HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/close
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpz6d89io2/projects/d55aceb2-642f-4ef9-9d77-6b021edf1908",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp2uaousem/projects/c3ec9d20-749b-4e11-b2a5-922e807209c6",
|
||||||
"project_id": "d55aceb2-642f-4ef9-9d77-6b021edf1908",
|
"project_id": "c3ec9d20-749b-4e11-b2a5-922e807209c6",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/e7feced6-2e32-48f9-91e5-3ca6e091ffbd/drawings' -d '{"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>", "x": 10, "y": 20, "z": 0}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/7f91b223-b43b-46d8-9352-f486b561e319/drawings' -d '{"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>", "x": 10, "y": 20, "z": 0}'
|
||||||
|
|
||||||
POST /v2/projects/e7feced6-2e32-48f9-91e5-3ca6e091ffbd/drawings HTTP/1.1
|
POST /v2/projects/7f91b223-b43b-46d8-9352-f486b561e319/drawings HTTP/1.1
|
||||||
{
|
{
|
||||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||||
"x": 10,
|
"x": 10,
|
||||||
@ -17,8 +17,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
|
|||||||
X-ROUTE: /v2/projects/{project_id}/drawings
|
X-ROUTE: /v2/projects/{project_id}/drawings
|
||||||
|
|
||||||
{
|
{
|
||||||
"drawing_id": "ae38897a-9fcf-461b-aff0-20647d32b07f",
|
"drawing_id": "5a959fe2-7551-44de-b8b9-f143bed44b95",
|
||||||
"project_id": "e7feced6-2e32-48f9-91e5-3ca6e091ffbd",
|
"project_id": "7f91b223-b43b-46d8-9352-f486b561e319",
|
||||||
"rotation": 0,
|
"rotation": 0,
|
||||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||||
"x": 10,
|
"x": 10,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/7b0df311-f239-4e48-a1f5-21f7638f9588/duplicate' -d '{"name": "hello"}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/7d5b9b55-cff9-435b-9ee7-45f4f33efe64/duplicate' -d '{"name": "hello"}'
|
||||||
|
|
||||||
POST /v2/projects/7b0df311-f239-4e48-a1f5-21f7638f9588/duplicate HTTP/1.1
|
POST /v2/projects/7d5b9b55-cff9-435b-9ee7-45f4f33efe64/duplicate HTTP/1.1
|
||||||
{
|
{
|
||||||
"name": "hello"
|
"name": "hello"
|
||||||
}
|
}
|
||||||
@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/{project_id}/duplicate
|
|||||||
{
|
{
|
||||||
"filename": "hello.gns3",
|
"filename": "hello.gns3",
|
||||||
"name": "hello",
|
"name": "hello",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmzo55377/projects/hello",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp5dv92n90/projects/hello",
|
||||||
"project_id": "e34dd634-015e-4e8b-8d9d-8cbf93ffdd9f",
|
"project_id": "a8dc4a17-ae16-4b8b-8f2b-a3fa6a8c4556",
|
||||||
"status": "closed"
|
"status": "closed"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/89e290ee-3f68-4c3c-914d-2346298c653a/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "ca180310-9f4a-4a26-b0a7-e306dee99bf1", "port_number": 3}, {"adapter_number": 2, "node_id": "32376395-9f93-446a-8792-921b607b3d90", "port_number": 4}]}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/6fbfc705-c539-4013-a025-a5c76f7e1c8e/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "450a918f-d477-459e-bdab-26f32ab4de4e", "port_number": 3}, {"adapter_number": 2, "node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5", "port_number": 4}]}'
|
||||||
|
|
||||||
POST /v2/projects/89e290ee-3f68-4c3c-914d-2346298c653a/links HTTP/1.1
|
POST /v2/projects/6fbfc705-c539-4013-a025-a5c76f7e1c8e/links HTTP/1.1
|
||||||
{
|
{
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
@ -10,12 +10,12 @@ POST /v2/projects/89e290ee-3f68-4c3c-914d-2346298c653a/links HTTP/1.1
|
|||||||
"x": 42,
|
"x": 42,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"node_id": "ca180310-9f4a-4a26-b0a7-e306dee99bf1",
|
"node_id": "450a918f-d477-459e-bdab-26f32ab4de4e",
|
||||||
"port_number": 3
|
"port_number": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"adapter_number": 2,
|
"adapter_number": 2,
|
||||||
"node_id": "32376395-9f93-446a-8792-921b607b3d90",
|
"node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5",
|
||||||
"port_number": 4
|
"port_number": 4
|
||||||
}
|
}
|
||||||
]
|
]
|
||||||
@ -33,7 +33,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "ebeaf698-0187-45c8-9db0-f467a7b324be",
|
"link_id": "690b280c-0e37-41c7-a771-6665af22a542",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"adapter_number": 0,
|
"adapter_number": 0,
|
||||||
@ -42,7 +42,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
|||||||
"x": 42,
|
"x": 42,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"node_id": "ca180310-9f4a-4a26-b0a7-e306dee99bf1",
|
"node_id": "450a918f-d477-459e-bdab-26f32ab4de4e",
|
||||||
"port_number": 3
|
"port_number": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -54,9 +54,9 @@ X-ROUTE: /v2/projects/{project_id}/links
|
|||||||
"x": -10,
|
"x": -10,
|
||||||
"y": -10
|
"y": -10
|
||||||
},
|
},
|
||||||
"node_id": "32376395-9f93-446a-8792-921b607b3d90",
|
"node_id": "39edeb79-6111-45e4-a6c2-2b0610356dc5",
|
||||||
"port_number": 4
|
"port_number": 4
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"project_id": "89e290ee-3f68-4c3c-914d-2346298c653a"
|
"project_id": "6fbfc705-c539-4013-a025-a5c76f7e1c8e"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/e074e529-3775-414e-8453-ff8d2a974d4b/links/6f4467d9-bbb0-4d0a-9ccf-287dd524b21c/start_capture' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/1e55b8ee-8ed3-4295-8d51-3f09e3f705b1/links/cbb6ee48-d041-4962-992a-0375735707a1/start_capture' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/e074e529-3775-414e-8453-ff8d2a974d4b/links/6f4467d9-bbb0-4d0a-9ccf-287dd524b21c/start_capture HTTP/1.1
|
POST /v2/projects/1e55b8ee-8ed3-4295-8d51-3f09e3f705b1/links/cbb6ee48-d041-4962-992a-0375735707a1/start_capture HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ X-ROUTE: /v2/projects/{project_id}/links/{link_id}/start_capture
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "6f4467d9-bbb0-4d0a-9ccf-287dd524b21c",
|
"link_id": "cbb6ee48-d041-4962-992a-0375735707a1",
|
||||||
"nodes": [],
|
"nodes": [],
|
||||||
"project_id": "e074e529-3775-414e-8453-ff8d2a974d4b"
|
"project_id": "1e55b8ee-8ed3-4295-8d51-3f09e3f705b1"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/dd8bfb20-515c-4d38-b850-3315d3291bbe/links/313657f9-b4eb-4e2a-b6b3-0eb51eeb4657/stop_capture' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/34959503-cdb0-420d-b157-57e393f5118d/links/f5d59f5f-b6fc-43d6-886c-417234c123fb/stop_capture' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/dd8bfb20-515c-4d38-b850-3315d3291bbe/links/313657f9-b4eb-4e2a-b6b3-0eb51eeb4657/stop_capture HTTP/1.1
|
POST /v2/projects/34959503-cdb0-420d-b157-57e393f5118d/links/f5d59f5f-b6fc-43d6-886c-417234c123fb/stop_capture HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -15,7 +15,7 @@ X-ROUTE: /v2/projects/{project_id}/links/{link_id}/stop_capture
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "313657f9-b4eb-4e2a-b6b3-0eb51eeb4657",
|
"link_id": "f5d59f5f-b6fc-43d6-886c-417234c123fb",
|
||||||
"nodes": [],
|
"nodes": [],
|
||||||
"project_id": "dd8bfb20-515c-4d38-b850-3315d3291bbe"
|
"project_id": "34959503-cdb0-420d-b157-57e393f5118d"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/4e42ea2c-8fa2-4382-8115-5ff0caba1ee3/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
||||||
|
|
||||||
POST /v2/projects/4e42ea2c-8fa2-4382-8115-5ff0caba1ee3/nodes HTTP/1.1
|
POST /v2/projects/cc0908dc-6ae4-4186-b537-4f6b23c13f0c/nodes HTTP/1.1
|
||||||
{
|
{
|
||||||
"compute_id": "example.com",
|
"compute_id": "example.com",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
@ -34,9 +34,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes
|
|||||||
},
|
},
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "85d7395f-9138-45f1-9176-ad5540b26446",
|
"node_id": "a414b9fb-f612-4042-8f2a-59206dce9bf5",
|
||||||
"node_type": "vpcs",
|
"node_type": "vpcs",
|
||||||
"project_id": "4e42ea2c-8fa2-4382-8115-5ff0caba1ee3",
|
"project_id": "cc0908dc-6ae4-4186-b537-4f6b23c13f0c",
|
||||||
"properties": {
|
"properties": {
|
||||||
"startup_script": "echo test"
|
"startup_script": "echo test"
|
||||||
},
|
},
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/b545f5da-3277-47dc-82a3-b17aa13e4d89/nodes/9c10b9f2-cc01-4876-b16d-ae5e086e903a/reload' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/e2c0dd62-7f12-43e5-9296-c38e1145fb14/nodes/52481486-ea78-40ff-ac8b-036031fcaa5b/reload' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/b545f5da-3277-47dc-82a3-b17aa13e4d89/nodes/9c10b9f2-cc01-4876-b16d-ae5e086e903a/reload HTTP/1.1
|
POST /v2/projects/e2c0dd62-7f12-43e5-9296-c38e1145fb14/nodes/52481486-ea78-40ff-ac8b-036031fcaa5b/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/97cebf07-e289-43a3-8b53-92c48eaddb52/nodes/a400e342-2860-4f7b-8263-023ba6455817/start' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/ce2e3571-8926-41a2-9f51-62eaf007f9be/nodes/78ed81ef-3683-4410-be15-b5bc13dd9429/start' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/97cebf07-e289-43a3-8b53-92c48eaddb52/nodes/a400e342-2860-4f7b-8263-023ba6455817/start HTTP/1.1
|
POST /v2/projects/ce2e3571-8926-41a2-9f51-62eaf007f9be/nodes/78ed81ef-3683-4410-be15-b5bc13dd9429/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/aa160196-8910-45f1-826a-abd9b889c4ce/nodes/a5ce2eae-228c-48dd-9876-826727d3aba7/stop' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/3e0c6b33-c9ea-4135-8e1a-37f9a7dd3dfb/nodes/d903e05a-7e4b-46ce-9d49-484e1f10cd58/stop' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/aa160196-8910-45f1-826a-abd9b889c4ce/nodes/a5ce2eae-228c-48dd-9876-826727d3aba7/stop HTTP/1.1
|
POST /v2/projects/3e0c6b33-c9ea-4135-8e1a-37f9a7dd3dfb/nodes/d903e05a-7e4b-46ce-9d49-484e1f10cd58/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/626707c3-1edd-4639-b588-6b8f426308a1/nodes/2bacf7aa-a309-498c-872a-3c866936dd0e/suspend' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/6bf667a1-aac0-4668-bc80-c664d0d9dfe9/nodes/622d2b21-0306-4c9d-8466-ac0a5274e6f9/suspend' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/626707c3-1edd-4639-b588-6b8f426308a1/nodes/2bacf7aa-a309-498c-872a-3c866936dd0e/suspend HTTP/1.1
|
POST /v2/projects/6bf667a1-aac0-4668-bc80-c664d0d9dfe9/nodes/622d2b21-0306-4c9d-8466-ac0a5274e6f9/suspend HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/efad62d4-0bd1-46a8-b07d-5e8dda367b0c/nodes/reload' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/1ed78eb2-bc11-4a1f-b91a-8778c18dcf28/nodes/reload' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/efad62d4-0bd1-46a8-b07d-5e8dda367b0c/nodes/reload HTTP/1.1
|
POST /v2/projects/1ed78eb2-bc11-4a1f-b91a-8778c18dcf28/nodes/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/62a84209-94af-411c-8480-f8350acb6568/nodes/start' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/2ebf6f80-977c-4f82-ab8d-ec6de00f676e/nodes/start' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/62a84209-94af-411c-8480-f8350acb6568/nodes/start HTTP/1.1
|
POST /v2/projects/2ebf6f80-977c-4f82-ab8d-ec6de00f676e/nodes/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/0b0a8e44-e6e0-4376-a13d-1817aee278be/nodes/stop' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/a2ad1b32-c750-448f-83b5-f0b7f8807bd0/nodes/stop' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/0b0a8e44-e6e0-4376-a13d-1817aee278be/nodes/stop HTTP/1.1
|
POST /v2/projects/a2ad1b32-c750-448f-83b5-f0b7f8807bd0/nodes/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/3f2ef189-c551-4998-878d-5bb81a00d6c8/nodes/suspend' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/465579b6-39ec-4200-8f30-18e3b626a251/nodes/suspend' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/3f2ef189-c551-4998-878d-5bb81a00d6c8/nodes/suspend HTTP/1.1
|
POST /v2/projects/465579b6-39ec-4200-8f30-18e3b626a251/nodes/suspend HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/afd371b6-552c-4a5f-af95-3d84e5124e5c/open' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0/open' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/afd371b6-552c-4a5f-af95-3d84e5124e5c/open HTTP/1.1
|
POST /v2/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0/open HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/open
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpueqnywu8/projects/afd371b6-552c-4a5f-af95-3d84e5124e5c",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7ego61b6/projects/3d5c3c10-0934-4005-a3b6-4b75c53eb4a0",
|
||||||
"project_id": "afd371b6-552c-4a5f-af95-3d84e5124e5c",
|
"project_id": "3d5c3c10-0934-4005-a3b6-4b75c53eb4a0",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/40536e06-c138-4cb1-8202-ae562227bfc3/snapshots' -d '{"name": "snap1"}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/90cf6f4c-635d-470a-a4bd-7f098cac153b/snapshots' -d '{"name": "snap1"}'
|
||||||
|
|
||||||
POST /v2/projects/40536e06-c138-4cb1-8202-ae562227bfc3/snapshots HTTP/1.1
|
POST /v2/projects/90cf6f4c-635d-470a-a4bd-7f098cac153b/snapshots HTTP/1.1
|
||||||
{
|
{
|
||||||
"name": "snap1"
|
"name": "snap1"
|
||||||
}
|
}
|
||||||
@ -14,8 +14,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
|
|||||||
X-ROUTE: /v2/projects/{project_id}/snapshots
|
X-ROUTE: /v2/projects/{project_id}/snapshots
|
||||||
|
|
||||||
{
|
{
|
||||||
"created_at": 1471255682,
|
"created_at": 1471275495,
|
||||||
"name": "snap1",
|
"name": "snap1",
|
||||||
"project_id": "40536e06-c138-4cb1-8202-ae562227bfc3",
|
"project_id": "90cf6f4c-635d-470a-a4bd-7f098cac153b",
|
||||||
"snapshot_id": "74e0d54a-84c5-4cda-99ee-86acb1f6dcca"
|
"snapshot_id": "5ef71f28-7a2f-4f9d-bc74-809ac51ee7c4"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:3080/v2/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4/snapshots/37665774-a772-4b41-bd7c-c56b29c0da60/restore' -d '{}'
|
curl -i -X POST 'http://localhost:3080/v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore' -d '{}'
|
||||||
|
|
||||||
POST /v2/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4/snapshots/37665774-a772-4b41-bd7c-c56b29c0da60/restore HTTP/1.1
|
POST /v2/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f/snapshots/c99cf511-3108-4880-9236-61289bcf847a/restore HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/snapshots/{snapshot_id}/restore
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "test.gns3",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph58tcopa/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpo86kamvs/projects/130d7a29-9b49-4688-8cf2-074a0434eb7f",
|
||||||
"project_id": "9ec22e91-7e4d-4537-83a5-c9e783c5cfe4",
|
"project_id": "130d7a29-9b49-4688-8cf2-074a0434eb7f",
|
||||||
"status": "opened"
|
"status": "opened"
|
||||||
}
|
}
|
||||||
|
22
docs/api/examples/controller_put_projectsprojectid.txt
Normal file
22
docs/api/examples/controller_put_projectsprojectid.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
curl -i -X PUT 'http://localhost:3080/v2/projects/10010203-0405-0607-0809-0a0b0c0d0e0f' -d '{"name": "test2"}'
|
||||||
|
|
||||||
|
PUT /v2/projects/10010203-0405-0607-0809-0a0b0c0d0e0f HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "test2"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
CONTENT-LENGTH: 256
|
||||||
|
CONTENT-TYPE: application/json
|
||||||
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||||
|
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||||
|
X-ROUTE: /v2/projects/{project_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"filename": "test.gns3",
|
||||||
|
"name": "test2",
|
||||||
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphkjv57k4/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"status": "opened"
|
||||||
|
}
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/projects/9acee488-d70d-461c-aaa8-7ec372fe8da1/drawings/8e03860f-98bc-4325-9908-83aa773229bd' -d '{"x": 42}'
|
curl -i -X PUT 'http://localhost:3080/v2/projects/9f19ae38-fc03-43d0-97a4-99f3780c27a4/drawings/29de97b8-f1c9-4af3-9e39-1eade9566912' -d '{"x": 42}'
|
||||||
|
|
||||||
PUT /v2/projects/9acee488-d70d-461c-aaa8-7ec372fe8da1/drawings/8e03860f-98bc-4325-9908-83aa773229bd HTTP/1.1
|
PUT /v2/projects/9f19ae38-fc03-43d0-97a4-99f3780c27a4/drawings/29de97b8-f1c9-4af3-9e39-1eade9566912 HTTP/1.1
|
||||||
{
|
{
|
||||||
"x": 42
|
"x": 42
|
||||||
}
|
}
|
||||||
@ -14,8 +14,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
|
|||||||
X-ROUTE: /v2/projects/{project_id}/drawings/{drawing_id}
|
X-ROUTE: /v2/projects/{project_id}/drawings/{drawing_id}
|
||||||
|
|
||||||
{
|
{
|
||||||
"drawing_id": "8e03860f-98bc-4325-9908-83aa773229bd",
|
"drawing_id": "29de97b8-f1c9-4af3-9e39-1eade9566912",
|
||||||
"project_id": "9acee488-d70d-461c-aaa8-7ec372fe8da1",
|
"project_id": "9f19ae38-fc03-43d0-97a4-99f3780c27a4",
|
||||||
"rotation": 0,
|
"rotation": 0,
|
||||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||||
"x": 42,
|
"x": 42,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:3080/v2/projects/325eb479-c038-4ab3-8fbc-df2195ea8ac9/nodes/9f6d26de-6d57-42cf-88fe-abd956544813' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
curl -i -X PUT 'http://localhost:3080/v2/projects/bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b/nodes/886d119e-2966-4f46-8f8a-05bcff37154a' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
||||||
|
|
||||||
PUT /v2/projects/325eb479-c038-4ab3-8fbc-df2195ea8ac9/nodes/9f6d26de-6d57-42cf-88fe-abd956544813 HTTP/1.1
|
PUT /v2/projects/bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b/nodes/886d119e-2966-4f46-8f8a-05bcff37154a HTTP/1.1
|
||||||
{
|
{
|
||||||
"compute_id": "example.com",
|
"compute_id": "example.com",
|
||||||
"name": "test",
|
"name": "test",
|
||||||
@ -34,9 +34,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}
|
|||||||
},
|
},
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "9f6d26de-6d57-42cf-88fe-abd956544813",
|
"node_id": "886d119e-2966-4f46-8f8a-05bcff37154a",
|
||||||
"node_type": "vpcs",
|
"node_type": "vpcs",
|
||||||
"project_id": "325eb479-c038-4ab3-8fbc-df2195ea8ac9",
|
"project_id": "bfc7b4de-f0ea-42cd-9d48-a8d3f26de83b",
|
||||||
"properties": {},
|
"properties": {},
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
"symbol": ":/symbols/computer.svg",
|
"symbol": ":/symbols/computer.svg",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"drawing_id": "b717be1b-f3a8-4d7f-8b0f-c64c790f764c",
|
"drawing_id": "9fcf65e4-ffd7-47ad-af23-f161d5bbfa11",
|
||||||
"project_id": "ac9ddc94-514a-4517-821e-39e7c958591b",
|
"project_id": "21c986f6-bcb3-49ca-b2a7-13b95b1ae1b4",
|
||||||
"rotation": 0,
|
"rotation": 0,
|
||||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||||
"x": 10,
|
"x": 10,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"drawing_id": "cc8650a6-06cc-4ae2-a68f-67ba8a4dbced",
|
"drawing_id": "751256c7-86de-4bca-a224-cd46bdc0a289",
|
||||||
"project_id": "2c27794e-287e-489a-b4b8-0d58780088dd",
|
"project_id": "8f835819-7610-431f-ac63-f7aac942da0f",
|
||||||
"rotation": 0,
|
"rotation": 0,
|
||||||
"svg": "<svg></svg>",
|
"svg": "<svg></svg>",
|
||||||
"x": 0,
|
"x": 0,
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
{
|
{
|
||||||
"drawing_id": "8e03860f-98bc-4325-9908-83aa773229bd",
|
"drawing_id": "29de97b8-f1c9-4af3-9e39-1eade9566912",
|
||||||
"project_id": "9acee488-d70d-461c-aaa8-7ec372fe8da1",
|
"project_id": "9f19ae38-fc03-43d0-97a4-99f3780c27a4",
|
||||||
"rotation": 0,
|
"rotation": 0,
|
||||||
"x": 42,
|
"x": 42,
|
||||||
"y": 20,
|
"y": 20,
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "e1904198-89c6-4e40-98e9-dee68a74314f",
|
"link_id": "99a8611f-f802-4a23-9d6f-3f5c1fdc6efa",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"adapter_number": 0,
|
"adapter_number": 0,
|
||||||
@ -13,7 +13,7 @@
|
|||||||
"x": -10,
|
"x": -10,
|
||||||
"y": -10
|
"y": -10
|
||||||
},
|
},
|
||||||
"node_id": "0295bcda-195e-49ec-8e09-d5cda9537656",
|
"node_id": "3d057b55-d638-4d38-9d22-a2f6f56d1799",
|
||||||
"port_number": 3
|
"port_number": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -25,9 +25,9 @@
|
|||||||
"x": -10,
|
"x": -10,
|
||||||
"y": -10
|
"y": -10
|
||||||
},
|
},
|
||||||
"node_id": "3edda52d-d1e9-457e-adb0-b96cc431191c",
|
"node_id": "de315007-d0cf-499e-93b4-cf7ed94a14e6",
|
||||||
"port_number": 4
|
"port_number": 4
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"project_id": "ff74612a-3716-4a1b-94e3-611cfec47404"
|
"project_id": "3863fae6-89f2-44b8-8440-130c111f5237"
|
||||||
}
|
}
|
@ -2,7 +2,7 @@
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "36dc6f8d-c5e3-4b89-b356-0d10ccfbd313",
|
"link_id": "cbca8122-7162-4ce0-a2ad-82075775bada",
|
||||||
"nodes": [],
|
"nodes": [],
|
||||||
"project_id": "78c7348f-eb8d-4fbb-a407-8a7dfd4161a0"
|
"project_id": "15ec7567-33b4-4648-876a-b7128c33cb07"
|
||||||
}
|
}
|
@ -2,7 +2,7 @@
|
|||||||
"capture_file_name": null,
|
"capture_file_name": null,
|
||||||
"capture_file_path": null,
|
"capture_file_path": null,
|
||||||
"capturing": false,
|
"capturing": false,
|
||||||
"link_id": "d6bd065b-ce1e-42e4-83ac-ee156bc8ffc8",
|
"link_id": "31e0db7c-41ab-4e05-856e-423b1e8a0446",
|
||||||
"nodes": [
|
"nodes": [
|
||||||
{
|
{
|
||||||
"adapter_number": 0,
|
"adapter_number": 0,
|
||||||
@ -11,7 +11,7 @@
|
|||||||
"x": 64,
|
"x": 64,
|
||||||
"y": 0
|
"y": 0
|
||||||
},
|
},
|
||||||
"node_id": "b16d98dd-5931-489a-adab-e0bb0c76bac8",
|
"node_id": "d4ff8824-cdd7-42dd-b2ca-e036cf1c0c75",
|
||||||
"port_number": 3
|
"port_number": 3
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
@ -23,9 +23,9 @@
|
|||||||
"x": -10,
|
"x": -10,
|
||||||
"y": -10
|
"y": -10
|
||||||
},
|
},
|
||||||
"node_id": "4d7deda6-218c-4aa2-919e-3f0e45eeab3d",
|
"node_id": "716ea0af-7552-4d48-af8c-6c15db93138f",
|
||||||
"port_number": 4
|
"port_number": 4
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
"project_id": "e275a44e-0981-46eb-89a8-969f2304c5e0"
|
"project_id": "2d2b17e8-6934-419a-93e6-096c08464b82"
|
||||||
}
|
}
|
@ -14,9 +14,9 @@
|
|||||||
},
|
},
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "c838cd10-6930-4306-9a3b-7318563de413",
|
"node_id": "fa1fc0e2-c4bd-4f0e-ad65-36a71111f381",
|
||||||
"node_type": "vpcs",
|
"node_type": "vpcs",
|
||||||
"project_id": "98a9042c-e068-469c-bdbf-73f7d9358ec9",
|
"project_id": "3c6bdfb3-52a2-4c28-9f2b-cb6c6d4d3ae1",
|
||||||
"properties": {},
|
"properties": {},
|
||||||
"status": "stopped",
|
"status": "stopped",
|
||||||
"symbol": ":/symbols/computer.svg",
|
"symbol": ":/symbols/computer.svg",
|
||||||
|
@ -14,9 +14,9 @@
|
|||||||
},
|
},
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"node_directory": null,
|
"node_directory": null,
|
||||||
"node_id": "32174e7e-c566-4f0b-aa4b-c9b983c02305",
|
"node_id": "92be25c6-878a-487a-86e3-80591c20780e",
|
||||||
"node_type": "vpcs",
|
"node_type": "vpcs",
|
||||||
"project_id": "168cae40-9e3b-46fa-8954-e622068c734b",
|
"project_id": "aa6eca4a-1d69-4fb0-aa10-3bb3f5d24ca0",
|
||||||
"properties": {
|
"properties": {
|
||||||
"startup_config": "test.cfg"
|
"startup_config": "test.cfg"
|
||||||
},
|
},
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
"filename": "test.gns3",
|
"filename": "Test.gns3",
|
||||||
"name": "test",
|
"name": "Test",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph58tcopa/projects/9ec22e91-7e4d-4537-83a5-c9e783c5cfe4",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpolyetet3/projects/dfe0d81a-4b32-47ef-92df-aa1c61f9d882",
|
||||||
"project_id": "9ec22e91-7e4d-4537-83a5-c9e783c5cfe4",
|
"project_id": "dfe0d81a-4b32-47ef-92df-aa1c61f9d882",
|
||||||
"status": "closed"
|
"status": "closed"
|
||||||
}
|
}
|
7
docs/api/notifications/project.updated.json
Normal file
7
docs/api/notifications/project.updated.json
Normal file
@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"filename": "test.gns3",
|
||||||
|
"name": "test2",
|
||||||
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphkjv57k4/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"status": "opened"
|
||||||
|
}
|
@ -9,8 +9,8 @@ Stop a packet capture on an ATM switch instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the switch
|
|
||||||
- **adapter_number**: Adapter on the switch (always 0)
|
- **adapter_number**: Adapter on the switch (always 0)
|
||||||
|
- **port_number**: Port on the switch
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ Add a NIO to an ATM switch instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the switch
|
|
||||||
- **adapter_number**: Adapter on the switch (always 0)
|
- **adapter_number**: Adapter on the switch (always 0)
|
||||||
|
- **port_number**: Port on the switch
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ Remove a NIO from an ATM switch instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the switch
|
|
||||||
- **adapter_number**: Adapter on the switch (always 0)
|
- **adapter_number**: Adapter on the switch (always 0)
|
||||||
|
- **port_number**: Port on the switch
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ Start a packet capture on an ATM switch instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the switch
|
|
||||||
- **adapter_number**: Adapter on the switch (always 0)
|
- **adapter_number**: Adapter on the switch (always 0)
|
||||||
|
- **port_number**: Port on the switch
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ Add a NIO to a cloud instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the cloud
|
|
||||||
- **adapter_number**: Adapter on the cloud (always 0)
|
- **adapter_number**: Adapter on the cloud (always 0)
|
||||||
|
- **port_number**: Port on the cloud
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
@ -27,8 +27,8 @@ Remove a NIO from a cloud instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the cloud
|
|
||||||
- **adapter_number**: Adapter on the cloud (always 0)
|
- **adapter_number**: Adapter on the cloud (always 0)
|
||||||
|
- **port_number**: Port on the cloud
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ Start a packet capture on a cloud instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the cloud
|
|
||||||
- **adapter_number**: Adapter on the cloud (always 0)
|
- **adapter_number**: Adapter on the cloud (always 0)
|
||||||
|
- **port_number**: Port on the cloud
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ Stop a packet capture on a cloud instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the cloud
|
|
||||||
- **adapter_number**: Adapter on the cloud (always 0)
|
- **adapter_number**: Adapter on the cloud (always 0)
|
||||||
|
- **port_number**: Port on the cloud
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
@ -9,8 +9,8 @@ Add a NIO to a Docker container
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the adapter
|
|
||||||
- **adapter_number**: Adapter where the nio should be added
|
- **adapter_number**: Adapter where the nio should be added
|
||||||
|
- **port_number**: Port on the adapter
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
@ -33,8 +33,8 @@ Remove a NIO from a Docker container
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **port_number**: Port on the adapter
|
|
||||||
- **adapter_number**: Adapter where the nio should be added
|
- **adapter_number**: Adapter where the nio should be added
|
||||||
|
- **port_number**: Port on the adapter
|
||||||
- **project_id**: Project UUID
|
- **project_id**: Project UUID
|
||||||
- **node_id**: Node UUID
|
- **node_id**: Node UUID
|
||||||
|
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user