1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-25 16:28:11 +00:00

Update documentation

This commit is contained in:
Julien Duponchelle 2016-06-29 14:18:38 +02:00
parent c4d7a0b8fc
commit 224708e451
No known key found for this signature in database
GPG Key ID: CE8B29639E07F5E8
84 changed files with 530 additions and 231 deletions

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e6401a9d-c867-4b68-8bdb-d0aea4495b3f/adapters/0/ports/0/nio'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/80666914-950d-4290-97f1-437fbc028bc5/adapters/0/ports/0/nio'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e6401a9d-c867-4b68-8bdb-d0aea4495b3f/adapters/0/ports/0/nio HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/80666914-950d-4290-97f1-437fbc028bc5/adapters/0/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38899bcc-cece-4d4d-b892-09096e50602b'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9ce22dc6-5de5-4446-970a-874ba515cd3a'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/38899bcc-cece-4d4d-b892-09096e50602b HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9ce22dc6-5de5-4446-970a-874ba515cd3a HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f42a1342-ad1e-43d1-8310-6c0052d30366/adapters/1/ports/0/nio'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5e2b3753-807c-4dc2-a412-265c516b31fd/adapters/1/ports/0/nio'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/f42a1342-ad1e-43d1-8310-6c0052d30366/adapters/1/ports/0/nio HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5e2b3753-807c-4dc2-a412-265c516b31fd/adapters/1/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/69c0df1d-001a-4aff-8c30-ac51eb33a059'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ff156ea7-94ca-4876-b920-d449c8f2c411'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/69c0df1d-001a-4aff-8c30-ac51eb33a059 HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ff156ea7-94ca-4876-b920-d449c8f2c411 HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b4729143-dbbf-41b2-9515-bbdff283b6ad/adapters/1/ports/0/nio'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/026f8bee-df53-47a3-850f-b64ebfd8dbaf/adapters/1/ports/0/nio'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b4729143-dbbf-41b2-9515-bbdff283b6ad/adapters/1/ports/0/nio HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/026f8bee-df53-47a3-850f-b64ebfd8dbaf/adapters/1/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7055c344-cf36-4379-8bb0-344c4f74edcd/adapters/0/ports/0/nio'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/f1f877b6-a7a1-4bf2-9e73-a6f9068bae30/adapters/0/ports/0/nio'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7055c344-cf36-4379-8bb0-344c4f74edcd/adapters/0/ports/0/nio HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/f1f877b6-a7a1-4bf2-9e73-a6f9068bae30/adapters/0/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/d04467b1-391d-41a9-93cd-8b43d973d911'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a2275f0e-db6c-4ea1-85f0-07b6200d011e'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/d04467b1-391d-41a9-93cd-8b43d973d911 HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a2275f0e-db6c-4ea1-85f0-07b6200d011e HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1633b2fd-3095-4c15-b879-1c308d9c0f33/adapters/0/ports/0/nio'
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/661923f6-e1eb-4462-b634-03832e2893af/adapters/0/ports/0/nio'
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1633b2fd-3095-4c15-b879-1c308d9c0f33/adapters/0/ports/0/nio HTTP/1.1
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/661923f6-e1eb-4462-b634-03832e2893af/adapters/0/ports/0/nio HTTP/1.1

View File

@ -5,7 +5,7 @@ GET /v2/compute/interfaces HTTP/1.1
HTTP/1.1 200
CONTENT-LENGTH: 1994
CONTENT-LENGTH: 9218
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/2.0.0dev1
@ -101,5 +101,305 @@ X-ROUTE: /v2/compute/interfaces
"ip_address": "",
"mac_address": "0a:00:27:00:00:07",
"name": "vboxnet7"
},
{
"id": "vmnet1",
"ip_address": "172.16.16.1",
"mac_address": "00:50:56:c0:00:01",
"name": "vmnet1"
},
{
"id": "vmnet10",
"ip_address": "172.16.7.1",
"mac_address": "00:50:56:c0:00:0a",
"name": "vmnet10"
},
{
"id": "vmnet11",
"ip_address": "172.16.8.1",
"mac_address": "00:50:56:c0:00:0b",
"name": "vmnet11"
},
{
"id": "vmnet12",
"ip_address": "172.16.9.1",
"mac_address": "00:50:56:c0:00:0c",
"name": "vmnet12"
},
{
"id": "vmnet13",
"ip_address": "172.16.10.1",
"mac_address": "00:50:56:c0:00:0d",
"name": "vmnet13"
},
{
"id": "vmnet14",
"ip_address": "172.16.11.1",
"mac_address": "00:50:56:c0:00:0e",
"name": "vmnet14"
},
{
"id": "vmnet15",
"ip_address": "172.16.12.1",
"mac_address": "00:50:56:c0:00:0f",
"name": "vmnet15"
},
{
"id": "vmnet16",
"ip_address": "172.16.13.1",
"mac_address": "00:50:56:c0:00:10",
"name": "vmnet16"
},
{
"id": "vmnet17",
"ip_address": "172.16.14.1",
"mac_address": "00:50:56:c0:00:11",
"name": "vmnet17"
},
{
"id": "vmnet18",
"ip_address": "172.16.15.1",
"mac_address": "00:50:56:c0:00:12",
"name": "vmnet18"
},
{
"id": "vmnet19",
"ip_address": "172.16.17.1",
"mac_address": "00:50:56:c0:00:13",
"name": "vmnet19"
},
{
"id": "vmnet2",
"ip_address": "172.16.0.1",
"mac_address": "00:50:56:c0:00:02",
"name": "vmnet2"
},
{
"id": "vmnet20",
"ip_address": "172.16.18.1",
"mac_address": "00:50:56:c0:00:14",
"name": "vmnet20"
},
{
"id": "vmnet21",
"ip_address": "172.16.19.1",
"mac_address": "00:50:56:c0:00:15",
"name": "vmnet21"
},
{
"id": "vmnet22",
"ip_address": "172.16.20.1",
"mac_address": "00:50:56:c0:00:16",
"name": "vmnet22"
},
{
"id": "vmnet23",
"ip_address": "172.16.21.1",
"mac_address": "00:50:56:c0:00:17",
"name": "vmnet23"
},
{
"id": "vmnet24",
"ip_address": "172.16.22.1",
"mac_address": "00:50:56:c0:00:18",
"name": "vmnet24"
},
{
"id": "vmnet25",
"ip_address": "172.16.23.1",
"mac_address": "00:50:56:c0:00:19",
"name": "vmnet25"
},
{
"id": "vmnet26",
"ip_address": "172.16.24.1",
"mac_address": "00:50:56:c0:00:1a",
"name": "vmnet26"
},
{
"id": "vmnet27",
"ip_address": "172.16.25.1",
"mac_address": "00:50:56:c0:00:1b",
"name": "vmnet27"
},
{
"id": "vmnet28",
"ip_address": "172.16.26.1",
"mac_address": "00:50:56:c0:00:1c",
"name": "vmnet28"
},
{
"id": "vmnet29",
"ip_address": "172.16.27.1",
"mac_address": "00:50:56:c0:00:1d",
"name": "vmnet29"
},
{
"id": "vmnet3",
"ip_address": "172.16.1.1",
"mac_address": "00:50:56:c0:00:03",
"name": "vmnet3"
},
{
"id": "vmnet30",
"ip_address": "172.16.28.1",
"mac_address": "00:50:56:c0:00:1e",
"name": "vmnet30"
},
{
"id": "vmnet31",
"ip_address": "172.16.29.1",
"mac_address": "00:50:56:c0:00:1f",
"name": "vmnet31"
},
{
"id": "vmnet32",
"ip_address": "172.16.30.1",
"mac_address": "00:50:56:c0:00:20",
"name": "vmnet32"
},
{
"id": "vmnet33",
"ip_address": "172.16.31.1",
"mac_address": "00:50:56:c0:00:21",
"name": "vmnet33"
},
{
"id": "vmnet34",
"ip_address": "172.16.32.1",
"mac_address": "00:50:56:c0:00:22",
"name": "vmnet34"
},
{
"id": "vmnet35",
"ip_address": "172.16.33.1",
"mac_address": "00:50:56:c0:00:23",
"name": "vmnet35"
},
{
"id": "vmnet36",
"ip_address": "172.16.34.1",
"mac_address": "00:50:56:c0:00:24",
"name": "vmnet36"
},
{
"id": "vmnet37",
"ip_address": "172.16.35.1",
"mac_address": "00:50:56:c0:00:25",
"name": "vmnet37"
},
{
"id": "vmnet38",
"ip_address": "172.16.36.1",
"mac_address": "00:50:56:c0:00:26",
"name": "vmnet38"
},
{
"id": "vmnet39",
"ip_address": "172.16.37.1",
"mac_address": "00:50:56:c0:00:27",
"name": "vmnet39"
},
{
"id": "vmnet4",
"ip_address": "172.16.2.1",
"mac_address": "00:50:56:c0:00:04",
"name": "vmnet4"
},
{
"id": "vmnet40",
"ip_address": "172.16.38.1",
"mac_address": "00:50:56:c0:00:28",
"name": "vmnet40"
},
{
"id": "vmnet41",
"ip_address": "172.16.39.1",
"mac_address": "00:50:56:c0:00:29",
"name": "vmnet41"
},
{
"id": "vmnet42",
"ip_address": "172.16.40.1",
"mac_address": "00:50:56:c0:00:2a",
"name": "vmnet42"
},
{
"id": "vmnet43",
"ip_address": "172.16.41.1",
"mac_address": "00:50:56:c0:00:2b",
"name": "vmnet43"
},
{
"id": "vmnet44",
"ip_address": "172.16.42.1",
"mac_address": "00:50:56:c0:00:2c",
"name": "vmnet44"
},
{
"id": "vmnet45",
"ip_address": "172.16.43.1",
"mac_address": "00:50:56:c0:00:2d",
"name": "vmnet45"
},
{
"id": "vmnet46",
"ip_address": "172.16.44.1",
"mac_address": "00:50:56:c0:00:2e",
"name": "vmnet46"
},
{
"id": "vmnet47",
"ip_address": "172.16.45.1",
"mac_address": "00:50:56:c0:00:2f",
"name": "vmnet47"
},
{
"id": "vmnet48",
"ip_address": "172.16.46.1",
"mac_address": "00:50:56:c0:00:30",
"name": "vmnet48"
},
{
"id": "vmnet49",
"ip_address": "172.16.47.1",
"mac_address": "00:50:56:c0:00:31",
"name": "vmnet49"
},
{
"id": "vmnet5",
"ip_address": "172.16.3.1",
"mac_address": "00:50:56:c0:00:05",
"name": "vmnet5"
},
{
"id": "vmnet50",
"ip_address": "172.16.48.1",
"mac_address": "00:50:56:c0:00:32",
"name": "vmnet50"
},
{
"id": "vmnet6",
"ip_address": "172.16.4.1",
"mac_address": "00:50:56:c0:00:06",
"name": "vmnet6"
},
{
"id": "vmnet7",
"ip_address": "172.16.5.1",
"mac_address": "00:50:56:c0:00:07",
"name": "vmnet7"
},
{
"id": "vmnet8",
"ip_address": "192.168.229.1",
"mac_address": "00:50:56:c0:00:08",
"name": "vmnet8"
},
{
"id": "vmnet9",
"ip_address": "172.16.6.1",
"mac_address": "00:50:56:c0:00:09",
"name": "vmnet9"
}
]

