mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-28 03:08:14 +00:00
Sync appliances
This commit is contained in:
parent
2e79da5fe1
commit
f442c6e9e1
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/90ff1aba-7a27-4f96-8cc2-56ab6fda82b9'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/90ff1aba-7a27-4f96-8cc2-56ab6fda82b9 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/3f262be8-72a1-4d98-9f5e-44f34fa06856/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/3f262be8-72a1-4d98-9f5e-44f34fa06856/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:30 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/241ff213-a26b-4db8-98d6-a0ca5c3d2186/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/241ff213-a26b-4db8-98d6-a0ca5c3d2186/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c5cdd89b-c981-4597-8e6b-351e2666f8a2'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c5cdd89b-c981-4597-8e6b-351e2666f8a2 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:37 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/1b805432-50fd-48e9-a742-e2d5e891e075/adapters/1/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/1b805432-50fd-48e9-a742-e2d5e891e075/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:38 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/c0c55822-6aae-433a-9a4f-34ee78e21be0'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/c0c55822-6aae-433a-9a4f-34ee78e21be0 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:45 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/cb667eab-d6e6-422a-a5bc-4f10f0d0356f/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/cb667eab-d6e6-422a-a5bc-4f10f0d0356f/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:43 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8ad0032a-e2fa-4082-9e05-553a150b7e65'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8ad0032a-e2fa-4082-9e05-553a150b7e65 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:09 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/66ec996c-d079-483b-8a77-e252cb183661/adapters/1/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/66ec996c-d079-483b-8a77-e252cb183661/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:15 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/dfea5a5e-01a0-4be6-b35d-ed3c19cc4a22'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/dfea5a5e-01a0-4be6-b35d-ed3c19cc4a22 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/99435609-af8c-45f8-b75e-9a0882081157/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/99435609-af8c-45f8-b75e-9a0882081157/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/81fdbf25-b84d-4a08-9c4a-bfa9c7d60e41/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/81fdbf25-b84d-4a08-9c4a-bfa9c7d60e41/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:33 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/5638425c-2c4c-40ff-87f3-050f19297ad6/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/5638425c-2c4c-40ff-87f3-050f19297ad6/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b5601f29-2dc0-4b0d-884c-0532a6730bed'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b5601f29-2dc0-4b0d-884c-0532a6730bed HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:52 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/186d211d-3066-47d2-a6f3-92de602f362c/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
|
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/186d211d-3066-47d2-a6f3-92de602f362c/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
34
scripts/docs/api/examples/compute_get_capabilities.txt
Normal file
34
scripts/docs/api/examples/compute_get_capabilities.txt
Normal file
@ -0,0 +1,34 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/capabilities'
|
||||||
|
|
||||||
|
GET /v2/compute/capabilities HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 366
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:30 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/capabilities
|
||||||
|
|
||||||
|
{
|
||||||
|
"node_types": [
|
||||||
|
"cloud",
|
||||||
|
"ethernet_hub",
|
||||||
|
"ethernet_switch",
|
||||||
|
"nat",
|
||||||
|
"vpcs",
|
||||||
|
"virtualbox",
|
||||||
|
"dynamips",
|
||||||
|
"frame_relay_switch",
|
||||||
|
"atm_switch",
|
||||||
|
"qemu",
|
||||||
|
"vmware",
|
||||||
|
"traceng",
|
||||||
|
"docker",
|
||||||
|
"iou"
|
||||||
|
],
|
||||||
|
"platform": "linuxdebian",
|
||||||
|
"version": "2.2.0dev4"
|
||||||
|
}
|
22
scripts/docs/api/examples/compute_get_iouimages.txt
Normal file
22
scripts/docs/api/examples/compute_get_iouimages.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/iou/images'
|
||||||
|
|
||||||
|
GET /v2/compute/iou/images HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 149
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:39 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/iou/images
|
||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"filename": "iou.bin",
|
||||||
|
"filesize": 7,
|
||||||
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
|
"path": "iou.bin"
|
||||||
|
}
|
||||||
|
]
|
106
scripts/docs/api/examples/compute_get_networkinterfaces.txt
Normal file
106
scripts/docs/api/examples/compute_get_networkinterfaces.txt
Normal file
@ -0,0 +1,106 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/network/interfaces'
|
||||||
|
|
||||||
|
GET /v2/compute/network/interfaces HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 2297
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/network/interfaces
|
||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"id": "docker0",
|
||||||
|
"ip_address": "172.17.0.1",
|
||||||
|
"mac_address": "02:42:1b:5e:24:0d",
|
||||||
|
"name": "docker0",
|
||||||
|
"netmask": "255.255.0.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "lo",
|
||||||
|
"ip_address": "127.0.0.1",
|
||||||
|
"mac_address": "00:00:00:00:00:00",
|
||||||
|
"name": "lo",
|
||||||
|
"netmask": "255.0.0.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "virbr0",
|
||||||
|
"ip_address": "192.168.122.1",
|
||||||
|
"mac_address": "00:00:00:00:00:00",
|
||||||
|
"name": "virbr0",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "virbr0-nic",
|
||||||
|
"ip_address": "",
|
||||||
|
"mac_address": "52:54:00:cb:6a:77",
|
||||||
|
"name": "virbr0-nic",
|
||||||
|
"netmask": "",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vmnet1",
|
||||||
|
"ip_address": "172.16.1.1",
|
||||||
|
"mac_address": "00:50:56:c0:00:01",
|
||||||
|
"name": "vmnet1",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vmnet2",
|
||||||
|
"ip_address": "172.16.2.1",
|
||||||
|
"mac_address": "00:50:56:c0:00:02",
|
||||||
|
"name": "vmnet2",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vmnet3",
|
||||||
|
"ip_address": "172.16.3.1",
|
||||||
|
"mac_address": "00:50:56:c0:00:03",
|
||||||
|
"name": "vmnet3",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vmnet4",
|
||||||
|
"ip_address": "172.16.10.1",
|
||||||
|
"mac_address": "00:50:56:c0:00:04",
|
||||||
|
"name": "vmnet4",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "vmnet8",
|
||||||
|
"ip_address": "192.168.195.1",
|
||||||
|
"mac_address": "00:50:56:c0:00:08",
|
||||||
|
"name": "vmnet8",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"id": "wlp58s0",
|
||||||
|
"ip_address": "192.168.0.110",
|
||||||
|
"mac_address": "9c:b6:d0:dc:20:29",
|
||||||
|
"name": "wlp58s0",
|
||||||
|
"netmask": "255.255.255.0",
|
||||||
|
"special": false,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
]
|
26
scripts/docs/api/examples/compute_get_projects.txt
Normal file
26
scripts/docs/api/examples/compute_get_projects.txt
Normal file
@ -0,0 +1,26 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects'
|
||||||
|
|
||||||
|
GET /v2/compute/projects HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 252
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects
|
||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"variables": null
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b",
|
||||||
|
"variables": null
|
||||||
|
}
|
||||||
|
]
|
19
scripts/docs/api/examples/compute_get_projectsprojectid.txt
Normal file
19
scripts/docs/api/examples/compute_get_projectsprojectid.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/40010203-0405-0607-0809-0a0b0c0d0e02'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/40010203-0405-0607-0809-0a0b0c0d0e02 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 103
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"project_id": "40010203-0405-0607-0809-0a0b0c0d0e02",
|
||||||
|
"variables": null
|
||||||
|
}
|
@ -0,0 +1,85 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d4550fa5-7f00-48f0-ac4a-e2bf7f3ca04a'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d4550fa5-7f00-48f0-ac4a-e2bf7f3ca04a HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 1742
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:30 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"interfaces": [
|
||||||
|
{
|
||||||
|
"name": "docker0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lo",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "virbr0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "virbr0-nic",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet1",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet2",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet3",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet4",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet8",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wlp58s0",
|
||||||
|
"special": false,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "Cloud 1",
|
||||||
|
"node_directory": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/builtin/d4550fa5-7f00-48f0-ac4a-e2bf7f3ca04a",
|
||||||
|
"node_id": "d4550fa5-7f00-48f0-ac4a-e2bf7f3ca04a",
|
||||||
|
"ports_mapping": [
|
||||||
|
{
|
||||||
|
"interface": "wlp58s0",
|
||||||
|
"name": "wlp58s0",
|
||||||
|
"port_number": 0,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"remote_console_host": "",
|
||||||
|
"remote_console_http_path": "/",
|
||||||
|
"remote_console_port": 23,
|
||||||
|
"remote_console_type": "none",
|
||||||
|
"status": "started"
|
||||||
|
}
|
@ -0,0 +1,33 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/af35fc81-97f0-4389-ae2d-c97e69e63b3d'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/af35fc81-97f0-4389-ae2d-c97e69e63b3d HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 614
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:37 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"application_id": 1,
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"ethernet_adapters": 2,
|
||||||
|
"l1_keepalives": false,
|
||||||
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/iou/af35fc81-97f0-4389-ae2d-c97e69e63b3d",
|
||||||
|
"node_id": "af35fc81-97f0-4389-ae2d-c97e69e63b3d",
|
||||||
|
"nvram": 128,
|
||||||
|
"path": "iou.bin",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"ram": 256,
|
||||||
|
"serial_adapters": 2,
|
||||||
|
"status": "stopped",
|
||||||
|
"use_default_iou_values": true
|
||||||
|
}
|
@ -0,0 +1,28 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/9f3f60f5-ad84-408e-97b4-6bc0a6bf3157'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/9f3f60f5-ad84-408e-97b4-6bc0a6bf3157 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 335
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:43 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Nat 1",
|
||||||
|
"node_id": "9f3f60f5-ad84-408e-97b4-6bc0a6bf3157",
|
||||||
|
"ports_mapping": [
|
||||||
|
{
|
||||||
|
"interface": "virbr0",
|
||||||
|
"name": "nat0",
|
||||||
|
"port_number": 0,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "started"
|
||||||
|
}
|
@ -0,0 +1,59 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ce669500-1ddf-45b8-a76e-18fe64616d63'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ce669500-1ddf-45b8-a76e-18fe64616d63 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 1381
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:56 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "e1000",
|
||||||
|
"adapters": 1,
|
||||||
|
"bios_image": "",
|
||||||
|
"bios_image_md5sum": null,
|
||||||
|
"boot_priority": "c",
|
||||||
|
"cdrom_image": "",
|
||||||
|
"cdrom_image_md5sum": null,
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"cpu_throttling": 0,
|
||||||
|
"cpus": 1,
|
||||||
|
"hda_disk_image": "",
|
||||||
|
"hda_disk_image_md5sum": null,
|
||||||
|
"hda_disk_interface": "ide",
|
||||||
|
"hdb_disk_image": "",
|
||||||
|
"hdb_disk_image_md5sum": null,
|
||||||
|
"hdb_disk_interface": "ide",
|
||||||
|
"hdc_disk_image": "",
|
||||||
|
"hdc_disk_image_md5sum": null,
|
||||||
|
"hdc_disk_interface": "ide",
|
||||||
|
"hdd_disk_image": "",
|
||||||
|
"hdd_disk_image_md5sum": null,
|
||||||
|
"hdd_disk_interface": "ide",
|
||||||
|
"initrd": "",
|
||||||
|
"initrd_md5sum": null,
|
||||||
|
"kernel_command_line": "",
|
||||||
|
"kernel_image": "",
|
||||||
|
"kernel_image_md5sum": null,
|
||||||
|
"legacy_networking": false,
|
||||||
|
"mac_address": "0c:dd:80:6d:63:00",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ce669500-1ddf-45b8-a76e-18fe64616d63",
|
||||||
|
"node_id": "ce669500-1ddf-45b8-a76e-18fe64616d63",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"options": "",
|
||||||
|
"platform": "x86_64",
|
||||||
|
"process_priority": "low",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"qemu_path": "/tmp/tmpat1g3bez/qemu-system-x86_64",
|
||||||
|
"ram": 256,
|
||||||
|
"status": "stopped",
|
||||||
|
"usage": ""
|
||||||
|
}
|
@ -0,0 +1,26 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/2fc5f70e-a562-4112-865f-4783d4655467'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/2fc5f70e-a562-4112-865f-4783d4655467 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 443
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": null,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "",
|
||||||
|
"name": "TraceNG TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/2fc5f70e-a562-4112-865f-4783d4655467",
|
||||||
|
"node_id": "2fc5f70e-a562-4112-865f-4783d4655467",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,31 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2cbdcd93-3df0-4450-a4b4-4781c2f03b54'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/2cbdcd93-3df0-4450-a4b4-4781c2f03b54 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 466
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||||
|
"adapters": 0,
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"headless": false,
|
||||||
|
"linked_clone": false,
|
||||||
|
"name": "VMTEST",
|
||||||
|
"node_directory": null,
|
||||||
|
"node_id": "2cbdcd93-3df0-4450-a4b4-4781c2f03b54",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"ram": 0,
|
||||||
|
"status": "stopped",
|
||||||
|
"use_any_adapter": false,
|
||||||
|
"vmname": "VMTEST"
|
||||||
|
}
|
@ -0,0 +1,30 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/c917a91d-8ba0-4c00-b19d-f2ef99940334'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/c917a91d-8ba0-4c00-b19d-f2ef99940334 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 594
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:34 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "e1000",
|
||||||
|
"adapters": 0,
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"headless": false,
|
||||||
|
"linked_clone": false,
|
||||||
|
"name": "VMTEST",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vmware/c917a91d-8ba0-4c00-b19d-f2ef99940334",
|
||||||
|
"node_id": "c917a91d-8ba0-4c00-b19d-f2ef99940334",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped",
|
||||||
|
"use_any_adapter": false,
|
||||||
|
"vmx_path": "/tmp/pytest-of-grossmj/pytest-31/test_vmware_get0/test.vmx"
|
||||||
|
}
|
@ -0,0 +1,24 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/fe5c994d-ae69-48e7-b599-36e8f3911667'
|
||||||
|
|
||||||
|
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/fe5c994d-ae69-48e7-b599-36e8f3911667 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 384
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/fe5c994d-ae69-48e7-b599-36e8f3911667",
|
||||||
|
"node_id": "fe5c994d-ae69-48e7-b599-36e8f3911667",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
32
scripts/docs/api/examples/compute_get_qemubinaries.txt
Normal file
32
scripts/docs/api/examples/compute_get_qemubinaries.txt
Normal file
@ -0,0 +1,32 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/binaries' -d '{"archs": ["i386"]}'
|
||||||
|
|
||||||
|
GET /v2/compute/qemu/binaries HTTP/1.1
|
||||||
|
{
|
||||||
|
"archs": [
|
||||||
|
"i386"
|
||||||
|
]
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 212
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:21 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/qemu/binaries
|
||||||
|
|
||||||
|
[
|
||||||
|
{
|
||||||
|
"path": "/tmp/x86_64",
|
||||||
|
"version": "2.2.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/tmp/alpha",
|
||||||
|
"version": "2.1.0"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"path": "/tmp/i386",
|
||||||
|
"version": "2.1.0"
|
||||||
|
}
|
||||||
|
]
|
19
scripts/docs/api/examples/compute_get_qemucapabilities.txt
Normal file
19
scripts/docs/api/examples/compute_get_qemucapabilities.txt
Normal file
@ -0,0 +1,19 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/qemu/capabilities'
|
||||||
|
|
||||||
|
GET /v2/compute/qemu/capabilities HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 39
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:25 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/qemu/capabilities
|
||||||
|
|
||||||
|
{
|
||||||
|
"kvm": [
|
||||||
|
"x86_64"
|
||||||
|
]
|
||||||
|
}
|
18
scripts/docs/api/examples/compute_get_version.txt
Normal file
18
scripts/docs/api/examples/compute_get_version.txt
Normal file
@ -0,0 +1,18 @@
|
|||||||
|
curl -i -X GET 'http://localhost:3080/v2/compute/version'
|
||||||
|
|
||||||
|
GET /v2/compute/version HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 49
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:30 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/version
|
||||||
|
|
||||||
|
{
|
||||||
|
"local": true,
|
||||||
|
"version": "2.2.0dev4"
|
||||||
|
}
|
22
scripts/docs/api/examples/compute_post_projects.txt
Normal file
22
scripts/docs/api/examples/compute_post_projects.txt
Normal file
@ -0,0 +1,22 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects' -d '{"name": "test", "project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 103
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "test",
|
||||||
|
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||||
|
"variables": null
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:47 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/close
|
||||||
|
|
@ -0,0 +1,87 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes' -d '{"name": "Cloud 1"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "Cloud 1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 1742
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:30 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"interfaces": [
|
||||||
|
{
|
||||||
|
"name": "docker0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "lo",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "virbr0",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "virbr0-nic",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet1",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet2",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet3",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet4",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "vmnet8",
|
||||||
|
"special": true,
|
||||||
|
"type": "ethernet"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"name": "wlp58s0",
|
||||||
|
"special": false,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"name": "Cloud 1",
|
||||||
|
"node_directory": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/builtin/5d6ac16c-4ece-4dab-9f43-19854c32f548",
|
||||||
|
"node_id": "5d6ac16c-4ece-4dab-9f43-19854c32f548",
|
||||||
|
"ports_mapping": [
|
||||||
|
{
|
||||||
|
"interface": "wlp58s0",
|
||||||
|
"name": "wlp58s0",
|
||||||
|
"port_number": 0,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"remote_console_host": "",
|
||||||
|
"remote_console_http_path": "/",
|
||||||
|
"remote_console_port": 23,
|
||||||
|
"remote_console_type": "none",
|
||||||
|
"status": "started"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f261f6a6-9e97-496c-b776-602ca10bc34e/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/cloud/nodes/f261f6a6-9e97-496c-b776-602ca10bc34e/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:30 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/8a6a2e5e-343f-4ae3-a718-6fa44d6abc60/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/cloud/nodes/8a6a2e5e-343f-4ae3-a718-6fa44d6abc60/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 104
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/367f5735-b9cd-4c6b-abec-16645f63670f/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/367f5735-b9cd-4c6b-abec-16645f63670f/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/5fad0a2d-012f-4a75-a660-8f0ff2ccb57c/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/5fad0a2d-012f-4a75-a660-8f0ff2ccb57c/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/2380d5fe-07dc-4271-8724-d89b0f0eacac/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/2380d5fe-07dc-4271-8724-d89b0f0eacac/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 104
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/8e0ee498-2d39-4b7e-a3c7-d7a0d26fdf9c/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/8e0ee498-2d39-4b7e-a3c7-d7a0d26fdf9c/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e80d943b-72f5-4b76-bb24-d861b0376419/duplicate' -d '{"destination_node_id": "ff7b4aa4-7821-44e2-a4cc-5e0f8d15d734"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e80d943b-72f5-4b76-bb24-d861b0376419/duplicate HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination_node_id": "ff7b4aa4-7821-44e2-a4cc-5e0f8d15d734"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 4
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:33 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/duplicate
|
||||||
|
|
||||||
|
true
|
@ -0,0 +1,38 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "240a3944-2c66-4e2b-acb1-7de204d73698", "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": "240a3944-2c66-4e2b-acb1-7de204d73698",
|
||||||
|
"path": "iou.bin",
|
||||||
|
"startup_config_content": "hostname test"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 614
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:37 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"application_id": 1,
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"ethernet_adapters": 2,
|
||||||
|
"l1_keepalives": false,
|
||||||
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/iou/240a3944-2c66-4e2b-acb1-7de204d73698",
|
||||||
|
"node_id": "240a3944-2c66-4e2b-acb1-7de204d73698",
|
||||||
|
"nvram": 128,
|
||||||
|
"path": "iou.bin",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"ram": 256,
|
||||||
|
"serial_adapters": 2,
|
||||||
|
"status": "stopped",
|
||||||
|
"use_default_iou_values": true
|
||||||
|
}
|
@ -0,0 +1,21 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a7ea74-05b9-4854-91b4-d0d32629fdbc/adapters/1/ports/0/nio' -d '{"ethernet_device": "docker0", "type": "nio_ethernet"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/50a7ea74-05b9-4854-91b4-d0d32629fdbc/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"ethernet_device": "docker0",
|
||||||
|
"type": "nio_ethernet"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 64
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:38 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"ethernet_device": "docker0",
|
||||||
|
"type": "nio_ethernet"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/30d51db3-0804-42b8-a200-0f1baa5f5fae/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/30d51db3-0804-42b8-a200-0f1baa5f5fae/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 104
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:38 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b3ee66ea-5b2b-4746-b92d-fea8299b71d6/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/b3ee66ea-5b2b-4746-b92d-fea8299b71d6/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:38 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bb63da5f-763e-4830-83bc-76e601fe8f55/duplicate' -d '{"destination_node_id": "13baa757-f9b9-4517-9659-25560f8f31e7"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bb63da5f-763e-4830-83bc-76e601fe8f55/duplicate HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination_node_id": "13baa757-f9b9-4517-9659-25560f8f31e7"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 4
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:43 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/duplicate
|
||||||
|
|
||||||
|
true
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bcbcfea3-0393-4055-a269-301a5b3d2e3f/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bcbcfea3-0393-4055-a269-301a5b3d2e3f/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:37 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,35 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/77ca056e-1f25-4c11-a331-1a3b3462417e/start' -d '{"iourc_content": "test"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/77ca056e-1f25-4c11-a331-1a3b3462417e/start HTTP/1.1
|
||||||
|
{
|
||||||
|
"iourc_content": "test"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 614
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:37 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
||||||
|
|
||||||
|
{
|
||||||
|
"application_id": 1,
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"ethernet_adapters": 2,
|
||||||
|
"l1_keepalives": false,
|
||||||
|
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/iou/77ca056e-1f25-4c11-a331-1a3b3462417e",
|
||||||
|
"node_id": "77ca056e-1f25-4c11-a331-1a3b3462417e",
|
||||||
|
"nvram": 128,
|
||||||
|
"path": "iou.bin",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"ram": 256,
|
||||||
|
"serial_adapters": 2,
|
||||||
|
"status": "stopped",
|
||||||
|
"use_default_iou_values": true
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/765fe58b-dc9b-47d3-87cf-a0bcc09f8e15/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/765fe58b-dc9b-47d3-87cf-a0bcc09f8e15/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:37 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/stop
|
||||||
|
|
@ -0,0 +1,30 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes' -d '{"name": "Nat 1"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "Nat 1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 335
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:43 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"name": "Nat 1",
|
||||||
|
"node_id": "d36a1576-6f78-4c10-9bb1-3a9a515e4af1",
|
||||||
|
"ports_mapping": [
|
||||||
|
{
|
||||||
|
"interface": "virbr0",
|
||||||
|
"name": "nat0",
|
||||||
|
"port_number": 0,
|
||||||
|
"type": "ethernet"
|
||||||
|
}
|
||||||
|
],
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "started"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/fee7b594-bf79-4e08-ab56-1a7299bba4a3/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/nat/nodes/fee7b594-bf79-4e08-ab56-1a7299bba4a3/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:43 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/025ba177-4866-4a32-baae-c268caa8e8e1/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/nat/nodes/025ba177-4866-4a32-baae-c268caa8e8e1/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 104
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:45 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/pytest-of-grossmj/pytest-31/test_json4/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/c6e9433b-f557-4058-b94f-eb46ce361d5b/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/c6e9433b-f557-4058-b94f-eb46ce361d5b/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:45 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/nat/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/ports/udp HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 25
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:46 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/ports/udp
|
||||||
|
|
||||||
|
{
|
||||||
|
"udp_port": 10000
|
||||||
|
}
|
@ -0,0 +1,63 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "hello.img", "name": "PC TEST 1", "qemu_path": "/tmp/tmpat1g3bez/qemu-system-x86_64"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"hda_disk_image": "hello.img",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"qemu_path": "/tmp/tmpat1g3bez/qemu-system-x86_64"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 1420
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:53 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "e1000",
|
||||||
|
"adapters": 1,
|
||||||
|
"bios_image": "",
|
||||||
|
"bios_image_md5sum": null,
|
||||||
|
"boot_priority": "c",
|
||||||
|
"cdrom_image": "",
|
||||||
|
"cdrom_image_md5sum": null,
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"cpu_throttling": 0,
|
||||||
|
"cpus": 1,
|
||||||
|
"hda_disk_image": "hello.img",
|
||||||
|
"hda_disk_image_md5sum": "7d793037a0760186574b0282f2f435e7",
|
||||||
|
"hda_disk_interface": "ide",
|
||||||
|
"hdb_disk_image": "",
|
||||||
|
"hdb_disk_image_md5sum": null,
|
||||||
|
"hdb_disk_interface": "ide",
|
||||||
|
"hdc_disk_image": "",
|
||||||
|
"hdc_disk_image_md5sum": null,
|
||||||
|
"hdc_disk_interface": "ide",
|
||||||
|
"hdd_disk_image": "",
|
||||||
|
"hdd_disk_image_md5sum": null,
|
||||||
|
"hdd_disk_interface": "ide",
|
||||||
|
"initrd": "",
|
||||||
|
"initrd_md5sum": null,
|
||||||
|
"kernel_command_line": "",
|
||||||
|
"kernel_image": "",
|
||||||
|
"kernel_image_md5sum": null,
|
||||||
|
"legacy_networking": false,
|
||||||
|
"mac_address": "0c:dd:80:8d:88:00",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/166eb4b1-6446-4608-ac46-1840496c8d88",
|
||||||
|
"node_id": "166eb4b1-6446-4608-ac46-1840496c8d88",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"options": "",
|
||||||
|
"platform": "x86_64",
|
||||||
|
"process_priority": "low",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"qemu_path": "/tmp/tmpat1g3bez/qemu-system-x86_64",
|
||||||
|
"ram": 256,
|
||||||
|
"status": "stopped",
|
||||||
|
"usage": ""
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/14facb15-b61d-4242-a6c8-3638728a4cfa/adapters/1/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/qemu/nodes/14facb15-b61d-4242-a6c8-3638728a4cfa/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:12 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/88102ad0-4274-4a1f-9358-895e6f9e2aa1/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/qemu/nodes/88102ad0-4274-4a1f-9358-895e6f9e2aa1/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 123
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0282bf33-b191-467f-af58-2caa0f60ba99/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0282bf33-b191-467f-af58-2caa0f60ba99/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:29 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/cee78bcb-807a-46c8-9d85-ed7d5e461008/duplicate' -d '{"destination_node_id": "922ee7c2-1bc4-4a4a-8d2e-a1f1ede92096"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/cee78bcb-807a-46c8-9d85-ed7d5e461008/duplicate HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination_node_id": "922ee7c2-1bc4-4a4a-8d2e-a1f1ede92096"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 4
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:28 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/duplicate
|
||||||
|
|
||||||
|
true
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/07130c69-0311-4a77-b3bf-3ef0a80d5b16/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/07130c69-0311-4a77-b3bf-3ef0a80d5b16/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:02 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b67c63c9-0377-4a31-9775-7abfc3a99631/resume' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b67c63c9-0377-4a31-9775-7abfc3a99631/resume HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:06 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/resume
|
||||||
|
|
@ -0,0 +1,59 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ecec2d2e-f59e-4e57-98ac-e2d2e639d772/start' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ecec2d2e-f59e-4e57-98ac-e2d2e639d772/start HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 1381
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:32:57 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "e1000",
|
||||||
|
"adapters": 1,
|
||||||
|
"bios_image": "",
|
||||||
|
"bios_image_md5sum": null,
|
||||||
|
"boot_priority": "c",
|
||||||
|
"cdrom_image": "",
|
||||||
|
"cdrom_image_md5sum": null,
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"cpu_throttling": 0,
|
||||||
|
"cpus": 1,
|
||||||
|
"hda_disk_image": "",
|
||||||
|
"hda_disk_image_md5sum": null,
|
||||||
|
"hda_disk_interface": "ide",
|
||||||
|
"hdb_disk_image": "",
|
||||||
|
"hdb_disk_image_md5sum": null,
|
||||||
|
"hdb_disk_interface": "ide",
|
||||||
|
"hdc_disk_image": "",
|
||||||
|
"hdc_disk_image_md5sum": null,
|
||||||
|
"hdc_disk_interface": "ide",
|
||||||
|
"hdd_disk_image": "",
|
||||||
|
"hdd_disk_image_md5sum": null,
|
||||||
|
"hdd_disk_interface": "ide",
|
||||||
|
"initrd": "",
|
||||||
|
"initrd_md5sum": null,
|
||||||
|
"kernel_command_line": "",
|
||||||
|
"kernel_image": "",
|
||||||
|
"kernel_image_md5sum": null,
|
||||||
|
"legacy_networking": false,
|
||||||
|
"mac_address": "0c:dd:80:d7:72:00",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ecec2d2e-f59e-4e57-98ac-e2d2e639d772",
|
||||||
|
"node_id": "ecec2d2e-f59e-4e57-98ac-e2d2e639d772",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"options": "",
|
||||||
|
"platform": "x86_64",
|
||||||
|
"process_priority": "low",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"qemu_path": "/tmp/tmpat1g3bez/qemu-system-x86_64",
|
||||||
|
"ram": 256,
|
||||||
|
"status": "stopped",
|
||||||
|
"usage": ""
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/448404ba-5a1f-44d6-9171-3351386bba33/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/448404ba-5a1f-44d6-9171-3351386bba33/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:00 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/stop
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/efc7878b-bfd5-41d5-8cb4-a76744c23075/suspend' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/efc7878b-bfd5-41d5-8cb4-a76744c23075/suspend HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:03 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/suspend
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes' -d '{"name": "TraceNG TEST 1"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "TraceNG TEST 1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 443
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": null,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "",
|
||||||
|
"name": "TraceNG TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/984624bf-cd2c-436c-ad33-309c1cb1a29b",
|
||||||
|
"node_id": "984624bf-cd2c-436c-ad33-309c1cb1a29b",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/4e4f4ec5-f016-441f-b330-f670b1cbcc3a/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/traceng/nodes/4e4f4ec5-f016-441f-b330-f670b1cbcc3a/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/ee7db797-f8be-4f44-841d-52cf7319c3c4/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/traceng/nodes/ee7db797-f8be-4f44-841d-52cf7319c3c4/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 123
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/812acfe4-eb49-4892-b288-acb35d7b36b7/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/812acfe4-eb49-4892-b288-acb35d7b36b7/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/3d279906-caac-4f96-b7e3-b05bd7a5aaf4/duplicate' -d '{"destination_node_id": "fd78adad-eda7-4b6a-a62a-4b7587a105fd"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/3d279906-caac-4f96-b7e3-b05bd7a5aaf4/duplicate HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination_node_id": "fd78adad-eda7-4b6a-a62a-4b7587a105fd"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 4
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/duplicate
|
||||||
|
|
||||||
|
true
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/12bc9f20-0ae7-4251-b78e-e107e35c2bb8/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/12bc9f20-0ae7-4251-b78e-e107e35c2bb8/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,28 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/1aad14c9-11e2-41e1-8aa7-4401121f8587/start' -d '{"destination": "192.168.1.2"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/1aad14c9-11e2-41e1-8aa7-4401121f8587/start HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination": "192.168.1.2"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 443
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/start
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": null,
|
||||||
|
"console_type": "none",
|
||||||
|
"default_destination": "",
|
||||||
|
"ip_address": "",
|
||||||
|
"name": "TraceNG TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/traceng/1aad14c9-11e2-41e1-8aa7-4401121f8587",
|
||||||
|
"node_id": "1aad14c9-11e2-41e1-8aa7-4401121f8587",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/ca43df85-e690-4bca-98d5-2cf9a0fc1ba3/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/traceng/nodes/ca43df85-e690-4bca-98d5-2cf9a0fc1ba3/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:31 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/traceng/nodes/{node_id}/stop
|
||||||
|
|
@ -0,0 +1,35 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"linked_clone": false,
|
||||||
|
"name": "VM1",
|
||||||
|
"vmname": "VM1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 460
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
|
||||||
|
"adapters": 0,
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"headless": false,
|
||||||
|
"linked_clone": false,
|
||||||
|
"name": "VM1",
|
||||||
|
"node_directory": null,
|
||||||
|
"node_id": "5794485d-3d99-4950-b45c-9865c290a651",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"ram": 0,
|
||||||
|
"status": "stopped",
|
||||||
|
"use_any_adapter": false,
|
||||||
|
"vmname": "VM1"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/9b16849b-8593-4761-887a-0af035ca2b8b/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/9b16849b-8593-4761-887a-0af035ca2b8b/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/ba55bd08-5407-4b89-ac36-9a3d77439078/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/virtualbox/nodes/ba55bd08-5407-4b89-ac36-9a3d77439078/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 123
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:33 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/bf0aba2d-e03b-42da-863b-113cfc8167c4/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/bf0aba2d-e03b-42da-863b-113cfc8167c4/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:33 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/e56f170b-bccf-4e83-b265-6fbd6c64cbba/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/e56f170b-bccf-4e83-b265-6fbd6c64cbba/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a7516f4a-3728-4003-bca0-352c1bb45183/resume' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a7516f4a-3728-4003-bca0-352c1bb45183/resume HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/resume
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a2e4a995-c059-4484-934a-48c04c9e2f86/start' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/a2e4a995-c059-4484-934a-48c04c9e2f86/start HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/start
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dbb814cd-7039-45f9-b0f4-7f8258bb4908/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dbb814cd-7039-45f9-b0f4-7f8258bb4908/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/stop
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/79eee2b1-cb0e-4c6a-9664-a72954ef4fb5/suspend' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/79eee2b1-cb0e-4c6a-9664-a72954ef4fb5/suspend HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:32 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}/suspend
|
||||||
|
|
@ -0,0 +1,34 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes' -d '{"linked_clone": false, "name": "VM1", "vmx_path": "/tmp/pytest-of-grossmj/pytest-31/test_vmware_create0/test.vmx"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"linked_clone": false,
|
||||||
|
"name": "VM1",
|
||||||
|
"vmx_path": "/tmp/pytest-of-grossmj/pytest-31/test_vmware_create0/test.vmx"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 594
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:33 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"adapter_type": "e1000",
|
||||||
|
"adapters": 0,
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"headless": false,
|
||||||
|
"linked_clone": false,
|
||||||
|
"name": "VM1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vmware/80a57b72-6699-43a8-b3a1-a1bd75622c32",
|
||||||
|
"node_id": "80a57b72-6699-43a8-b3a1-a1bd75622c32",
|
||||||
|
"on_close": "power_off",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped",
|
||||||
|
"use_any_adapter": false,
|
||||||
|
"vmx_path": "/tmp/pytest-of-grossmj/pytest-31/test_vmware_create0/test.vmx"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/f2293a97-bd4a-46eb-bacf-f008784df640/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/vmware/nodes/f2293a97-bd4a-46eb-bacf-f008784df640/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:43 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/d240f6ff-a46d-4e87-9659-d58d4560d799/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/vmware/nodes/d240f6ff-a46d-4e87-9659-d58d4560d799/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 123
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:48 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/0a74ef73-028c-4978-8dc7-a25412d52ec1/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/0a74ef73-028c-4978-8dc7-a25412d52ec1/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:49 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/558dbbc6-6c09-488f-9f53-06c3936fe4b9/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/558dbbc6-6c09-488f-9f53-06c3936fe4b9/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:42 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/b4e12ebe-a7db-4dc5-99f8-48c316fa727a/resume' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/b4e12ebe-a7db-4dc5-99f8-48c316fa727a/resume HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:41 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/resume
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/de9d6a47-1493-4f8e-bc5b-6775e8fc504e/start' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/de9d6a47-1493-4f8e-bc5b-6775e8fc504e/start HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:35 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/start
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/251e712a-f431-4875-883c-c0e24b8057dc/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/251e712a-f431-4875-883c-c0e24b8057dc/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:36 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/stop
|
||||||
|
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/63905ad8-f3ea-41a7-9019-918b7a7df1d5/suspend' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vmware/nodes/63905ad8-f3ea-41a7-9019-918b7a7df1d5/suspend HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:40 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vmware/nodes/{node_id}/suspend
|
||||||
|
|
@ -0,0 +1,26 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes' -d '{"name": "PC TEST 1"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes HTTP/1.1
|
||||||
|
{
|
||||||
|
"name": "PC TEST 1"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 384
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/5d54e9a0-f6d2-466c-b969-ec4f73ff95a2",
|
||||||
|
"node_id": "5d54e9a0-f6d2-466c-b969-ec4f73ff95a2",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,25 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/b17ff27b-697f-4ee5-887f-2cf6677baf3c/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/b17ff27b-697f-4ee5-887f-2cf6677baf3c/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 89
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio
|
||||||
|
|
||||||
|
{
|
||||||
|
"lport": 4242,
|
||||||
|
"rhost": "127.0.0.1",
|
||||||
|
"rport": 4343,
|
||||||
|
"type": "nio_udp"
|
||||||
|
}
|
@ -0,0 +1,20 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/871b3a13-c0fc-41f1-b1de-0a72bc538664/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/vpcs/nodes/871b3a13-c0fc-41f1-b1de-0a72bc538664/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
|
{
|
||||||
|
"capture_file_name": "test.pcap",
|
||||||
|
"data_link_type": "DLT_EN10MB"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 123
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:52 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||||
|
|
||||||
|
{
|
||||||
|
"pcap_file_path": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5abb7ec5-54ca-4549-8d60-d26d5ecb0893/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5abb7ec5-54ca-4549-8d60-d26d5ecb0893/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:52 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture
|
||||||
|
|
@ -0,0 +1,17 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/38c8af2a-45cb-4bba-b8ad-0c2a60f11a8a/duplicate' -d '{"destination_node_id": "ad921d54-e8af-432c-91de-7006bb7ab425"}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/38c8af2a-45cb-4bba-b8ad-0c2a60f11a8a/duplicate HTTP/1.1
|
||||||
|
{
|
||||||
|
"destination_node_id": "ad921d54-e8af-432c-91de-7006bb7ab425"
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 4
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:52 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/duplicate
|
||||||
|
|
||||||
|
true
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/075f4228-23c2-443d-bff2-6d7c7666f667/reload' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/075f4228-23c2-443d-bff2-6d7c7666f667/reload HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/reload
|
||||||
|
|
@ -0,0 +1,24 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/f9bc266b-4a07-49ae-b6c0-d632ce2250fa/start' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/f9bc266b-4a07-49ae-b6c0-d632ce2250fa/start HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 200
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 384
|
||||||
|
Content-Type: application/json
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
||||||
|
|
||||||
|
{
|
||||||
|
"command_line": "",
|
||||||
|
"console": 5004,
|
||||||
|
"console_type": "telnet",
|
||||||
|
"name": "PC TEST 1",
|
||||||
|
"node_directory": "/tmp/tmphp7izuu5/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/f9bc266b-4a07-49ae-b6c0-d632ce2250fa",
|
||||||
|
"node_id": "f9bc266b-4a07-49ae-b6c0-d632ce2250fa",
|
||||||
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
|
"status": "stopped"
|
||||||
|
}
|
@ -0,0 +1,14 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a115c9c6-fe3e-48c8-a0a5-98cda4cfb0f3/stop' -d '{}'
|
||||||
|
|
||||||
|
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a115c9c6-fe3e-48c8-a0a5-98cda4cfb0f3/stop HTTP/1.1
|
||||||
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 204
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:51 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/stop
|
||||||
|
|
23
scripts/docs/api/examples/compute_post_qemuimg.txt
Normal file
23
scripts/docs/api/examples/compute_post_qemuimg.txt
Normal file
@ -0,0 +1,23 @@
|
|||||||
|
curl -i -X POST 'http://localhost:3080/v2/compute/qemu/img' -d '{"cluster_size": 64, "format": "qcow2", "lazy_refcounts": "off", "path": "/tmp/hda.qcow2", "preallocation": "metadata", "qemu_img": "/tmp/qemu-img", "refcount_bits": 12, "size": 100}'
|
||||||
|
|
||||||
|
POST /v2/compute/qemu/img HTTP/1.1
|
||||||
|
{
|
||||||
|
"cluster_size": 64,
|
||||||
|
"format": "qcow2",
|
||||||
|
"lazy_refcounts": "off",
|
||||||
|
"path": "/tmp/hda.qcow2",
|
||||||
|
"preallocation": "metadata",
|
||||||
|
"qemu_img": "/tmp/qemu-img",
|
||||||
|
"refcount_bits": 12,
|
||||||
|
"size": 100
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
HTTP/1.1 201
|
||||||
|
Connection: close
|
||||||
|
Content-Length: 0
|
||||||
|
Content-Type: application/octet-stream
|
||||||
|
Date: Mon, 19 Nov 2018 18:33:25 GMT
|
||||||
|
Server: Python/3.6 GNS3/2.2.0dev4
|
||||||
|
X-Route: /v2/compute/qemu/img
|
||||||
|
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user