mirror of
https://github.com/GNS3/gns3-server.git
synced 2024-11-16 16:54:51 +02:00
Rebuild documentation
This commit is contained in:
parent
bbc1505274
commit
d121c201e4
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f0cbbcef-3abe-43b0-bc94-9ef756185aec'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/cc542a13-874e-4d16-b6e9-9cad0bfe3b93'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/f0cbbcef-3abe-43b0-bc94-9ef756185aec HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/cc542a13-874e-4d16-b6e9-9cad0bfe3b93 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/86c08af6-cc43-4051-a3d2-f441122611dd/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6a1c7cea-6610-4ffe-aceb-3219cd0d0ec1/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/86c08af6-cc43-4051-a3d2-f441122611dd/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/6a1c7cea-6610-4ffe-aceb-3219cd0d0ec1/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e8adbc13-6149-4541-8e1f-e911ed3cb1d3/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a36a487a-dced-4e76-a6ea-d15bb8ad88db/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/e8adbc13-6149-4541-8e1f-e911ed3cb1d3/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a36a487a-dced-4e76-a6ea-d15bb8ad88db/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e13a534-e22a-4391-8412-279bde813e3b'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5bc11f8c-b5ea-4aef-ba83-c74451f36693'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9e13a534-e22a-4391-8412-279bde813e3b HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/5bc11f8c-b5ea-4aef-ba83-c74451f36693 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c9b300c3-f0da-4ad5-a2f7-9ee686cc6f83/adapters/1/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e91beca3-58ce-4aba-9493-42f3b4525cb3/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/c9b300c3-f0da-4ad5-a2f7-9ee686cc6f83/adapters/1/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/e91beca3-58ce-4aba-9493-42f3b4525cb3/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d730fde6-f8d2-4be9-a8fd-f08fe82624b9'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/32b858c9-ae11-4c35-8282-75d468e16c49'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/d730fde6-f8d2-4be9-a8fd-f08fe82624b9 HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/32b858c9-ae11-4c35-8282-75d468e16c49 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/4a4b37e2-0862-4fdf-8083-6009b27d1794/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/a94ef927-8990-4f15-bcb8-9d8e269b9664/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/4a4b37e2-0862-4fdf-8083-6009b27d1794/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/a94ef927-8990-4f15-bcb8-9d8e269b9664/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7aa06406-8520-4dcf-8e2b-de47d53ecaff'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6e641104-4fee-4ef4-bd12-b37beee0d12a'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7aa06406-8520-4dcf-8e2b-de47d53ecaff HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/6e641104-4fee-4ef4-bd12-b37beee0d12a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7d7c54e3-582b-4ad7-8bde-67f4598a4862/adapters/1/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/2001cf01-22c0-4bc4-b105-a62b2d966bc2/adapters/1/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/7d7c54e3-582b-4ad7-8bde-67f4598a4862/adapters/1/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/2001cf01-22c0-4bc4-b105-a62b2d966bc2/adapters/1/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/db35105b-863d-432c-87f1-e21f5fa3b5f9/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5ed503b4-6381-4b0c-903f-e509a7b55918/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/db35105b-863d-432c-87f1-e21f5fa3b5f9/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/5ed503b4-6381-4b0c-903f-e509a7b55918/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/02f72086-d9a8-4dce-9df0-aea4274f84f1'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/d825429d-d6f4-445c-9a0f-9c42dc2b426c'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/02f72086-d9a8-4dce-9df0-aea4274f84f1 HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/d825429d-d6f4-445c-9a0f-9c42dc2b426c HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e4a2af70-947b-4253-a007-a47f06217846/adapters/0/ports/0/nio'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/27f7db39-8425-4d8e-a7e5-1bc388e94212/adapters/0/ports/0/nio'
|
||||
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e4a2af70-947b-4253-a007-a47f06217846/adapters/0/ports/0/nio HTTP/1.1
|
||||
DELETE /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/27f7db39-8425-4d8e-a7e5-1bc388e94212/adapters/0/ports/0/nio HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
31
docs/api/examples/compute_get_capabilities.txt
Normal file
31
docs/api/examples/compute_get_capabilities.txt
Normal file
@ -0,0 +1,31 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/capabilities'
|
||||
|
||||
GET /v2/compute/capabilities HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 316
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/compute/capabilities
|
||||
|
||||
{
|
||||
"node_types": [
|
||||
"cloud",
|
||||
"nat",
|
||||
"ethernet_hub",
|
||||
"ethernet_switch",
|
||||
"vpcs",
|
||||
"virtualbox",
|
||||
"dynamips",
|
||||
"frame_relay_switch",
|
||||
"atm_switch",
|
||||
"qemu",
|
||||
"vmware",
|
||||
"docker",
|
||||
"iou"
|
||||
],
|
||||
"version": "2.0.0dev1"
|
||||
}
|
File diff suppressed because it is too large
Load Diff
@ -14,10 +14,10 @@ X-ROUTE: /v2/compute/projects
|
||||
[
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
|
||||
},
|
||||
{
|
||||
"name": "test",
|
||||
"project_id": "52010203-0405-0607-0809-0a0b0c0d0e0b"
|
||||
"project_id": "51010203-0405-0607-0809-0a0b0c0d0e0f"
|
||||
}
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/09247bb6-2ed3-4e6c-9f59-5092098eed69'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/a577ec14-fd92-46f0-8d14-6b4cb6e856c0'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/09247bb6-2ed3-4e6c-9f59-5092098eed69 HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/a577ec14-fd92-46f0-8d14-6b4cb6e856c0 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -955,7 +955,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
}
|
||||
],
|
||||
"name": "Cloud 1",
|
||||
"node_id": "09247bb6-2ed3-4e6c-9f59-5092098eed69",
|
||||
"node_id": "a577ec14-fd92-46f0-8d14-6b4cb6e856c0",
|
||||
"ports": [],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
|
@ -1,11 +1,11 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3ce6666e-2b7e-4ced-915a-6b060f4c2796'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2e31f185-ba34-4abf-8f1f-a8353358202c'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/3ce6666e-2b7e-4ced-915a-6b060f4c2796 HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/2e31f185-ba34-4abf-8f1f-a8353358202c HTTP/1.1
|
||||
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 696
|
||||
CONTENT-LENGTH: 697
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -19,8 +19,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/3ce6666e-2b7e-4ced-915a-6b060f4c2796",
|
||||
"node_id": "3ce6666e-2b7e-4ced-915a-6b060f4c2796",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/project-files/iou/2e31f185-ba34-4abf-8f1f-a8353358202c",
|
||||
"node_id": "2e31f185-ba34-4abf-8f1f-a8353358202c",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/35d71fb8-b556-402f-abba-6f12971501b0'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/82d46bae-c93f-43d4-b9c6-9c761b2ac723'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/35d71fb8-b556-402f-abba-6f12971501b0 HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/82d46bae-c93f-43d4-b9c6-9c761b2ac723 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -13,7 +13,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "35d71fb8-b556-402f-abba-6f12971501b0",
|
||||
"node_id": "82d46bae-c93f-43d4-b9c6-9c761b2ac723",
|
||||
"ports": [
|
||||
{
|
||||
"interface": "eth1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/982bf60a-aa50-4716-b6ab-41e7700dd6c1'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/fcd4fe2c-9810-41d1-b138-bba259673ece'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/982bf60a-aa50-4716-b6ab-41e7700dd6c1 HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/fcd4fe2c-9810-41d1-b138-bba259673ece HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:d6:c1:00",
|
||||
"mac_address": "00:dd:80:3e:ce:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/982bf60a-aa50-4716-b6ab-41e7700dd6c1",
|
||||
"node_id": "982bf60a-aa50-4716-b6ab-41e7700dd6c1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/fcd4fe2c-9810-41d1-b138-bba259673ece",
|
||||
"node_id": "fcd4fe2c-9810-41d1-b138-bba259673ece",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1qzj1p83/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/61b068b6-38e5-4d38-ac66-6a294a10200a'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/828c994a-efd0-4e74-8476-14d2b2865bbd'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/61b068b6-38e5-4d38-ac66-6a294a10200a HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/828c994a-efd0-4e74-8476-14d2b2865bbd HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -21,7 +21,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||
"linked_clone": false,
|
||||
"name": "VMTEST",
|
||||
"node_directory": null,
|
||||
"node_id": "61b068b6-38e5-4d38-ac66-6a294a10200a",
|
||||
"node_id": "828c994a-efd0-4e74-8476-14d2b2865bbd",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/76cfacde-1811-4eae-a22f-06cd7f2032ed'
|
||||
curl -i -X GET 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/f71793ba-3071-484d-be05-db5063e69d46'
|
||||
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/76cfacde-1811-4eae-a22f-06cd7f2032ed HTTP/1.1
|
||||
GET /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/f71793ba-3071-484d-be05-db5063e69d46 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
"console": 5720,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/76cfacde-1811-4eae-a22f-06cd7f2032ed",
|
||||
"node_id": "76cfacde-1811-4eae-a22f-06cd7f2032ed",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/f71793ba-3071-484d-be05-db5063e69d46",
|
||||
"node_id": "f71793ba-3071-484d-be05-db5063e69d46",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
|
@ -957,7 +957,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes
|
||||
}
|
||||
],
|
||||
"name": "Cloud 1",
|
||||
"node_id": "bbddb1ea-9ec9-4fa6-b503-3ff74eed4ab0",
|
||||
"node_id": "1bd434db-4dec-4e4c-924f-d8ea21a1a5f9",
|
||||
"ports": [],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/d39b89b6-1a4d-4874-9f33-cce697db969a/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/450786c3-e12e-4fd5-bed0-d4ef34bd5c57/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/d39b89b6-1a4d-4874-9f33-cce697db969a/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/450786c3-e12e-4fd5-bed0-d4ef34bd5c57/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/2dbfa776-e4dd-446a-a46d-a72150191322/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/72f0b846-4b14-459a-8b82-7d0b2b5246c8/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/2dbfa776-e4dd-446a-a46d-a72150191322/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/72f0b846-4b14-459a-8b82-7d0b2b5246c8/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a19882ff-53cd-4592-b386-ce424a73faed/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d464bb56-e328-4d84-bab3-4f8e5872125b/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/a19882ff-53cd-4592-b386-ce424a73faed/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/d464bb56-e328-4d84-bab3-4f8e5872125b/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
@ -8,12 +8,12 @@ POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/a198
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 145
|
||||
CONTENT-LENGTH: 146
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/tmp/captures/test.pcap"
|
||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/tmp/captures/test.pcap"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/58b9a246-ce23-4c50-9af7-dd08092db8e1/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/9fdb7c14-b4f2-414a-8e50-11b796064263/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/58b9a246-ce23-4c50-9af7-dd08092db8e1/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/9fdb7c14-b4f2-414a-8e50-11b796064263/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,16 +1,16 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "b1ec956f-ef2d-49a5-80a0-2f3c95f3b748", "path": "iou.bin", "startup_config_content": "hostname test"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes' -d '{"name": "PC TEST 1", "node_id": "5715b228-58f0-420b-949b-8b4319e8fb5c", "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": "b1ec956f-ef2d-49a5-80a0-2f3c95f3b748",
|
||||
"node_id": "5715b228-58f0-420b-949b-8b4319e8fb5c",
|
||||
"path": "iou.bin",
|
||||
"startup_config_content": "hostname test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
CONTENT-LENGTH: 712
|
||||
CONTENT-LENGTH: 713
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -24,8 +24,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/b1ec956f-ef2d-49a5-80a0-2f3c95f3b748",
|
||||
"node_id": "b1ec956f-ef2d-49a5-80a0-2f3c95f3b748",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/project-files/iou/5715b228-58f0-420b-949b-8b4319e8fb5c",
|
||||
"node_id": "5715b228-58f0-420b-949b-8b4319e8fb5c",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/53080a75-d40c-447c-a347-24c88b0c9513/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9195792e-61eb-4304-b25f-4fd1603d87c1/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/53080a75-d40c-447c-a347-24c88b0c9513/adapters/1/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/9195792e-61eb-4304-b25f-4fd1603d87c1/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "bridge0",
|
||||
"type": "nio_ethernet"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/66921aca-148a-4625-bb51-8451ed7993e2/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bac7558b-815a-418f-94d4-f439b31609e4/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/66921aca-148a-4625-bb51-8451ed7993e2/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/bac7558b-815a-418f-94d4-f439b31609e4/adapters/0/ports/0/start_capture HTTP/1.1
|
||||
{
|
||||
"capture_file_name": "test.pcap",
|
||||
"data_link_type": "DLT_EN10MB"
|
||||
@ -8,12 +8,12 @@ POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/66921ac
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 145
|
||||
CONTENT-LENGTH: 146
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
||||
|
||||
{
|
||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/tmp/captures/test.pcap"
|
||||
"pcap_file_path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/tmp/captures/test.pcap"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7713ca9a-509b-495f-850c-aac89e50b5a9/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/d9248289-21c5-405d-bd1a-71d65d8f4d21/adapters/0/ports/0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7713ca9a-509b-495f-850c-aac89e50b5a9/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/d9248289-21c5-405d-bd1a-71d65d8f4d21/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7f027614-6aab-4d13-96a1-d464893db68c/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/233c92cc-0d86-4102-81b3-3f7632ad4b9d/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/7f027614-6aab-4d13-96a1-d464893db68c/reload HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/233c92cc-0d86-4102-81b3-3f7632ad4b9d/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,13 +1,13 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/88ef9436-cdb0-4d4b-8ee3-a143f500bede/start' -d '{"iourc_content": "test"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/65f984aa-5e12-47a4-91d7-365af01bdcc2/start' -d '{"iourc_content": "test"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/88ef9436-cdb0-4d4b-8ee3-a143f500bede/start HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/65f984aa-5e12-47a4-91d7-365af01bdcc2/start HTTP/1.1
|
||||
{
|
||||
"iourc_content": "test"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 696
|
||||
CONTENT-LENGTH: 697
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -21,8 +21,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}/start
|
||||
"l1_keepalives": false,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/88ef9436-cdb0-4d4b-8ee3-a143f500bede",
|
||||
"node_id": "88ef9436-cdb0-4d4b-8ee3-a143f500bede",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/project-files/iou/65f984aa-5e12-47a4-91d7-365af01bdcc2",
|
||||
"node_id": "65f984aa-5e12-47a4-91d7-365af01bdcc2",
|
||||
"nvram": 128,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/29ff3007-361e-449d-8fdd-78bbf25eaa78/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/29764528-ae1d-4c1d-b193-54145a7d8c15/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/29ff3007-361e-449d-8fdd-78bbf25eaa78/stop HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/29764528-ae1d-4c1d-b193-54145a7d8c15/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -15,7 +15,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes
|
||||
|
||||
{
|
||||
"name": "Nat 1",
|
||||
"node_id": "2c745227-9d57-404d-9f49-330b1871ddbc",
|
||||
"node_id": "71001d69-522e-4c19-ab07-e4a9a002ea94",
|
||||
"ports": [
|
||||
{
|
||||
"interface": "eth1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/8be30430-3372-4a40-af11-5e3df5f8f497/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/bc572389-2f58-4202-8510-66c7a2a5b219/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/8be30430-3372-4a40-af11-5e3df5f8f497/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/bc572389-2f58-4202-8510-66c7a2a5b219/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,10 +1,10 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64", "ram": 1024}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1qzj1p83/qemu-system-x86_64", "ram": 1024}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes HTTP/1.1
|
||||
{
|
||||
"hda_disk_image": "linux\u8f7d.img",
|
||||
"name": "PC TEST 1",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1qzj1p83/qemu-system-x86_64",
|
||||
"ram": 1024
|
||||
}
|
||||
|
||||
@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:3f:3f:00",
|
||||
"mac_address": "00:dd:80:42:d7:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/7626d2a1-cc35-442d-bc85-8151af2f3f3f",
|
||||
"node_id": "7626d2a1-cc35-442d-bc85-8151af2f3f3f",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/a4b94490-6246-44dc-82cc-b7ff02fd42d7",
|
||||
"node_id": "a4b94490-6246-44dc-82cc-b7ff02fd42d7",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1qzj1p83/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/44da0d8c-bb3b-4b93-8918-363345b58b9c/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/29401064-f0a7-4a27-9e21-f674007a0f7a/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_ethernet"}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/44da0d8c-bb3b-4b93-8918-363345b58b9c/adapters/1/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/29401064-f0a7-4a27-9e21-f674007a0f7a/adapters/1/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"ethernet_device": "eth0",
|
||||
"type": "nio_ethernet"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0d8e7a92-8de1-4978-aa2e-c6e77dc7a7f2/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/a5061c79-6870-4b2e-87e1-6633171bb779/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/0d8e7a92-8de1-4978-aa2e-c6e77dc7a7f2/reload HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/a5061c79-6870-4b2e-87e1-6633171bb779/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8471705e-da31-4d1b-b070-9ba982711cc1/resume' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/aba644c6-1a0f-4c44-89c4-e7f7d0b52fe8/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/8471705e-da31-4d1b-b070-9ba982711cc1/resume HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/aba644c6-1a0f-4c44-89c4-e7f7d0b52fe8/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ef7f5f10-637d-4103-a34f-7bcbce149f8e/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bc2bd9c3-1ba3-40d9-b846-51bd96983475/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/ef7f5f10-637d-4103-a34f-7bcbce149f8e/start HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/bc2bd9c3-1ba3-40d9-b846-51bd96983475/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -41,15 +41,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}/start
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:9f:8e:00",
|
||||
"mac_address": "00:dd:80:34:75:00",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ef7f5f10-637d-4103-a34f-7bcbce149f8e",
|
||||
"node_id": "ef7f5f10-637d-4103-a34f-7bcbce149f8e",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/bc2bd9c3-1ba3-40d9-b846-51bd96983475",
|
||||
"node_id": "bc2bd9c3-1ba3-40d9-b846-51bd96983475",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1qzj1p83/qemu-system-x86_64",
|
||||
"ram": 256,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/64642cf3-92ef-49a9-859c-2d50b2e06b24/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c6bafe0f-0202-4327-92a6-292c7c1714e8/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/64642cf3-92ef-49a9-859c-2d50b2e06b24/stop HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/c6bafe0f-0202-4327-92a6-292c7c1714e8/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b96ad185-f250-46fe-bb27-a0307656db10/suspend' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/77781dcd-ea91-4084-b520-6ef95f3b20e2/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/b96ad185-f250-46fe-bb27-a0307656db10/suspend HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/77781dcd-ea91-4084-b520-6ef95f3b20e2/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -25,7 +25,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes
|
||||
"linked_clone": false,
|
||||
"name": "VM1",
|
||||
"node_directory": null,
|
||||
"node_id": "8207fc7e-9b7f-4a04-a2e9-eb01d826ba4f",
|
||||
"node_id": "26ac7779-ec36-4e9d-94d8-62361b29c9d8",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/c969abea-4228-49cb-9da8-6c118a444ea0/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/6c56be36-fcea-4773-ac70-ea77aaee975a/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/c969abea-4228-49cb-9da8-6c118a444ea0/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/6c56be36-fcea-4773-ac70-ea77aaee975a/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/25bfb4b1-af29-4c23-8762-9d65092652ce/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7216430a-e89f-4cca-974d-dd618d56ac47/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/25bfb4b1-af29-4c23-8762-9d65092652ce/reload HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/7216430a-e89f-4cca-974d-dd618d56ac47/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/506a3552-19dc-4c9f-91a1-8a8cb9d2e244/resume' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/222f1da1-0fb1-40bb-922d-6068ecac32d2/resume' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/506a3552-19dc-4c9f-91a1-8a8cb9d2e244/resume HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/222f1da1-0fb1-40bb-922d-6068ecac32d2/resume HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dec8ba6d-e98f-4330-a83e-b89b505db1ff/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/ee0d4d3d-6ae7-47b1-ab3f-0a1dbe69d2ea/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/dec8ba6d-e98f-4330-a83e-b89b505db1ff/start HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/ee0d4d3d-6ae7-47b1-ab3f-0a1dbe69d2ea/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4b8c8554-e309-4268-be07-9030ac3f9dc9/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/1e9bac81-a029-43d5-92a6-ea8673a65991/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/4b8c8554-e309-4268-be07-9030ac3f9dc9/stop HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/1e9bac81-a029-43d5-92a6-ea8673a65991/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/bf7560e4-23fc-4029-ada5-122c2aef97a6/suspend' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/03c6edcc-e783-443e-975a-b3eac4ed34cd/suspend' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/bf7560e4-23fc-4029-ada5-122c2aef97a6/suspend HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/03c6edcc-e783-443e-975a-b3eac4ed34cd/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -18,8 +18,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes
|
||||
"console": 5720,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e5748c47-6674-467c-8989-21c6ec8772ae",
|
||||
"node_id": "e5748c47-6674-467c-8989-21c6ec8772ae",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/5733a9a0-05be-4d3c-94ee-80b517f29bc2",
|
||||
"node_id": "5733a9a0-05be-4d3c-94ee-80b517f29bc2",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a6b0cfea-8161-4ebb-9af9-e98643cba39a/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5dc42324-e40c-418e-99f5-5e2b5d920d08/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/a6b0cfea-8161-4ebb-9af9-e98643cba39a/adapters/0/ports/0/nio HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/5dc42324-e40c-418e-99f5-5e2b5d920d08/adapters/0/ports/0/nio HTTP/1.1
|
||||
{
|
||||
"lport": 4242,
|
||||
"rhost": "127.0.0.1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/8b061422-b92f-4b4a-878c-536f55ba1221/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4f127a7f-86af-4188-b1d2-a4a0f37961af/reload' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/8b061422-b92f-4b4a-878c-536f55ba1221/reload HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/4f127a7f-86af-4188-b1d2-a4a0f37961af/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a0e7676b-0d45-481e-a98b-101848d559d6/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/752da6c4-fd2d-4c55-a6cf-30a1a88f1048/start' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/a0e7676b-0d45-481e-a98b-101848d559d6/start HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/752da6c4-fd2d-4c55-a6cf-30a1a88f1048/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -16,8 +16,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}/start
|
||||
"console": 5720,
|
||||
"console_type": "telnet",
|
||||
"name": "PC TEST 1",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/a0e7676b-0d45-481e-a98b-101848d559d6",
|
||||
"node_id": "a0e7676b-0d45-481e-a98b-101848d559d6",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/752da6c4-fd2d-4c55-a6cf-30a1a88f1048",
|
||||
"node_id": "752da6c4-fd2d-4c55-a6cf-30a1a88f1048",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": null,
|
||||
"startup_script_path": null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/9aedadc1-a312-4186-a053-648e9df8ae9b/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/284de9e5-36a5-48c5-b684-a7535c3e4f22/stop' -d '{}'
|
||||
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/9aedadc1-a312-4186-a053-648e9df8ae9b/stop HTTP/1.1
|
||||
POST /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/284de9e5-36a5-48c5-b684-a7535c3e4f22/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,18 +0,0 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/compute/version' -d '{"version": "2.0.0dev1"}'
|
||||
|
||||
POST /v2/compute/version HTTP/1.1
|
||||
{
|
||||
"version": "2.0.0dev1"
|
||||
}
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 30
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/compute/version
|
||||
|
||||
{
|
||||
"version": "2.0.0dev1"
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/11800c81-28cb-419d-869e-4c1cec9738fe' -d '{"name": "test"}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/2cf9d65f-8859-43f1-969e-a717b3e53352' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/11800c81-28cb-419d-869e-4c1cec9738fe HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/cloud/nodes/2cf9d65f-8859-43f1-969e-a717b3e53352 HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
@ -957,7 +957,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/cloud/nodes/{node_id}
|
||||
}
|
||||
],
|
||||
"name": "test",
|
||||
"node_id": "11800c81-28cb-419d-869e-4c1cec9738fe",
|
||||
"node_id": "2cf9d65f-8859-43f1-969e-a717b3e53352",
|
||||
"ports": [],
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"status": "started"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/42a35b9a-6b07-4cf3-9030-fc93c5cb588a' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/cb569790-f7ff-4c77-a3ee-9f8586699e6e' -d '{"console": 5713, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/42a35b9a-6b07-4cf3-9030-fc93c5cb588a HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/cb569790-f7ff-4c77-a3ee-9f8586699e6e HTTP/1.1
|
||||
{
|
||||
"console": 5713,
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
@ -10,7 +10,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/nodes/42a35
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 653
|
||||
CONTENT-LENGTH: 654
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -28,8 +28,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/docker/nodes/{node_id}
|
||||
"environment": "GNS3=1\nGNS4=0",
|
||||
"image": "nginx:latest",
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/docker/42a35b9a-6b07-4cf3-9030-fc93c5cb588a",
|
||||
"node_id": "42a35b9a-6b07-4cf3-9030-fc93c5cb588a",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/project-files/docker/cb569790-f7ff-4c77-a3ee-9f8586699e6e",
|
||||
"node_id": "cb569790-f7ff-4c77-a3ee-9f8586699e6e",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"start_command": "yes",
|
||||
"status": "stopped"
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0544cde0-2d2a-4488-8970-49f87b463674' -d '{"console": 5712, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/52e439c4-8dc0-4e6f-9507-b525c2066e04' -d '{"console": 5712, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0544cde0-2d2a-4488-8970-49f87b463674 HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/52e439c4-8dc0-4e6f-9507-b525c2066e04 HTTP/1.1
|
||||
{
|
||||
"console": 5712,
|
||||
"ethernet_adapters": 4,
|
||||
@ -16,7 +16,7 @@ PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/nodes/0544cde0
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 707
|
||||
CONTENT-LENGTH: 708
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -30,8 +30,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/iou/nodes/{node_id}
|
||||
"l1_keepalives": true,
|
||||
"md5sum": "e573e8f5c93c6c00783f20c7a170aa6c",
|
||||
"name": "test",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_json5/project-files/iou/0544cde0-2d2a-4488-8970-49f87b463674",
|
||||
"node_id": "0544cde0-2d2a-4488-8970-49f87b463674",
|
||||
"node_directory": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_json5/project-files/iou/52e439c4-8dc0-4e6f-9507-b525c2066e04",
|
||||
"node_id": "52e439c4-8dc0-4e6f-9507-b525c2066e04",
|
||||
"nvram": 2048,
|
||||
"path": "iou.bin",
|
||||
"private_config": null,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/6bfb85ec-15bc-4c41-a4c0-a1ac3564b662' -d '{"name": "test"}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/a1d2a112-bbdc-4d9b-ba29-5149a4a7ef72' -d '{"name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/6bfb85ec-15bc-4c41-a4c0-a1ac3564b662 HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/nat/nodes/a1d2a112-bbdc-4d9b-ba29-5149a4a7ef72 HTTP/1.1
|
||||
{
|
||||
"name": "test"
|
||||
}
|
||||
@ -15,7 +15,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/nat/nodes/{node_id}
|
||||
|
||||
{
|
||||
"name": "test",
|
||||
"node_id": "6bfb85ec-15bc-4c41-a4c0-a1ac3564b662",
|
||||
"node_id": "a1d2a112-bbdc-4d9b-ba29-5149a4a7ef72",
|
||||
"ports": [
|
||||
{
|
||||
"interface": "eth1",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/11db191a-9c2d-4e40-a086-413aaccceaff' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f20c993a-5959-4c5b-b69c-a0ff161a3135' -d '{"console": 5712, "hdb_disk_image": "linux\u8f7d.img", "name": "test", "ram": 1024}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/11db191a-9c2d-4e40-a086-413aaccceaff HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/nodes/f20c993a-5959-4c5b-b69c-a0ff161a3135 HTTP/1.1
|
||||
{
|
||||
"console": 5712,
|
||||
"hdb_disk_image": "linux\u8f7d.img",
|
||||
@ -46,15 +46,15 @@ X-ROUTE: /v2/compute/projects/{project_id}/qemu/nodes/{node_id}
|
||||
"kernel_image": "",
|
||||
"kernel_image_md5sum": null,
|
||||
"legacy_networking": false,
|
||||
"mac_address": "00:dd:80:ea:ff:00",
|
||||
"mac_address": "00:dd:80:31:35:00",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/11db191a-9c2d-4e40-a086-413aaccceaff",
|
||||
"node_id": "11db191a-9c2d-4e40-a086-413aaccceaff",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/f20c993a-5959-4c5b-b69c-a0ff161a3135",
|
||||
"node_id": "f20c993a-5959-4c5b-b69c-a0ff161a3135",
|
||||
"options": "",
|
||||
"platform": "x86_64",
|
||||
"process_priority": "low",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1t_zelki/qemu-system-x86_64",
|
||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1qzj1p83/qemu-system-x86_64",
|
||||
"ram": 1024,
|
||||
"status": "stopped",
|
||||
"usage": ""
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0981ed02-441a-4eab-a04a-5f5d686a79ee' -d '{"console": 5721, "name": "test"}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/914a6816-13eb-4b29-a79b-eb19c2b327da' -d '{"console": 5721, "name": "test"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/0981ed02-441a-4eab-a04a-5f5d686a79ee HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/nodes/914a6816-13eb-4b29-a79b-eb19c2b327da HTTP/1.1
|
||||
{
|
||||
"console": 5721,
|
||||
"name": "test"
|
||||
@ -24,7 +24,7 @@ X-ROUTE: /v2/compute/projects/{project_id}/virtualbox/nodes/{node_id}
|
||||
"linked_clone": false,
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "0981ed02-441a-4eab-a04a-5f5d686a79ee",
|
||||
"node_id": "914a6816-13eb-4b29-a79b-eb19c2b327da",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"ram": 0,
|
||||
"status": "stopped",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/515dde30-c071-4b00-9bd3-4c9670894a7b' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e0719a9b-7863-46f7-ace1-479ff261f909' -d '{"console": 5722, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/515dde30-c071-4b00-9bd3-4c9670894a7b HTTP/1.1
|
||||
PUT /v2/compute/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/nodes/e0719a9b-7863-46f7-ace1-479ff261f909 HTTP/1.1
|
||||
{
|
||||
"console": 5722,
|
||||
"name": "test",
|
||||
@ -20,8 +20,8 @@ X-ROUTE: /v2/compute/projects/{project_id}/vpcs/nodes/{node_id}
|
||||
"console": 5722,
|
||||
"console_type": "telnet",
|
||||
"name": "test",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpe1qk71mi/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/515dde30-c071-4b00-9bd3-4c9670894a7b",
|
||||
"node_id": "515dde30-c071-4b00-9bd3-4c9670894a7b",
|
||||
"node_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmps5w9xq7p/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/e0719a9b-7863-46f7-ace1-479ff261f909",
|
||||
"node_id": "e0719a9b-7863-46f7-ace1-479ff261f909",
|
||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||
"startup_script": "ip 192.168.1.1",
|
||||
"startup_script_path": "startup.vpc",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/62332e68-a255-4526-9af5-302b6670256f'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/03ded74c-9066-4e4d-b2e2-4b835fce5631'
|
||||
|
||||
DELETE /v2/projects/62332e68-a255-4526-9af5-302b6670256f HTTP/1.1
|
||||
DELETE /v2/projects/03ded74c-9066-4e4d-b2e2-4b835fce5631 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/edad99ed-f0b9-4019-b9f9-9351f97710f0/drawings/0f396900-1e78-4350-ab98-c07cec24239a'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/70a58fbb-b8c9-44b4-89c1-a5fa72e9506c/drawings/1db2e2f6-3dd1-4831-9532-a60ab856294b'
|
||||
|
||||
DELETE /v2/projects/edad99ed-f0b9-4019-b9f9-9351f97710f0/drawings/0f396900-1e78-4350-ab98-c07cec24239a HTTP/1.1
|
||||
DELETE /v2/projects/70a58fbb-b8c9-44b4-89c1-a5fa72e9506c/drawings/1db2e2f6-3dd1-4831-9532-a60ab856294b HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/e7967118-9e5f-41d2-922e-e35053b5e5a7/links/701e9502-119d-4aec-8a66-c13f7c8013d5'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/de115f02-96b9-4158-837c-1a73c47c96c7/links/669968e7-64ab-44d5-8a4f-d7caa3ac6de9'
|
||||
|
||||
DELETE /v2/projects/e7967118-9e5f-41d2-922e-e35053b5e5a7/links/701e9502-119d-4aec-8a66-c13f7c8013d5 HTTP/1.1
|
||||
DELETE /v2/projects/de115f02-96b9-4158-837c-1a73c47c96c7/links/669968e7-64ab-44d5-8a4f-d7caa3ac6de9 HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/6659771c-4fe9-4ffc-8c19-dfd672f26b76/nodes/97aa684f-b23c-4bfb-81bf-05df5d187b3f'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/0555e4fa-ea3b-4cfc-9ee7-f893afdc0529/nodes/930d8103-563f-4550-a43f-34a718883c6e'
|
||||
|
||||
DELETE /v2/projects/6659771c-4fe9-4ffc-8c19-dfd672f26b76/nodes/97aa684f-b23c-4bfb-81bf-05df5d187b3f HTTP/1.1
|
||||
DELETE /v2/projects/0555e4fa-ea3b-4cfc-9ee7-f893afdc0529/nodes/930d8103-563f-4550-a43f-34a718883c6e HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/f432c246-be05-43e2-b60a-05d924ac89ff/snapshots/9a2f99d4-2248-4f49-98fc-a0513cb5248d'
|
||||
curl -i -X DELETE 'http://localhost:3080/v2/projects/41922bc6-248e-49f1-bff4-a90a1ddcc6e8/snapshots/00f53403-6c95-4d73-9062-65ece9e4797a'
|
||||
|
||||
DELETE /v2/projects/f432c246-be05-43e2-b60a-05d924ac89ff/snapshots/9a2f99d4-2248-4f49-98fc-a0513cb5248d HTTP/1.1
|
||||
DELETE /v2/projects/41922bc6-248e-49f1-bff4-a90a1ddcc6e8/snapshots/00f53403-6c95-4d73-9062-65ece9e4797a HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -5,7 +5,7 @@ GET /v2/computes HTTP/1.1
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 294
|
||||
CONTENT-LENGTH: 387
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -13,10 +13,14 @@ X-ROUTE: /v2/computes
|
||||
|
||||
[
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "example.com",
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "My super server",
|
||||
"port": 84,
|
||||
|
@ -5,19 +5,23 @@ GET /v2/computes/my_compute_id HTTP/1.1
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 259
|
||||
CONTENT-LENGTH: 334
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/computes/{compute_id}
|
||||
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "example.com",
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "http://julien@example.com:84",
|
||||
"name": "http://julien@localhost:84",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
|
@ -5,7 +5,7 @@ GET /v2/projects HTTP/1.1
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 369
|
||||
CONTENT-LENGTH: 370
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
@ -18,7 +18,7 @@ X-ROUTE: /v2/projects
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-69/test_list_projects1",
|
||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-311/test_list_projects1",
|
||||
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/d839c8ca-3daa-423c-8818-48bd419981a3'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/daa8ed17-122d-4e73-a2be-c0473c14694d'
|
||||
|
||||
GET /v2/projects/d839c8ca-3daa-423c-8818-48bd419981a3 HTTP/1.1
|
||||
GET /v2/projects/daa8ed17-122d-4e73-a2be-c0473c14694d HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ X-ROUTE: /v2/projects/{project_id}
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfu9wtq18/projects/d839c8ca-3daa-423c-8818-48bd419981a3",
|
||||
"project_id": "d839c8ca-3daa-423c-8818-48bd419981a3",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpjy0a1u4u/projects/daa8ed17-122d-4e73-a2be-c0473c14694d",
|
||||
"project_id": "daa8ed17-122d-4e73-a2be-c0473c14694d",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/477f33f8-ee23-4c5e-a344-f3ca66ac7e21/drawings'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/a309218f-8733-4b79-a1b0-b5029e1f4e98/drawings'
|
||||
|
||||
GET /v2/projects/477f33f8-ee23-4c5e-a344-f3ca66ac7e21/drawings HTTP/1.1
|
||||
GET /v2/projects/a309218f-8733-4b79-a1b0-b5029e1f4e98/drawings HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -13,8 +13,8 @@ X-ROUTE: /v2/projects/{project_id}/drawings
|
||||
|
||||
[
|
||||
{
|
||||
"drawing_id": "799b4ac6-9b05-4e77-9b3f-21af71106e8b",
|
||||
"project_id": "477f33f8-ee23-4c5e-a344-f3ca66ac7e21",
|
||||
"drawing_id": "dc2a42e7-1597-48e0-8d87-eb9d4b19e1f8",
|
||||
"project_id": "a309218f-8733-4b79-a1b0-b5029e1f4e98",
|
||||
"rotation": 0,
|
||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||
"x": 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/6aa6ab8c-71f5-41d8-a0db-934e797cdbf6/links'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/611178af-cb11-4444-a251-7b0ad49232c0/links'
|
||||
|
||||
GET /v2/projects/6aa6ab8c-71f5-41d8-a0db-934e797cdbf6/links HTTP/1.1
|
||||
GET /v2/projects/611178af-cb11-4444-a251-7b0ad49232c0/links HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -16,7 +16,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "6dd714f1-40e7-4550-bdf2-5166f38d07f3",
|
||||
"link_id": "5b0579f5-6ae2-4cc9-a212-bfb2e28cee58",
|
||||
"nodes": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
@ -27,7 +27,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "b719f78c-f29c-49d8-bb20-c0e3f646b9f3",
|
||||
"node_id": "c2b9f58a-f3fc-47ac-b052-d4cc67ac6b46",
|
||||
"port_number": 3
|
||||
},
|
||||
{
|
||||
@ -39,10 +39,10 @@ X-ROUTE: /v2/projects/{project_id}/links
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "dc59e823-fd6f-4adb-9ca3-9f00465224cc",
|
||||
"node_id": "d65154e2-1e56-4a37-90ba-946b5de8f698",
|
||||
"port_number": 4
|
||||
}
|
||||
],
|
||||
"project_id": "6aa6ab8c-71f5-41d8-a0db-934e797cdbf6"
|
||||
"project_id": "611178af-cb11-4444-a251-7b0ad49232c0"
|
||||
}
|
||||
]
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/0a89252b-f833-40a8-bd19-0a8536c7e9be/nodes'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/fc32861d-501d-4298-82c4-f68376dc6068/nodes'
|
||||
|
||||
GET /v2/projects/0a89252b-f833-40a8-bd19-0a8536c7e9be/nodes HTTP/1.1
|
||||
GET /v2/projects/fc32861d-501d-4298-82c4-f68376dc6068/nodes HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -28,9 +28,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "16d978e0-d0b3-462b-bc47-eec738a200e1",
|
||||
"node_id": "e4ffbacc-ac60-4d99-8a13-1479837fd066",
|
||||
"node_type": "vpcs",
|
||||
"project_id": "0a89252b-f833-40a8-bd19-0a8536c7e9be",
|
||||
"project_id": "fc32861d-501d-4298-82c4-f68376dc6068",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/1a1e45df-eb32-4009-a135-b250af5c0168/nodes/986e62dd-3025-4ee8-8ce0-fcd29a08ea5f/dynamips/auto_idlepc'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/5ce65fd1-e708-4d72-a216-0ef5e0c7e127/nodes/729ad766-ee82-4664-bf63-daf9d58f9696/dynamips/auto_idlepc'
|
||||
|
||||
GET /v2/projects/1a1e45df-eb32-4009-a135-b250af5c0168/nodes/986e62dd-3025-4ee8-8ce0-fcd29a08ea5f/dynamips/auto_idlepc HTTP/1.1
|
||||
GET /v2/projects/5ce65fd1-e708-4d72-a216-0ef5e0c7e127/nodes/729ad766-ee82-4664-bf63-daf9d58f9696/dynamips/auto_idlepc HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/d4513b9c-1fed-4e89-920a-cb9c1064c4fd/nodes/aa547a4d-b8fa-48f4-ba0b-b085c0942040/dynamips/idlepc_proposals'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/4f055831-d88f-4337-b41f-e05d6368f5b3/nodes/ebb91502-4baf-41df-b83b-7617b30a6211/dynamips/idlepc_proposals'
|
||||
|
||||
GET /v2/projects/d4513b9c-1fed-4e89-920a-cb9c1064c4fd/nodes/aa547a4d-b8fa-48f4-ba0b-b085c0942040/dynamips/idlepc_proposals HTTP/1.1
|
||||
GET /v2/projects/4f055831-d88f-4337-b41f-e05d6368f5b3/nodes/ebb91502-4baf-41df-b83b-7617b30a6211/dynamips/idlepc_proposals HTTP/1.1
|
||||
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/6abcb53c-71b4-46a1-a8a2-51c38166bb59/snapshots'
|
||||
curl -i -X GET 'http://localhost:3080/v2/projects/444dfb21-bf9d-46ca-badb-e22095d42a01/snapshots'
|
||||
|
||||
GET /v2/projects/6abcb53c-71b4-46a1-a8a2-51c38166bb59/snapshots HTTP/1.1
|
||||
GET /v2/projects/444dfb21-bf9d-46ca-badb-e22095d42a01/snapshots HTTP/1.1
|
||||
|
||||
|
||||
|
||||
@ -13,9 +13,9 @@ X-ROUTE: /v2/projects/{project_id}/snapshots
|
||||
|
||||
[
|
||||
{
|
||||
"created_at": 1472128867,
|
||||
"created_at": 1472479063,
|
||||
"name": "test",
|
||||
"project_id": "6abcb53c-71b4-46a1-a8a2-51c38166bb59",
|
||||
"snapshot_id": "f8c8bd01-ae51-4444-8e9d-10d631dc0d21"
|
||||
"project_id": "444dfb21-bf9d-46ca-badb-e22095d42a01",
|
||||
"snapshot_id": "f6e5b3e5-c34c-4aaf-a464-ca120a551c18"
|
||||
}
|
||||
]
|
||||
|
@ -1,9 +1,9 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/computes' -d '{"compute_id": "my_compute_id", "host": "example.com", "password": "secure", "port": 84, "protocol": "http", "user": "julien"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/computes' -d '{"compute_id": "my_compute_id", "host": "localhost", "password": "secure", "port": 84, "protocol": "http", "user": "julien"}'
|
||||
|
||||
POST /v2/computes HTTP/1.1
|
||||
{
|
||||
"compute_id": "my_compute_id",
|
||||
"host": "example.com",
|
||||
"host": "localhost",
|
||||
"password": "secure",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
@ -12,19 +12,23 @@ POST /v2/computes HTTP/1.1
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
CONTENT-LENGTH: 259
|
||||
CONTENT-LENGTH: 334
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/computes
|
||||
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "example.com",
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "http://julien@example.com:84",
|
||||
"name": "http://julien@localhost:84",
|
||||
"port": 84,
|
||||
"protocol": "http",
|
||||
"user": "julien"
|
||||
|
@ -20,7 +20,7 @@ X-ROUTE: /v2/projects
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpz1kilzjg/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppibcus6y/projects/10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"project_id": "10010203-0405-0607-0809-0a0b0c0d0e0f",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -19,7 +19,7 @@ X-ROUTE: /v2/projects/load
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp2tn0j7vo/projects/11afd4a8-bec3-477b-9462-018af5ec1c52",
|
||||
"project_id": "11afd4a8-bec3-477b-9462-018af5ec1c52",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpwbctaekr/projects/67ae22fb-f6ec-4c61-a707-7d4d28cba4b2",
|
||||
"project_id": "67ae22fb-f6ec-4c61-a707-7d4d28cba4b2",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/be87a340-df85-48a2-8b3c-b4c52d34b803/close' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/d07650e7-0285-4be7-b820-af499454c87b/close' -d '{}'
|
||||
|
||||
POST /v2/projects/be87a340-df85-48a2-8b3c-b4c52d34b803/close HTTP/1.1
|
||||
POST /v2/projects/d07650e7-0285-4be7-b820-af499454c87b/close HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ X-ROUTE: /v2/projects/{project_id}/close
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmptjk4s03z/projects/be87a340-df85-48a2-8b3c-b4c52d34b803",
|
||||
"project_id": "be87a340-df85-48a2-8b3c-b4c52d34b803",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpyb706ffj/projects/d07650e7-0285-4be7-b820-af499454c87b",
|
||||
"project_id": "d07650e7-0285-4be7-b820-af499454c87b",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/2f61fea5-bace-44cc-84ff-e24345fef6c5/drawings' -d '{"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>", "x": 10, "y": 20, "z": 0}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/c8570f34-847a-4155-9387-d0091d45cbab/drawings' -d '{"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>", "x": 10, "y": 20, "z": 0}'
|
||||
|
||||
POST /v2/projects/2f61fea5-bace-44cc-84ff-e24345fef6c5/drawings HTTP/1.1
|
||||
POST /v2/projects/c8570f34-847a-4155-9387-d0091d45cbab/drawings HTTP/1.1
|
||||
{
|
||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||
"x": 10,
|
||||
@ -17,8 +17,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/projects/{project_id}/drawings
|
||||
|
||||
{
|
||||
"drawing_id": "1da3253e-dcec-4acd-8ee1-0158fa204131",
|
||||
"project_id": "2f61fea5-bace-44cc-84ff-e24345fef6c5",
|
||||
"drawing_id": "828b77b1-ab8b-4c2b-ae5e-65c89776885d",
|
||||
"project_id": "c8570f34-847a-4155-9387-d0091d45cbab",
|
||||
"rotation": 0,
|
||||
"svg": "<svg height=\"210\" width=\"500\"><line x1=\"0\" y1=\"0\" x2=\"200\" y2=\"200\" style=\"stroke:rgb(255,0,0);stroke-width:2\" /></svg>",
|
||||
"x": 10,
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/dfc1c666-6a21-4e08-b5d1-00bd2aa3e1dc/duplicate' -d '{"name": "hello"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/d725bb97-c9e8-4fff-9ba8-2131dcf9a5c2/duplicate' -d '{"name": "hello"}'
|
||||
|
||||
POST /v2/projects/dfc1c666-6a21-4e08-b5d1-00bd2aa3e1dc/duplicate HTTP/1.1
|
||||
POST /v2/projects/d725bb97-c9e8-4fff-9ba8-2131dcf9a5c2/duplicate HTTP/1.1
|
||||
{
|
||||
"name": "hello"
|
||||
}
|
||||
@ -19,7 +19,7 @@ X-ROUTE: /v2/projects/{project_id}/duplicate
|
||||
"auto_start": false,
|
||||
"filename": "hello.gns3",
|
||||
"name": "hello",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpm7_ll93m/projects/hello",
|
||||
"project_id": "d623e4a8-ee78-4da6-aee7-1613b1e4a6d3",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpvl8ealvy/projects/hello",
|
||||
"project_id": "9817d197-924a-41c0-a61b-5ee8620bf959",
|
||||
"status": "closed"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "49b39d66-11d1-4155-89c4-99265417991b", "port_number": 3}, {"adapter_number": 2, "node_id": "71b97329-fbf9-41c6-a138-c8829a63050a", "port_number": 4}]}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/e9c95008-ff25-4da1-9aac-6e31d88e258a/links' -d '{"nodes": [{"adapter_number": 0, "label": {"text": "Text", "x": 42, "y": 0}, "node_id": "b7ae8bfc-d980-4be2-bc43-023561293d94", "port_number": 3}, {"adapter_number": 2, "node_id": "814eae63-4d8a-4c1a-84f4-09c6b50bedce", "port_number": 4}]}'
|
||||
|
||||
POST /v2/projects/3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33/links HTTP/1.1
|
||||
POST /v2/projects/e9c95008-ff25-4da1-9aac-6e31d88e258a/links HTTP/1.1
|
||||
{
|
||||
"nodes": [
|
||||
{
|
||||
@ -10,12 +10,12 @@ POST /v2/projects/3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33/links HTTP/1.1
|
||||
"x": 42,
|
||||
"y": 0
|
||||
},
|
||||
"node_id": "49b39d66-11d1-4155-89c4-99265417991b",
|
||||
"node_id": "b7ae8bfc-d980-4be2-bc43-023561293d94",
|
||||
"port_number": 3
|
||||
},
|
||||
{
|
||||
"adapter_number": 2,
|
||||
"node_id": "71b97329-fbf9-41c6-a138-c8829a63050a",
|
||||
"node_id": "814eae63-4d8a-4c1a-84f4-09c6b50bedce",
|
||||
"port_number": 4
|
||||
}
|
||||
]
|
||||
@ -33,7 +33,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "1812c97d-3993-46f9-8bb6-65a36389f005",
|
||||
"link_id": "e3f9f2b2-bb47-4f57-948d-d7c4e92c0ff1",
|
||||
"nodes": [
|
||||
{
|
||||
"adapter_number": 0,
|
||||
@ -42,7 +42,7 @@ X-ROUTE: /v2/projects/{project_id}/links
|
||||
"x": 42,
|
||||
"y": 0
|
||||
},
|
||||
"node_id": "49b39d66-11d1-4155-89c4-99265417991b",
|
||||
"node_id": "b7ae8bfc-d980-4be2-bc43-023561293d94",
|
||||
"port_number": 3
|
||||
},
|
||||
{
|
||||
@ -54,9 +54,9 @@ X-ROUTE: /v2/projects/{project_id}/links
|
||||
"x": -10,
|
||||
"y": -10
|
||||
},
|
||||
"node_id": "71b97329-fbf9-41c6-a138-c8829a63050a",
|
||||
"node_id": "814eae63-4d8a-4c1a-84f4-09c6b50bedce",
|
||||
"port_number": 4
|
||||
}
|
||||
],
|
||||
"project_id": "3eca4ad9-19e6-48a5-8cf4-cc2076b3cf33"
|
||||
"project_id": "e9c95008-ff25-4da1-9aac-6e31d88e258a"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/3577db33-a30c-46d2-a4ab-1c9012e8c395/links/a4060582-5d49-412d-96b9-51fa6f0a60f2/start_capture' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/bd78d4c9-3445-4b64-9aad-480aee3de75a/links/50761c87-17db-49f6-9942-4925435076ea/start_capture' -d '{}'
|
||||
|
||||
POST /v2/projects/3577db33-a30c-46d2-a4ab-1c9012e8c395/links/a4060582-5d49-412d-96b9-51fa6f0a60f2/start_capture HTTP/1.1
|
||||
POST /v2/projects/bd78d4c9-3445-4b64-9aad-480aee3de75a/links/50761c87-17db-49f6-9942-4925435076ea/start_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ X-ROUTE: /v2/projects/{project_id}/links/{link_id}/start_capture
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "a4060582-5d49-412d-96b9-51fa6f0a60f2",
|
||||
"link_id": "50761c87-17db-49f6-9942-4925435076ea",
|
||||
"nodes": [],
|
||||
"project_id": "3577db33-a30c-46d2-a4ab-1c9012e8c395"
|
||||
"project_id": "bd78d4c9-3445-4b64-9aad-480aee3de75a"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/92bde20a-0063-43c1-b661-f9058570f657/links/f32eaaad-c223-40da-bd94-a62a51a696fd/stop_capture' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/3d164322-ce7d-4634-a441-2ca9b00f5448/links/6b2ba8df-40ee-42c7-a1b7-c58274472ad0/stop_capture' -d '{}'
|
||||
|
||||
POST /v2/projects/92bde20a-0063-43c1-b661-f9058570f657/links/f32eaaad-c223-40da-bd94-a62a51a696fd/stop_capture HTTP/1.1
|
||||
POST /v2/projects/3d164322-ce7d-4634-a441-2ca9b00f5448/links/6b2ba8df-40ee-42c7-a1b7-c58274472ad0/stop_capture HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -15,7 +15,7 @@ X-ROUTE: /v2/projects/{project_id}/links/{link_id}/stop_capture
|
||||
"capture_file_name": null,
|
||||
"capture_file_path": null,
|
||||
"capturing": false,
|
||||
"link_id": "f32eaaad-c223-40da-bd94-a62a51a696fd",
|
||||
"link_id": "6b2ba8df-40ee-42c7-a1b7-c58274472ad0",
|
||||
"nodes": [],
|
||||
"project_id": "92bde20a-0063-43c1-b661-f9058570f657"
|
||||
"project_id": "3d164322-ce7d-4634-a441-2ca9b00f5448"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/af6a3906-9f06-486a-a833-b6d267557daf/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/baaa8614-7da6-4ad7-8d7e-6857babef38d/nodes' -d '{"compute_id": "example.com", "name": "test", "node_type": "vpcs", "properties": {"startup_script": "echo test"}}'
|
||||
|
||||
POST /v2/projects/af6a3906-9f06-486a-a833-b6d267557daf/nodes HTTP/1.1
|
||||
POST /v2/projects/baaa8614-7da6-4ad7-8d7e-6857babef38d/nodes HTTP/1.1
|
||||
{
|
||||
"compute_id": "example.com",
|
||||
"name": "test",
|
||||
@ -34,9 +34,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "23cd9a53-e3c7-4830-9bda-56d547504316",
|
||||
"node_id": "f3f8f6b0-1e7a-469d-b5d8-bcb2c64b697c",
|
||||
"node_type": "vpcs",
|
||||
"project_id": "af6a3906-9f06-486a-a833-b6d267557daf",
|
||||
"project_id": "baaa8614-7da6-4ad7-8d7e-6857babef38d",
|
||||
"properties": {
|
||||
"startup_script": "echo test"
|
||||
},
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/236b8cd6-bae4-4848-b4fe-eb99e0a41d4e/nodes/32e707d3-89c9-4e4a-8b74-a7040bb5d12f/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/920c3e57-5790-4e17-abfc-1c7633815720/nodes/33c1bcbb-08cd-47a9-9805-a9346e99c072/reload' -d '{}'
|
||||
|
||||
POST /v2/projects/236b8cd6-bae4-4848-b4fe-eb99e0a41d4e/nodes/32e707d3-89c9-4e4a-8b74-a7040bb5d12f/reload HTTP/1.1
|
||||
POST /v2/projects/920c3e57-5790-4e17-abfc-1c7633815720/nodes/33c1bcbb-08cd-47a9-9805-a9346e99c072/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -27,9 +27,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/reload
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "32e707d3-89c9-4e4a-8b74-a7040bb5d12f",
|
||||
"node_id": "33c1bcbb-08cd-47a9-9805-a9346e99c072",
|
||||
"node_type": "vpcs",
|
||||
"project_id": "236b8cd6-bae4-4848-b4fe-eb99e0a41d4e",
|
||||
"project_id": "920c3e57-5790-4e17-abfc-1c7633815720",
|
||||
"properties": {},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/1b98b3cf-543e-4d65-b616-1d868bc618ff/nodes/12d632a0-815f-46c2-b49a-7a759e6d2e63/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/80697b93-98df-4e77-9eff-b7f874e7741a/nodes/3f9c7d6f-9f92-47bb-975d-74d76372dbee/start' -d '{}'
|
||||
|
||||
POST /v2/projects/1b98b3cf-543e-4d65-b616-1d868bc618ff/nodes/12d632a0-815f-46c2-b49a-7a759e6d2e63/start HTTP/1.1
|
||||
POST /v2/projects/80697b93-98df-4e77-9eff-b7f874e7741a/nodes/3f9c7d6f-9f92-47bb-975d-74d76372dbee/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -27,9 +27,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/start
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "12d632a0-815f-46c2-b49a-7a759e6d2e63",
|
||||
"node_id": "3f9c7d6f-9f92-47bb-975d-74d76372dbee",
|
||||
"node_type": "vpcs",
|
||||
"project_id": "1b98b3cf-543e-4d65-b616-1d868bc618ff",
|
||||
"project_id": "80697b93-98df-4e77-9eff-b7f874e7741a",
|
||||
"properties": {},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/da888da8-94d8-42e1-b43e-d04ea2215a94/nodes/bfdd209e-e2bf-4b55-a400-6c8f04c0217f/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/0701a222-9143-4c4a-b2e2-50737979501d/nodes/8f73b099-b4dd-442f-aca0-b6e18f3cf4b2/stop' -d '{}'
|
||||
|
||||
POST /v2/projects/da888da8-94d8-42e1-b43e-d04ea2215a94/nodes/bfdd209e-e2bf-4b55-a400-6c8f04c0217f/stop HTTP/1.1
|
||||
POST /v2/projects/0701a222-9143-4c4a-b2e2-50737979501d/nodes/8f73b099-b4dd-442f-aca0-b6e18f3cf4b2/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -27,9 +27,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/stop
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "bfdd209e-e2bf-4b55-a400-6c8f04c0217f",
|
||||
"node_id": "8f73b099-b4dd-442f-aca0-b6e18f3cf4b2",
|
||||
"node_type": "vpcs",
|
||||
"project_id": "da888da8-94d8-42e1-b43e-d04ea2215a94",
|
||||
"project_id": "0701a222-9143-4c4a-b2e2-50737979501d",
|
||||
"properties": {},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/f51e5708-278b-43bc-92ec-ef439b5c88c4/nodes/9251ff6b-9c38-449f-8010-60abbd442ec4/suspend' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/9d844baf-a0b1-4351-82eb-a7eed82998b2/nodes/e505b27f-50ac-4e61-bbb3-55885b370b5a/suspend' -d '{}'
|
||||
|
||||
POST /v2/projects/f51e5708-278b-43bc-92ec-ef439b5c88c4/nodes/9251ff6b-9c38-449f-8010-60abbd442ec4/suspend HTTP/1.1
|
||||
POST /v2/projects/9d844baf-a0b1-4351-82eb-a7eed82998b2/nodes/e505b27f-50ac-4e61-bbb3-55885b370b5a/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -27,9 +27,9 @@ X-ROUTE: /v2/projects/{project_id}/nodes/{node_id}/suspend
|
||||
},
|
||||
"name": "test",
|
||||
"node_directory": null,
|
||||
"node_id": "9251ff6b-9c38-449f-8010-60abbd442ec4",
|
||||
"node_id": "e505b27f-50ac-4e61-bbb3-55885b370b5a",
|
||||
"node_type": "vpcs",
|
||||
"project_id": "f51e5708-278b-43bc-92ec-ef439b5c88c4",
|
||||
"project_id": "9d844baf-a0b1-4351-82eb-a7eed82998b2",
|
||||
"properties": {},
|
||||
"status": "stopped",
|
||||
"symbol": ":/symbols/computer.svg",
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/81959e6d-f388-4889-90e2-8482a6ece7d0/nodes/reload' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/44ca89d3-0cdc-43b7-a36b-3a7f125a4599/nodes/reload' -d '{}'
|
||||
|
||||
POST /v2/projects/81959e6d-f388-4889-90e2-8482a6ece7d0/nodes/reload HTTP/1.1
|
||||
POST /v2/projects/44ca89d3-0cdc-43b7-a36b-3a7f125a4599/nodes/reload HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/b10ea154-7fb6-463d-8dfe-34b213ebc669/nodes/start' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/7ec630d0-34f9-4471-b40c-f38fdcaa0ee0/nodes/start' -d '{}'
|
||||
|
||||
POST /v2/projects/b10ea154-7fb6-463d-8dfe-34b213ebc669/nodes/start HTTP/1.1
|
||||
POST /v2/projects/7ec630d0-34f9-4471-b40c-f38fdcaa0ee0/nodes/start HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/07c6f30e-3449-4861-a4ca-89b13ec1d379/nodes/stop' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/641ee787-d4a0-4c0c-a849-bb19a7258061/nodes/stop' -d '{}'
|
||||
|
||||
POST /v2/projects/07c6f30e-3449-4861-a4ca-89b13ec1d379/nodes/stop HTTP/1.1
|
||||
POST /v2/projects/641ee787-d4a0-4c0c-a849-bb19a7258061/nodes/stop HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/dfc836bf-fb62-4689-be01-31d10435651c/nodes/suspend' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/2c4001ec-3273-4730-ac50-47d3740135d4/nodes/suspend' -d '{}'
|
||||
|
||||
POST /v2/projects/dfc836bf-fb62-4689-be01-31d10435651c/nodes/suspend HTTP/1.1
|
||||
POST /v2/projects/2c4001ec-3273-4730-ac50-47d3740135d4/nodes/suspend HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/da7d2398-58ca-49a2-a298-d50e0186948b/open' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/7e373b9a-3fd6-48e6-8b9a-0f390ec1d1aa/open' -d '{}'
|
||||
|
||||
POST /v2/projects/da7d2398-58ca-49a2-a298-d50e0186948b/open HTTP/1.1
|
||||
POST /v2/projects/7e373b9a-3fd6-48e6-8b9a-0f390ec1d1aa/open HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ X-ROUTE: /v2/projects/{project_id}/open
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp1a1i8jm0/projects/da7d2398-58ca-49a2-a298-d50e0186948b",
|
||||
"project_id": "da7d2398-58ca-49a2-a298-d50e0186948b",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp4eptj2mn/projects/7e373b9a-3fd6-48e6-8b9a-0f390ec1d1aa",
|
||||
"project_id": "7e373b9a-3fd6-48e6-8b9a-0f390ec1d1aa",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/3f70d171-a7c7-483c-b0c3-031de0f52d2e/snapshots' -d '{"name": "snap1"}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/522bed66-ee06-4434-8be7-91081b782829/snapshots' -d '{"name": "snap1"}'
|
||||
|
||||
POST /v2/projects/3f70d171-a7c7-483c-b0c3-031de0f52d2e/snapshots HTTP/1.1
|
||||
POST /v2/projects/522bed66-ee06-4434-8be7-91081b782829/snapshots HTTP/1.1
|
||||
{
|
||||
"name": "snap1"
|
||||
}
|
||||
@ -14,8 +14,8 @@ SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/projects/{project_id}/snapshots
|
||||
|
||||
{
|
||||
"created_at": 1472128867,
|
||||
"created_at": 1472479063,
|
||||
"name": "snap1",
|
||||
"project_id": "3f70d171-a7c7-483c-b0c3-031de0f52d2e",
|
||||
"snapshot_id": "2ffacd88-e742-4fe2-a1a3-5c64a74132e2"
|
||||
"project_id": "522bed66-ee06-4434-8be7-91081b782829",
|
||||
"snapshot_id": "4e0de424-9aac-4697-b21b-2c8f7ba3021b"
|
||||
}
|
||||
|
@ -1,6 +1,6 @@
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a/snapshots/dc1e014a-75e8-4884-b522-c6ad59ea94bf/restore' -d '{}'
|
||||
curl -i -X POST 'http://localhost:3080/v2/projects/92ce89c8-33ca-4c38-8c07-b0843a512ace/snapshots/788b3176-266a-4f5b-ac17-924907c57fa9/restore' -d '{}'
|
||||
|
||||
POST /v2/projects/ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a/snapshots/dc1e014a-75e8-4884-b522-c6ad59ea94bf/restore HTTP/1.1
|
||||
POST /v2/projects/92ce89c8-33ca-4c38-8c07-b0843a512ace/snapshots/788b3176-266a-4f5b-ac17-924907c57fa9/restore HTTP/1.1
|
||||
{}
|
||||
|
||||
|
||||
@ -17,7 +17,7 @@ X-ROUTE: /v2/projects/{project_id}/snapshots/{snapshot_id}/restore
|
||||
"auto_start": false,
|
||||
"filename": "test.gns3",
|
||||
"name": "test",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp9rl3b2qi/projects/ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a",
|
||||
"project_id": "ff0e2be2-cd34-45dd-bcdd-de7f75b7c52a",
|
||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpnx2hb84i/projects/92ce89c8-33ca-4c38-8c07-b0843a512ace",
|
||||
"project_id": "92ce89c8-33ca-4c38-8c07-b0843a512ace",
|
||||
"status": "opened"
|
||||
}
|
||||
|
@ -1,9 +1,9 @@
|
||||
curl -i -X PUT 'http://localhost:3080/v2/computes/my_compute_id' -d '{"compute_id": "my_compute_id", "host": "example.com", "password": "secure", "port": 84, "protocol": "https", "user": "julien"}'
|
||||
curl -i -X PUT 'http://localhost:3080/v2/computes/my_compute_id' -d '{"compute_id": "my_compute_id", "host": "localhost", "password": "secure", "port": 84, "protocol": "https", "user": "julien"}'
|
||||
|
||||
PUT /v2/computes/my_compute_id HTTP/1.1
|
||||
{
|
||||
"compute_id": "my_compute_id",
|
||||
"host": "example.com",
|
||||
"host": "localhost",
|
||||
"password": "secure",
|
||||
"port": 84,
|
||||
"protocol": "https",
|
||||
@ -12,19 +12,23 @@ PUT /v2/computes/my_compute_id HTTP/1.1
|
||||
|
||||
|
||||
HTTP/1.1 200
|
||||
CONTENT-LENGTH: 260
|
||||
CONTENT-LENGTH: 335
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/computes/{compute_id}
|
||||
|
||||
{
|
||||
"capabilities": {
|
||||
"node_types": [],
|
||||
"version": null
|
||||
},
|
||||
"compute_id": "my_compute_id",
|
||||
"connected": false,
|
||||
"cpu_usage_percent": null,
|
||||
"host": "example.com",
|
||||
"host": "localhost",
|
||||
"memory_usage_percent": null,
|
||||
"name": "http://julien@example.com:84",
|
||||
"name": "http://julien@localhost:84",
|
||||
"port": 84,
|
||||
"protocol": "https",
|
||||
"user": "julien"
|
||||
|
@ -7,16 +7,12 @@ PUT /v2/gns3vm HTTP/1.1
|
||||
|
||||
|
||||
HTTP/1.1 201
|
||||
CONTENT-LENGTH: 118
|
||||
CONTENT-LENGTH: 27
|
||||
CONTENT-TYPE: application/json
|
||||
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
||||
SERVER: Python/3.5 GNS3/2.0.0dev1
|
||||
X-ROUTE: /v2/gns3vm
|
||||
|
||||
{
|
||||
"auto_stop": true,
|
||||
"enable": false,
|
||||
"engine": "vmware",
|
||||
"headless": false,
|
||||
"vmname": "TEST VM"
|
||||
}
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user