View File

@ -14,10 +14,10 @@ X-ROUTE: /v2/compute/projects
[
{
"name": "test",
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
},
{
"name": "test",
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
}
]

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5c1a5daa-e73e-43fa-b227-5817e37b21a1'
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bf96bdd7-49de-45f8-8b48-0d7bb2ce1392'
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5c1a5daa-e73e-43fa-b227-5817e37b21a1 HTTP/1.1
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bf96bdd7-49de-45f8-8b48-0d7bb2ce1392 HTTP/1.1
@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
"l1_keepalives": false,
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/5c1a5daa-e73e-43fa-b227-5817e37b21a1",
"node_id": "5c1a5daa-e73e-43fa-b227-5817e37b21a1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/bf96bdd7-49de-45f8-8b48-0d7bb2ce1392",
"node_id": "bf96bdd7-49de-45f8-8b48-0d7bb2ce1392",
"nvram": 128,
"path": "iou.bin",
"private_config": null,

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/25af9eb0-fe8f-44aa-8a11-b10f62b5ccd8/configs'
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/fdaa617e-a4fd-45cb-b830-1ce62e34d24d/configs'
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/25af9eb0-fe8f-44aa-8a11-b10f62b5ccd8/configs HTTP/1.1
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/fdaa617e-a4fd-45cb-b830-1ce62e34d24d/configs HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/045bc286-3602-470a-8359-898c970104b7'
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/eaae5159-6ad1-407a-a7db-990a30be5987'
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/045bc286-3602-470a-8359-898c970104b7 HTTP/1.1
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/eaae5159-6ad1-407a-a7db-990a30be5987 HTTP/1.1
@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:dd:80:04:b7:00",
"mac_address": "00:dd:80:59:87:00",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/045bc286-3602-470a-8359-898c970104b7",
"node_id": "045bc286-3602-470a-8359-898c970104b7",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/eaae5159-6ad1-407a-a7db-990a30be5987",
"node_id": "eaae5159-6ad1-407a-a7db-990a30be5987",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp70x6fp9/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppxlqz2q6/qemu-system-x86_64",
"ram": 256,
"status": "stopped",
"usage": ""

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dd1cb202-82d6-4915-b5a8-068a01f254de'
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/cbdad143-02ed-4ada-916e-47c175fdbb3a'
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dd1cb202-82d6-4915-b5a8-068a01f254de HTTP/1.1
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/cbdad143-02ed-4ada-916e-47c175fdbb3a HTTP/1.1
@ -20,7 +20,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
"headless": false,
"name": "VMTEST",
"node_directory": null,
"node_id": "dd1cb202-82d6-4915-b5a8-068a01f254de",
"node_id": "cbdad143-02ed-4ada-916e-47c175fdbb3a",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"ram": 0,
"status": "stopped",

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/3465108c-ed93-48e8-b7d0-ec6c5daa1541'
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1f46cb1e-417c-449d-ab20-06452dcebf3f'
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/3465108c-ed93-48e8-b7d0-ec6c5daa1541 HTTP/1.1
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/1f46cb1e-417c-449d-ab20-06452dcebf3f HTTP/1.1
@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
"console": 5009,
"console_type": "telnet",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/3465108c-ed93-48e8-b7d0-ec6c5daa1541",
"node_id": "3465108c-ed93-48e8-b7d0-ec6c5daa1541",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/1f46cb1e-417c-449d-ab20-06452dcebf3f",
"node_id": "1f46cb1e-417c-449d-ab20-06452dcebf3f",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"startup_script": null,
"startup_script_path": null,

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/5761550c-21e4-44e4-b30d-55233c7d0cf7/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/b3c0e521-af7c-4cce-bf6b-e1556ff46be0/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/5761550c-21e4-44e4-b30d-55233c7d0cf7/adapters/0/ports/0/nio HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/b3c0e521-af7c-4cce-bf6b-e1556ff46be0/adapters/0/ports/0/nio HTTP/1.1
{
"lport": 4242,
"rhost": "127.0.0.1",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/6dbdee18-3761-44f3-93c7-4e50e9667815/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/ed10c861-7d3d-4d1b-8bbf-880f63318ac9/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/6dbdee18-3761-44f3-93c7-4e50e9667815/adapters/0/ports/0/start_capture HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/ed10c861-7d3d-4d1b-8bbf-880f63318ac9/adapters/0/ports/0/start_capture HTTP/1.1
{
"capture_file_name": "test.pcap",
"data_link_type": "DLT_EN10MB"
@ -15,5 +15,5 @@ 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
{
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/tmp/captures/test.pcap"
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/tmp/captures/test.pcap"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/10c912af-224a-4ca2-adaf-fc024c7df8ac/adapters/0/ports/0/stop_capture' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/5358d4b5-3915-4c0e-9c1e-8cf8f0e3a21a/adapters/0/ports/0/stop_capture' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/10c912af-224a-4ca2-adaf-fc024c7df8ac/adapters/0/ports/0/stop_capture HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/5358d4b5-3915-4c0e-9c1e-8cf8f0e3a21a/adapters/0/ports/0/stop_capture HTTP/1.1
{}

View File

@ -1,9 +1,9 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "16cffcbf-a0d1-4a98-89ff-b99475404122", "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": "42497072-bf05-4460-ab72-d1b66a398db0", "path": "iou.bin", "startup_config_content": "hostname test"}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes HTTP/1.1
{
"name": "PC TEST 1",
"node_id": "16cffcbf-a0d1-4a98-89ff-b99475404122",
"node_id": "42497072-bf05-4460-ab72-d1b66a398db0",
"path": "iou.bin",
"startup_config_content": "hostname test"
}
@ -25,8 +25,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes
"l1_keepalives": false,
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/16cffcbf-a0d1-4a98-89ff-b99475404122",
"node_id": "16cffcbf-a0d1-4a98-89ff-b99475404122",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/42497072-bf05-4460-ab72-d1b66a398db0",
"node_id": "42497072-bf05-4460-ab72-d1b66a398db0",
"nvram": 128,
"path": "iou.bin",
"private_config": null,

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/6f5ddf25-47ce-4f48-945e-0be18532102b/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/b308f696-712d-4ab6-8f93-bbf0d38bc89b/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/6f5ddf25-47ce-4f48-945e-0be18532102b/adapters/1/ports/0/nio HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b308f696-712d-4ab6-8f93-bbf0d38bc89b/adapters/1/ports/0/nio HTTP/1.1
{
"ethernet_device": "bridge0",
"type": "nio_ethernet"

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7075fda1-3898-435c-bd8c-6e540042f703/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/16d14d26-f840-4b6d-9448-bfebda27bfa0/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/7075fda1-3898-435c-bd8c-6e540042f703/adapters/0/ports/0/start_capture HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/16d14d26-f840-4b6d-9448-bfebda27bfa0/adapters/0/ports/0/start_capture HTTP/1.1
{
"capture_file_name": "test.pcap",
"data_link_type": "DLT_EN10MB"
@ -15,5 +15,5 @@ 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
{
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/tmp/captures/test.pcap"
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/tmp/captures/test.pcap"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/a0bcbed9-0a6c-43c9-822c-7e95094a43ff/adapters/0/ports/0/stop_capture' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7e17d58c-c826-4cbf-9dc4-4d402df68392/adapters/0/ports/0/stop_capture' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/a0bcbed9-0a6c-43c9-822c-7e95094a43ff/adapters/0/ports/0/stop_capture HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7e17d58c-c826-4cbf-9dc4-4d402df68392/adapters/0/ports/0/stop_capture HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8a6914c3-c4d1-418e-be39-31d4e868fc77/reload' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b171b97a-2b3a-43ed-a926-d83e8bcf1d7a/reload' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/8a6914c3-c4d1-418e-be39-31d4e868fc77/reload HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b171b97a-2b3a-43ed-a926-d83e8bcf1d7a/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/6e3e0c35-b31d-4138-915f-89f53d1d002f/start' -d '{"iourc_content": "test"}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b48c7121-655b-4fa5-b0e9-f513c063067a/start' -d '{"iourc_content": "test"}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/6e3e0c35-b31d-4138-915f-89f53d1d002f/start HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b48c7121-655b-4fa5-b0e9-f513c063067a/start HTTP/1.1
{
"iourc_content": "test"
}
@ -18,12 +18,12 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
"console": 5000,
"console_type": "telnet",
"ethernet_adapters": 2,
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp34e4nwfi/iourc",
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpggab7jn1/iourc",
"l1_keepalives": false,
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/6e3e0c35-b31d-4138-915f-89f53d1d002f",
"node_id": "6e3e0c35-b31d-4138-915f-89f53d1d002f",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/b48c7121-655b-4fa5-b0e9-f513c063067a",
"node_id": "b48c7121-655b-4fa5-b0e9-f513c063067a",
"nvram": 128,
"path": "iou.bin",
"private_config": null,

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bd682169-bc5c-4f29-8880-4d832c24f256/stop' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/938b7bfb-66d7-42b7-8456-cc3bf11bf6e1/stop' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bd682169-bc5c-4f29-8880-4d832c24f256/stop HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/938b7bfb-66d7-42b7-8456-cc3bf11bf6e1/stop HTTP/1.1
{}

View File

@ -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/tmpp70x6fp9/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/tmppxlqz2q6/qemu-system-x86_64", "ram": 1024}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1
{
"hda_disk_image": "linux\u8f7d.img",
"name": "PC TEST 1",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp70x6fp9/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppxlqz2q6/qemu-system-x86_64",
"ram": 1024
}
@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:dd:80:78:57:00",
"mac_address": "00:dd:80:3b:b2:00",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/1b056004-c435-4f91-9f35-1511e2607857",
"node_id": "1b056004-c435-4f91-9f35-1511e2607857",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/6c215183-8fd9-4a96-b9f2-58ecf7b73bb2",
"node_id": "6c215183-8fd9-4a96-b9f2-58ecf7b73bb2",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp70x6fp9/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppxlqz2q6/qemu-system-x86_64",
"ram": 1024,
"status": "stopped",
"usage": ""

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/48e66f95-a693-41bf-85b6-5afa6daf5323/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/5311f612-c0d4-42b6-a592-8d700c7170b5/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/48e66f95-a693-41bf-85b6-5afa6daf5323/adapters/1/ports/0/nio HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/5311f612-c0d4-42b6-a592-8d700c7170b5/adapters/1/ports/0/nio HTTP/1.1
{
"ethernet_device": "eth0",
"type": "nio_ethernet"

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/303478f6-e602-4e8d-88b7-4c3a348d9d46/reload' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/cc65d1ae-7624-4308-a024-6ce262c5771a/reload' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/303478f6-e602-4e8d-88b7-4c3a348d9d46/reload HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/cc65d1ae-7624-4308-a024-6ce262c5771a/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/598aeb6f-5294-4075-b73c-5552c7293902/resume' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f433ae3a-42a3-4f91-a94c-9fa9b0b54c4c/resume' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/598aeb6f-5294-4075-b73c-5552c7293902/resume HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f433ae3a-42a3-4f91-a94c-9fa9b0b54c4c/resume HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/15b9b8b9-323e-4d35-b9d0-7c64aaeed44f/start' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/26feaf3b-7983-4c48-938f-8dc4ba10afa5/start' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/15b9b8b9-323e-4d35-b9d0-7c64aaeed44f/start HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/26feaf3b-7983-4c48-938f-8dc4ba10afa5/start HTTP/1.1
{}
@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:dd:80:d4:4f:00",
"mac_address": "00:dd:80:af:a5:00",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/15b9b8b9-323e-4d35-b9d0-7c64aaeed44f",
"node_id": "15b9b8b9-323e-4d35-b9d0-7c64aaeed44f",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/26feaf3b-7983-4c48-938f-8dc4ba10afa5",
"node_id": "26feaf3b-7983-4c48-938f-8dc4ba10afa5",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp70x6fp9/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppxlqz2q6/qemu-system-x86_64",
"ram": 256,
"status": "stopped",
"usage": ""

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c7d6fd94-5905-42df-8544-843205dacd0a/stop' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/2f6c1506-2d07-43ba-a639-4cc2350e3357/stop' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c7d6fd94-5905-42df-8544-843205dacd0a/stop HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/2f6c1506-2d07-43ba-a639-4cc2350e3357/stop HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7bab964d-bd8d-4676-9288-346e8b733def/suspend' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/9a8dc111-0c14-42b5-9ea0-f9b1bc3f5064/suspend' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7bab964d-bd8d-4676-9288-346e8b733def/suspend HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/9a8dc111-0c14-42b5-9ea0-f9b1bc3f5064/suspend HTTP/1.1
{}

View File

@ -24,7 +24,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes
"headless": false,
"name": "VM1",
"node_directory": null,
"node_id": "bceb2282-882c-4a02-97ce-a7bc60502a4d",
"node_id": "d3a3793c-e923-4038-bfa3-d5b24709e193",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"ram": 0,
"status": "stopped",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0651cad4-cddb-41a3-bc1d-6a2a10b4ad0c/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/3f772bbb-9670-4613-89ca-a7864a155923/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/0651cad4-cddb-41a3-bc1d-6a2a10b4ad0c/adapters/0/ports/0/nio HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/3f772bbb-9670-4613-89ca-a7864a155923/adapters/0/ports/0/nio HTTP/1.1
{
"lport": 4242,
"rhost": "127.0.0.1",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a5b32685-4fa2-43c3-8926-a960177db284/reload' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0f898c28-c9ee-44d9-8d3c-a7f16d73dba4/reload' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a5b32685-4fa2-43c3-8926-a960177db284/reload HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0f898c28-c9ee-44d9-8d3c-a7f16d73dba4/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/426774ed-ec4d-40bd-9709-5327cc6f0761/resume' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/41c90061-32bc-4c52-8339-4f5faedca8b1/resume' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/426774ed-ec4d-40bd-9709-5327cc6f0761/resume HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/41c90061-32bc-4c52-8339-4f5faedca8b1/resume HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2231d685-b7ee-4c79-b08b-f9a97a07a455/start' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a5f81f44-41e4-4d2c-84b7-deb170428ded/start' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2231d685-b7ee-4c79-b08b-f9a97a07a455/start HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a5f81f44-41e4-4d2c-84b7-deb170428ded/start HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/16337b31-7703-4a95-af19-eeaae2060c39/stop' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5fe45c51-95ee-434c-bc4e-68af3ef601f8/stop' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/16337b31-7703-4a95-af19-eeaae2060c39/stop HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5fe45c51-95ee-434c-bc4e-68af3ef601f8/stop HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/6559c9d2-63d5-4a6d-a8f3-cba9933f26b5/suspend' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/6816e57b-7aa0-4025-b13d-6d00c53113aa/suspend' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/6559c9d2-63d5-4a6d-a8f3-cba9933f26b5/suspend HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/6816e57b-7aa0-4025-b13d-6d00c53113aa/suspend HTTP/1.1
{}

View File

@ -18,8 +18,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes
"console": 5009,
"console_type": "telnet",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/840ed69a-9116-4b6c-964c-87a0267c0c51",
"node_id": "840ed69a-9116-4b6c-964c-87a0267c0c51",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/77ba062b-1654-4c92-9d71-3c31ce6b6164",
"node_id": "77ba062b-1654-4c92-9d71-3c31ce6b6164",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"startup_script": null,
"startup_script_path": null,

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/7b4a01ca-a5ff-4852-8577-d02edb018abe/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/605d9435-2e8e-41b2-92ac-c13577e5e2cd/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/7b4a01ca-a5ff-4852-8577-d02edb018abe/adapters/0/ports/0/nio HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/605d9435-2e8e-41b2-92ac-c13577e5e2cd/adapters/0/ports/0/nio HTTP/1.1
{
"lport": 4242,
"rhost": "127.0.0.1",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/6e0f73b4-c362-4415-ab43-166b023dfcd0/reload' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/13f1e028-00a5-4e6a-ba69-5305ae119206/reload' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/6e0f73b4-c362-4415-ab43-166b023dfcd0/reload HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/13f1e028-00a5-4e6a-ba69-5305ae119206/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/01bf00a8-ee47-4927-96da-5ef8284fbbac/start' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/94c8d5fa-7e95-44c5-be2d-caa04cf6460d/start' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/01bf00a8-ee47-4927-96da-5ef8284fbbac/start HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/94c8d5fa-7e95-44c5-be2d-caa04cf6460d/start HTTP/1.1
{}
@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
"console": 5009,
"console_type": "telnet",
"name": "PC TEST 1",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/01bf00a8-ee47-4927-96da-5ef8284fbbac",
"node_id": "01bf00a8-ee47-4927-96da-5ef8284fbbac",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/94c8d5fa-7e95-44c5-be2d-caa04cf6460d",
"node_id": "94c8d5fa-7e95-44c5-be2d-caa04cf6460d",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"startup_script": null,
"startup_script_path": null,

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/cbc88db4-2cfa-4998-aeea-185de00e528e/stop' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/71a56900-2afe-48ee-808f-59c376bf90a6/stop' -d '{}'
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/cbc88db4-2cfa-4998-aeea-185de00e528e/stop HTTP/1.1
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/71a56900-2afe-48ee-808f-59c376bf90a6/stop HTTP/1.1
{}

View File

@ -1,9 +1,9 @@
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-149/test_update_path_project_non_l0"}'
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-400/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-149/test_update_path_project_non_l0"
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-400/test_update_path_project_non_l0"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/45040e87-83ba-4925-a11e-a0f7dc5e7774' -d '{"console": 5002, "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/5dd5ecf8-66a4-4f18-a040-469bdb8168e7' -d '{"console": 5002, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/45040e87-83ba-4925-a11e-a0f7dc5e7774 HTTP/1.1
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/5dd5ecf8-66a4-4f18-a040-469bdb8168e7 HTTP/1.1
{
"console": 5002,
"environment": "GNS3=1\nGNS4=0",
@ -28,8 +28,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
"environment": "GNS3=1\nGNS4=0",
"image": "nginx:latest",
"name": "test",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/45040e87-83ba-4925-a11e-a0f7dc5e7774",
"node_id": "45040e87-83ba-4925-a11e-a0f7dc5e7774",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/5dd5ecf8-66a4-4f18-a040-469bdb8168e7",
"node_id": "5dd5ecf8-66a4-4f18-a040-469bdb8168e7",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"start_command": "yes",
"status": "stopped"

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/93a66cdf-2e67-4add-8528-198e5e351211' -d '{"console": 5001, "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/2ac41811-76ef-4e8e-8911-21571433f8c5' -d '{"console": 5001, "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/93a66cdf-2e67-4add-8528-198e5e351211 HTTP/1.1
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2ac41811-76ef-4e8e-8911-21571433f8c5 HTTP/1.1
{
"console": 5001,
"ethernet_adapters": 4,
@ -27,12 +27,12 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
"console": 5001,
"console_type": "telnet",
"ethernet_adapters": 4,
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3yqh6gld/iourc",
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps0mdxqc5/iourc",
"l1_keepalives": true,
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
"name": "test",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphmhjfjyj/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/93a66cdf-2e67-4add-8528-198e5e351211",
"node_id": "93a66cdf-2e67-4add-8528-198e5e351211",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3wi0bosu/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/2ac41811-76ef-4e8e-8911-21571433f8c5",
"node_id": "2ac41811-76ef-4e8e-8911-21571433f8c5",
"nvram": 2048,
"path": "iou.bin",
"private_config": null,

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/fa77ed3b-e2ec-44fa-8186-b93eb988641e' -d '{"console": 5001, "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/e72ee144-d082-45a1-9e40-612f8e87e169' -d '{"console": 5001, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/fa77ed3b-e2ec-44fa-8186-b93eb988641e HTTP/1.1
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/e72ee144-d082-45a1-9e40-612f8e87e169 HTTP/1.1
{
"console": 5001,
"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_md5sum": null,
"legacy_networking": false,
"mac_address": "00:dd:80:64:1e:00",
"mac_address": "00:dd:80:e1:69:00",
"name": "test",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/fa77ed3b-e2ec-44fa-8186-b93eb988641e",
"node_id": "fa77ed3b-e2ec-44fa-8186-b93eb988641e",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/e72ee144-d082-45a1-9e40-612f8e87e169",
"node_id": "e72ee144-d082-45a1-9e40-612f8e87e169",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp70x6fp9/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppxlqz2q6/qemu-system-x86_64",
"ram": 1024,
"status": "stopped",
"usage": ""

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/9462cd9f-b23b-47df-b797-588211f2e256' -d '{"console": 5010, "name": "test"}'
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b7923dd9-b67b-4feb-95f4-dd98665cb0c0' -d '{"console": 5010, "name": "test"}'
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/9462cd9f-b23b-47df-b797-588211f2e256 HTTP/1.1
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/b7923dd9-b67b-4feb-95f4-dd98665cb0c0 HTTP/1.1
{
"console": 5010,
"name": "test"
@ -23,7 +23,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
"headless": false,
"name": "test",
"node_directory": null,
"node_id": "9462cd9f-b23b-47df-b797-588211f2e256",
"node_id": "b7923dd9-b67b-4feb-95f4-dd98665cb0c0",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"ram": 0,
"status": "stopped",

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/877f27ed-525b-4f02-ae6c-2c9388fbf522' -d '{"console": 5011, "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/0e07afde-7278-475a-be20-999474849eb0' -d '{"console": 5011, "name": "test", "startup_script": "ip 192.168.1.1"}'
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/877f27ed-525b-4f02-ae6c-2c9388fbf522 HTTP/1.1
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/0e07afde-7278-475a-be20-999474849eb0 HTTP/1.1
{
"console": 5011,
"name": "test",
@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
"console": 5011,
"console_type": "telnet",
"name": "test",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp25s35np5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/877f27ed-525b-4f02-ae6c-2c9388fbf522",
"node_id": "877f27ed-525b-4f02-ae6c-2c9388fbf522",
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp7hg5dyd9/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/0e07afde-7278-475a-be20-999474849eb0",
"node_id": "0e07afde-7278-475a-be20-999474849eb0",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"startup_script": "ip 192.168.1.1",
"startup_script_path": "startup.vpc",

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/projects/b860d380-e717-4c02-8150-f41839ffd6e5'
curl -i -X DELETE 'http://localhost:3080/v2/projects/47be58b6-fc50-4675-9cf9-13f02338257a'
DELETE /v2/projects/b860d380-e717-4c02-8150-f41839ffd6e5 HTTP/1.1
DELETE /v2/projects/47be58b6-fc50-4675-9cf9-13f02338257a HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/projects/15658c41-0703-4425-b8ce-2f716e71bd1d/drawings/8e948655-f788-4a52-9502-e86df1f61d91'
curl -i -X DELETE 'http://localhost:3080/v2/projects/7a89a8b6-0524-4753-88d9-0a58fd051155/drawings/754c76da-3312-4e92-b54f-3811255b0396'
DELETE /v2/projects/15658c41-0703-4425-b8ce-2f716e71bd1d/drawings/8e948655-f788-4a52-9502-e86df1f61d91 HTTP/1.1
DELETE /v2/projects/7a89a8b6-0524-4753-88d9-0a58fd051155/drawings/754c76da-3312-4e92-b54f-3811255b0396 HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/projects/b878d2c3-ebeb-47a3-b1ff-374a797e993d/links/718bdcce-ff74-434d-8c8f-691ef49a9247'
curl -i -X DELETE 'http://localhost:3080/v2/projects/c977add5-89c0-4f6f-8adb-c144cdf48d7a/links/12d88104-280e-4e23-b333-0565e3aa7c9f'
DELETE /v2/projects/b878d2c3-ebeb-47a3-b1ff-374a797e993d/links/718bdcce-ff74-434d-8c8f-691ef49a9247 HTTP/1.1
DELETE /v2/projects/c977add5-89c0-4f6f-8adb-c144cdf48d7a/links/12d88104-280e-4e23-b333-0565e3aa7c9f HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:3080/v2/projects/1779d386-b567-4123-b2db-fb568e8d5573/nodes/28010580-1839-48b0-a4f1-712f8e08c37b'
curl -i -X DELETE 'http://localhost:3080/v2/projects/44860002-3328-4d80-a40a-f373e3d5d2b3/nodes/568689fa-6648-4458-80f3-fbd84a35852c'
DELETE /v2/projects/1779d386-b567-4123-b2db-fb568e8d5573/nodes/28010580-1839-48b0-a4f1-712f8e08c37b HTTP/1.1
DELETE /v2/projects/44860002-3328-4d80-a40a-f373e3d5d2b3/nodes/568689fa-6648-4458-80f3-fbd84a35852c HTTP/1.1

View File

@ -15,7 +15,7 @@ X-ROUTE: /v2/projects
{
"filename": "test.gns3",
"name": "test",
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-149/test_list_projects1",
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-400/test_list_projects1",
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
"status": "opened"
}

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/projects/a50ef3bd-5b23-484e-a1e4-a2e6897406c0'
curl -i -X GET 'http://localhost:3080/v2/projects/1a84cee7-0277-4cfd-a264-6fd4d5027825'
GET /v2/projects/a50ef3bd-5b23-484e-a1e4-a2e6897406c0 HTTP/1.1
GET /v2/projects/1a84cee7-0277-4cfd-a264-6fd4d5027825 HTTP/1.1
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}
{
"filename": "test.gns3",
"name": "test",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpybjyvef9/projects/a50ef3bd-5b23-484e-a1e4-a2e6897406c0",
"project_id": "a50ef3bd-5b23-484e-a1e4-a2e6897406c0",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp_pux4vt_/projects/1a84cee7-0277-4cfd-a264-6fd4d5027825",
"project_id": "1a84cee7-0277-4cfd-a264-6fd4d5027825",
"status": "opened"
}

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/projects/38f48088-eb37-4094-a45f-fce48fb042d1/drawings'
curl -i -X GET 'http://localhost:3080/v2/projects/af06990c-093d-4b9f-9d31-4fae0435c8ce/drawings'
GET /v2/projects/38f48088-eb37-4094-a45f-fce48fb042d1/drawings HTTP/1.1
GET /v2/projects/af06990c-093d-4b9f-9d31-4fae0435c8ce/drawings HTTP/1.1
@ -13,8 +13,8 @@ X-ROUTE: /v2/projects/{project_id}/drawings
[
{
"drawing_id": "e4b7c214-1662-4320-b4cc-8a62bc13ef91",
"project_id": "38f48088-eb37-4094-a45f-fce48fb042d1",
"drawing_id": "82d12592-c4b4-457e-adfe-60d42ddd01c9",
"project_id": "af06990c-093d-4b9f-9d31-4fae0435c8ce",
"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>",
"x": 10,

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/projects/67687ce9-3517-4c71-903f-91fbc0cfb2a9/links'
curl -i -X GET 'http://localhost:3080/v2/projects/ea00a74f-7c47-428f-9a3c-83dd681d31da/links'
GET /v2/projects/67687ce9-3517-4c71-903f-91fbc0cfb2a9/links HTTP/1.1
GET /v2/projects/ea00a74f-7c47-428f-9a3c-83dd681d31da/links HTTP/1.1
@ -16,19 +16,19 @@ X-ROUTE: /v2/projects/{project_id}/links
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"link_id": "722ac0d2-d2cf-430f-9c8f-f8a905d5c59f",
"link_id": "0edc474a-2ac1-4558-b366-b24676e52864",
"nodes": [
{
"adapter_number": 0,
"node_id": "85b5fa5c-2ca6-4c69-a826-ac48dec6467c",
"node_id": "2ba2088d-a4cb-4243-9421-2d9e9d119a4b",
"port_number": 3
},
{
"adapter_number": 2,
"node_id": "36847aff-f1e8-4d6e-be88-d8bb782acc2a",
"node_id": "cba32dde-b445-43b5-83dc-e577409e49e4",
"port_number": 4
}
],
"project_id": "67687ce9-3517-4c71-903f-91fbc0cfb2a9"
"project_id": "ea00a74f-7c47-428f-9a3c-83dd681d31da"
}
]

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/projects/6db8b823-566c-45e3-8f3c-607cbb768873/nodes'
curl -i -X GET 'http://localhost:3080/v2/projects/4e98845f-e7fa-4b1e-8ba2-84fcc717763b/nodes'
GET /v2/projects/6db8b823-566c-45e3-8f3c-607cbb768873/nodes HTTP/1.1
GET /v2/projects/4e98845f-e7fa-4b1e-8ba2-84fcc717763b/nodes HTTP/1.1
@ -27,9 +27,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes
},
"name": "test",
"node_directory": null,
"node_id": "424c9a0a-172b-48b6-9f4b-0442bdf3bdfb",
"node_id": "f65c0c2d-9b14-4ab1-a5b5-45b089d1b4fc",
"node_type": "vpcs",
"project_id": "6db8b823-566c-45e3-8f3c-607cbb768873",
"project_id": "4e98845f-e7fa-4b1e-8ba2-84fcc717763b",
"properties": {
"startup_script": "echo test"
},

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/projects/b8997dd7-7a29-4361-a804-9e3aa7b1676b/nodes/8b6425f7-e6a5-42c5-8ed4-b8bcbcfc76d4/dynamips/auto_idlepc'
curl -i -X GET 'http://localhost:3080/v2/projects/036cac10-21fa-45a3-b574-b20f1fdf3734/nodes/fb28508b-a684-483b-bf45-9dedc368b667/dynamips/auto_idlepc'
GET /v2/projects/b8997dd7-7a29-4361-a804-9e3aa7b1676b/nodes/8b6425f7-e6a5-42c5-8ed4-b8bcbcfc76d4/dynamips/auto_idlepc HTTP/1.1
GET /v2/projects/036cac10-21fa-45a3-b574-b20f1fdf3734/nodes/fb28508b-a684-483b-bf45-9dedc368b667/dynamips/auto_idlepc HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:3080/v2/projects/e68f7840-1b4a-4ade-ad79-7de21d45de31/nodes/035175d9-0a74-4f66-87ba-775c3f6b2e64/dynamips/idlepc_proposals'
curl -i -X GET 'http://localhost:3080/v2/projects/53035bf4-759c-44cd-8cfc-8135d639323c/nodes/31c9ebc5-f710-48e5-ab11-038b53d1666a/dynamips/idlepc_proposals'
GET /v2/projects/e68f7840-1b4a-4ade-ad79-7de21d45de31/nodes/035175d9-0a74-4f66-87ba-775c3f6b2e64/dynamips/idlepc_proposals HTTP/1.1
GET /v2/projects/53035bf4-759c-44cd-8cfc-8135d639323c/nodes/31c9ebc5-f710-48e5-ab11-038b53d1666a/dynamips/idlepc_proposals HTTP/1.1

View File

@ -17,7 +17,7 @@ X-ROUTE: /v2/projects
{
"filename": "test.gns3",
"name": "test",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp82zs5j3f/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe6aaxp90/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
"status": "opened"
}

View File

@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/load
{
"filename": "test.gns3",
"name": "test",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp_womcnev/projects/53c6be8a-37fb-4f8d-a64f-ddc1284409f5",
"project_id": "53c6be8a-37fb-4f8d-a64f-ddc1284409f5",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpmm1jq_o5/projects/0924183d-5fef-4d6d-b580-b3c6b817dfe0",
"project_id": "0924183d-5fef-4d6d-b580-b3c6b817dfe0",
"status": "opened"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/03069293-e8a9-498b-84f6-5b9ac1a6a7e6/close' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/f7a09edb-ea05-468f-aa24-db67409a4e35/close' -d '{}'
POST /v2/projects/03069293-e8a9-498b-84f6-5b9ac1a6a7e6/close HTTP/1.1
POST /v2/projects/f7a09edb-ea05-468f-aa24-db67409a4e35/close HTTP/1.1
{}
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/close
{
"filename": "test.gns3",
"name": "test",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpcgspma15/projects/03069293-e8a9-498b-84f6-5b9ac1a6a7e6",
"project_id": "03069293-e8a9-498b-84f6-5b9ac1a6a7e6",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpkkubc5dj/projects/f7a09edb-ea05-468f-aa24-db67409a4e35",
"project_id": "f7a09edb-ea05-468f-aa24-db67409a4e35",
"status": "opened"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/0dec118e-f2ca-4537-ac58-cb341dbe3f8b/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/2643d960-e139-4c49-94e8-5aa36da47e4c/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/0dec118e-f2ca-4537-ac58-cb341dbe3f8b/drawings HTTP/1.1
POST /v2/projects/2643d960-e139-4c49-94e8-5aa36da47e4c/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>",
"x": 10,
@ -17,8 +17,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
X-ROUTE: /v2/projects/{project_id}/drawings
{
"drawing_id": "5344d9d7-8fbe-477d-99fd-ece78ea894cd",
"project_id": "0dec118e-f2ca-4537-ac58-cb341dbe3f8b",
"drawing_id": "ea2442e1-888f-4cbf-b534-cc22654ab90f",
"project_id": "2643d960-e139-4c49-94e8-5aa36da47e4c",
"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>",
"x": 10,

View File

@ -1,16 +1,16 @@
curl -i -X POST 'http://localhost:3080/v2/projects/03852c0e-0fdb-4a9f-889c-662f1b4d0e57/links' -d '{"nodes": [{"adapter_number": 0, "node_id": "88adcbac-44bb-4517-be0d-ac06f2784789", "port_number": 3}, {"adapter_number": 2, "node_id": "5b3d113a-ed66-4020-8900-31b90a0e7401", "port_number": 4}]}'
curl -i -X POST 'http://localhost:3080/v2/projects/1e84101d-53ff-4e74-a2cd-7b3defcf20d9/links' -d '{"nodes": [{"adapter_number": 0, "node_id": "7b202c02-156d-44f4-be5f-d896b86bd25f", "port_number": 3}, {"adapter_number": 2, "node_id": "dd41d495-8afd-4f8b-8dae-1b1fffeadba6", "port_number": 4}]}'
POST /v2/projects/03852c0e-0fdb-4a9f-889c-662f1b4d0e57/links HTTP/1.1
POST /v2/projects/1e84101d-53ff-4e74-a2cd-7b3defcf20d9/links HTTP/1.1
{
"nodes": [
{
"adapter_number": 0,
"node_id": "88adcbac-44bb-4517-be0d-ac06f2784789",
"node_id": "7b202c02-156d-44f4-be5f-d896b86bd25f",
"port_number": 3
},
{
"adapter_number": 2,
"node_id": "5b3d113a-ed66-4020-8900-31b90a0e7401",
"node_id": "dd41d495-8afd-4f8b-8dae-1b1fffeadba6",
"port_number": 4
}
]
@ -28,18 +28,18 @@ X-ROUTE: /v2/projects/{project_id}/links
"capture_file_name": null,
"capture_file_path": null,
"capturing": false,
"link_id": "f8c9ad16-4b0b-4808-9080-81eb106ff88c",
"link_id": "db4b684a-2540-4024-afd4-3213b56cd12a",
"nodes": [
{
"adapter_number": 0,
"node_id": "88adcbac-44bb-4517-be0d-ac06f2784789",
"node_id": "7b202c02-156d-44f4-be5f-d896b86bd25f",
"port_number": 3
},
{
"adapter_number": 2,
"node_id": "5b3d113a-ed66-4020-8900-31b90a0e7401",
"node_id": "dd41d495-8afd-4f8b-8dae-1b1fffeadba6",
"port_number": 4
}
],
"project_id": "03852c0e-0fdb-4a9f-889c-662f1b4d0e57"
"project_id": "1e84101d-53ff-4e74-a2cd-7b3defcf20d9"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/897951c6-c3a7-40ed-bb0f-dc30ad55c5a7/links/c2bbdb6e-f07a-4e39-8d46-1084ee432120/start_capture' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/2c6943d4-b951-40e9-9622-82972566258e/links/0a9b95b9-7c56-4f6d-af89-34f540073f2f/start_capture' -d '{}'
POST /v2/projects/897951c6-c3a7-40ed-bb0f-dc30ad55c5a7/links/c2bbdb6e-f07a-4e39-8d46-1084ee432120/start_capture HTTP/1.1
POST /v2/projects/2c6943d4-b951-40e9-9622-82972566258e/links/0a9b95b9-7c56-4f6d-af89-34f540073f2f/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_path": null,
"capturing": false,
"link_id": "c2bbdb6e-f07a-4e39-8d46-1084ee432120",
"link_id": "0a9b95b9-7c56-4f6d-af89-34f540073f2f",
"nodes": [],
"project_id": "897951c6-c3a7-40ed-bb0f-dc30ad55c5a7"
"project_id": "2c6943d4-b951-40e9-9622-82972566258e"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/c03db525-fa17-4851-a501-8223a4702f13/links/c320128e-2be9-4395-9cf0-fddec3daa3eb/stop_capture' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/0fb13845-d69a-43c8-b062-0733cf9f33f6/links/2282e661-12fe-47de-b7b6-20064a772cbc/stop_capture' -d '{}'
POST /v2/projects/c03db525-fa17-4851-a501-8223a4702f13/links/c320128e-2be9-4395-9cf0-fddec3daa3eb/stop_capture HTTP/1.1
POST /v2/projects/0fb13845-d69a-43c8-b062-0733cf9f33f6/links/2282e661-12fe-47de-b7b6-20064a772cbc/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_path": null,
"capturing": false,
"link_id": "c320128e-2be9-4395-9cf0-fddec3daa3eb",
"link_id": "2282e661-12fe-47de-b7b6-20064a772cbc",
"nodes": [],
"project_id": "c03db525-fa17-4851-a501-8223a4702f13"
"project_id": "0fb13845-d69a-43c8-b062-0733cf9f33f6"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/092cfe89-4efc-4377-86aa-d69cacc264df/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/87e475be-751f-449e-8065-c83a98f47a78/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
POST /v2/projects/092cfe89-4efc-4377-86aa-d69cacc264df/nodes HTTP/1.1
POST /v2/projects/87e475be-751f-449e-8065-c83a98f47a78/nodes HTTP/1.1
{
"compute_id": "example.com",
"name": "test",
@ -33,9 +33,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes
},
"name": "test",
"node_directory": null,
"node_id": "d2102840-e2fe-4370-b70a-62594d1f42e3",
"node_id": "a1b1c1d9-2c81-48b3-8760-b761a9a5bce3",
"node_type": "vpcs",
"project_id": "092cfe89-4efc-4377-86aa-d69cacc264df",
"project_id": "87e475be-751f-449e-8065-c83a98f47a78",
"properties": {
"startup_script": "echo test"
},

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/8a82b896-bfd2-4694-88c2-d9fcb5d5cbd2/nodes/13f0f1eb-7afc-42a8-9297-4fafa702c191/reload' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/fe1e2fad-e6e4-4470-8c2e-44de93628422/nodes/78ea2484-c9a9-4083-92d8-c79ac218569d/reload' -d '{}'
POST /v2/projects/8a82b896-bfd2-4694-88c2-d9fcb5d5cbd2/nodes/13f0f1eb-7afc-42a8-9297-4fafa702c191/reload HTTP/1.1
POST /v2/projects/fe1e2fad-e6e4-4470-8c2e-44de93628422/nodes/78ea2484-c9a9-4083-92d8-c79ac218569d/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/cfd0e12c-5c9d-4186-8af9-16c193aa4d76/nodes/f96cc4ab-3199-4718-a37f-bf69444fc022/start' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/11dddbcf-f323-4073-9f76-c3bccf93321e/nodes/e1a20e97-16e7-460e-97b1-5ac0df45891f/start' -d '{}'
POST /v2/projects/cfd0e12c-5c9d-4186-8af9-16c193aa4d76/nodes/f96cc4ab-3199-4718-a37f-bf69444fc022/start HTTP/1.1
POST /v2/projects/11dddbcf-f323-4073-9f76-c3bccf93321e/nodes/e1a20e97-16e7-460e-97b1-5ac0df45891f/start HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/c9593426-a55b-4523-8102-9306e8ab4c36/nodes/2544f2a2-fd6f-4bf3-815e-f44dfa46ef60/stop' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/b0e1da88-6576-4b74-a3dd-5ec6d45ce51c/nodes/1eb6f22a-e88c-4e65-963a-49adbc3f4167/stop' -d '{}'
POST /v2/projects/c9593426-a55b-4523-8102-9306e8ab4c36/nodes/2544f2a2-fd6f-4bf3-815e-f44dfa46ef60/stop HTTP/1.1
POST /v2/projects/b0e1da88-6576-4b74-a3dd-5ec6d45ce51c/nodes/1eb6f22a-e88c-4e65-963a-49adbc3f4167/stop HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/27a869bf-aae1-48e0-ae6a-47184ea058ef/nodes/5c23742d-ab2e-4028-a1e7-b01325d7bd2a/suspend' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/fce29e84-7993-4693-a394-64a570330066/nodes/8cb4add0-3a54-45f1-b9a0-b97fcb3a8c8b/suspend' -d '{}'
POST /v2/projects/27a869bf-aae1-48e0-ae6a-47184ea058ef/nodes/5c23742d-ab2e-4028-a1e7-b01325d7bd2a/suspend HTTP/1.1
POST /v2/projects/fce29e84-7993-4693-a394-64a570330066/nodes/8cb4add0-3a54-45f1-b9a0-b97fcb3a8c8b/suspend HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/f84ac54d-1d42-4f12-b98f-dc5cc68847af/nodes/reload' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/943065be-24ea-43ad-ad57-21b060bf324c/nodes/reload' -d '{}'
POST /v2/projects/f84ac54d-1d42-4f12-b98f-dc5cc68847af/nodes/reload HTTP/1.1
POST /v2/projects/943065be-24ea-43ad-ad57-21b060bf324c/nodes/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/d078414b-ca69-4641-bfe6-4b00121a9b76/nodes/start' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/6bdbd12f-6053-47e6-9aaa-c07317aa91d7/nodes/start' -d '{}'
POST /v2/projects/d078414b-ca69-4641-bfe6-4b00121a9b76/nodes/start HTTP/1.1
POST /v2/projects/6bdbd12f-6053-47e6-9aaa-c07317aa91d7/nodes/start HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/05c1dc3e-e231-44ce-87cb-e8d5f1bb0d46/nodes/stop' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/4951829b-c2df-4be7-943e-ee5732f8fafb/nodes/stop' -d '{}'
POST /v2/projects/05c1dc3e-e231-44ce-87cb-e8d5f1bb0d46/nodes/stop HTTP/1.1
POST /v2/projects/4951829b-c2df-4be7-943e-ee5732f8fafb/nodes/stop HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/37f32e0f-563a-44c6-8657-69757fcad8dd/nodes/suspend' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/5e4c9fe2-34c3-4901-b485-c4115ca99e9f/nodes/suspend' -d '{}'
POST /v2/projects/37f32e0f-563a-44c6-8657-69757fcad8dd/nodes/suspend HTTP/1.1
POST /v2/projects/5e4c9fe2-34c3-4901-b485-c4115ca99e9f/nodes/suspend HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:3080/v2/projects/8efa2f12-fc33-449e-bce5-e972740eb376/open' -d '{}'
curl -i -X POST 'http://localhost:3080/v2/projects/f4d8b0cb-eccb-4b98-875a-eee63c081a5d/open' -d '{}'
POST /v2/projects/8efa2f12-fc33-449e-bce5-e972740eb376/open HTTP/1.1
POST /v2/projects/f4d8b0cb-eccb-4b98-875a-eee63c081a5d/open HTTP/1.1
{}
@ -14,7 +14,7 @@ X-ROUTE: /v2/projects/{project_id}/open
{
"filename": "test.gns3",
"name": "test",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp5g3bnq1t/projects/8efa2f12-fc33-449e-bce5-e972740eb376",
"project_id": "8efa2f12-fc33-449e-bce5-e972740eb376",
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpndez2wp3/projects/f4d8b0cb-eccb-4b98-875a-eee63c081a5d",
"project_id": "f4d8b0cb-eccb-4b98-875a-eee63c081a5d",
"status": "opened"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/projects/07d67b57-dd64-4a42-9e94-afee8c8603c0/drawings/2da510fc-a1f7-43d3-98fe-412964c5b978' -d '{"x": 42}'
curl -i -X PUT 'http://localhost:3080/v2/projects/5bead709-1759-478c-9c0f-77d0edb9f760/drawings/3edb7b33-91da-4f7b-9699-97a80d921501' -d '{"x": 42}'
PUT /v2/projects/07d67b57-dd64-4a42-9e94-afee8c8603c0/drawings/2da510fc-a1f7-43d3-98fe-412964c5b978 HTTP/1.1
PUT /v2/projects/5bead709-1759-478c-9c0f-77d0edb9f760/drawings/3edb7b33-91da-4f7b-9699-97a80d921501 HTTP/1.1
{
"x": 42
}
@ -14,8 +14,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
X-ROUTE: /v2/projects/{project_id}/drawings/{drawing_id}
{
"drawing_id": "2da510fc-a1f7-43d3-98fe-412964c5b978",
"project_id": "07d67b57-dd64-4a42-9e94-afee8c8603c0",
"drawing_id": "3edb7b33-91da-4f7b-9699-97a80d921501",
"project_id": "5bead709-1759-478c-9c0f-77d0edb9f760",
"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>",
"x": 42,

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:3080/v2/projects/138ebf0f-f329-4b37-b2e3-c9dada1ad53b/nodes/0798c1a5-e88f-49aa-a7e7-ea29a7b6a0b9' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
curl -i -X PUT 'http://localhost:3080/v2/projects/afb97df7-c471-4e51-98a8-8bb991b00aa9/nodes/55b06206-e9af-4290-a064-f4303a0aa304' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
PUT /v2/projects/138ebf0f-f329-4b37-b2e3-c9dada1ad53b/nodes/0798c1a5-e88f-49aa-a7e7-ea29a7b6a0b9 HTTP/1.1
PUT /v2/projects/afb97df7-c471-4e51-98a8-8bb991b00aa9/nodes/55b06206-e9af-4290-a064-f4303a0aa304 HTTP/1.1
{
"compute_id": "example.com",
"name": "test",
@ -33,9 +33,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}
},
"name": "test",
"node_directory": null,
"node_id": "0798c1a5-e88f-49aa-a7e7-ea29a7b6a0b9",
"node_id": "55b06206-e9af-4290-a064-f4303a0aa304",
"node_type": "vpcs",
"project_id": "138ebf0f-f329-4b37-b2e3-c9dada1ad53b",
"project_id": "afb97df7-c471-4e51-98a8-8bb991b00aa9",
"properties": {},
"status": "stopped",
"symbol": ":/symbols/computer.svg",

View File

@ -9,8 +9,8 @@ Create a new drawing instance
Parameters
**********
- **project_id**: Project UUID
- **drawing_id**: Drawing UUID
- **project_id**: Project UUID
Response status codes
**********************
@ -60,8 +60,8 @@ Delete a drawing instance
Parameters
**********
- **project_id**: Project UUID
- **drawing_id**: Drawing UUID
- **project_id**: Project UUID
Response status codes
**********************

View File

@ -114,6 +114,7 @@ The available notification are:
* log.error
* log.warning
* log.info
* settings.updated
Previous versions
=================

View File

@ -7,7 +7,7 @@ Node
A Virtual Machine (Dynamips, IOU, Qemu, VPCS...), a cloud, a builtin device (switch, hub...)
Drawing
-----
--------
Drawing are visual element not used by the network emulation. Like
text, images, rectangle... They are pure SVG elements.

View File

@ -23,7 +23,6 @@ It's also used for unittest the HTTP implementation.
from gns3server.config import Config
def test_settings(http_controller):
query = {"test": True}
response = http_controller.post('/settings', query, example=True)
@ -31,4 +30,3 @@ def test_settings(http_controller):
response = http_controller.get('/settings', example=True)
assert response.status == 200
assert response.json == query