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

Rebuild link sample

This commit is contained in:
Julien Duponchelle 2016-03-11 17:20:09 +01:00
parent 8c1560332e
commit 6a19e4d822
No known key found for this signature in database
GPG Key ID: F1E2485547D4595D
125 changed files with 347 additions and 296 deletions

View File

@ -1,42 +0,0 @@
curl -i -X POST 'http://localhost:8000/v2/projects/93c9f250-c79b-4191-86e0-dfe177194cfc/links' -d '{"vms": [{"adapter_number": 0, "port_number": 3, "vm_id": "bab8bd9a-b951-4a91-a77d-a872d15b9ce3"}, {"adapter_number": 2, "port_number": 4, "vm_id": "f50d4553-0895-4d66-9006-56e9ba3b30d6"}]}'
POST /v2/projects/93c9f250-c79b-4191-86e0-dfe177194cfc/links HTTP/1.1
{
"vms": [
{
"adapter_number": 0,
"port_number": 3,
"vm_id": "bab8bd9a-b951-4a91-a77d-a872d15b9ce3"
},
{
"adapter_number": 2,
"port_number": 4,
"vm_id": "f50d4553-0895-4d66-9006-56e9ba3b30d6"
}
]
}
HTTP/1.1 201
ACCESS-CONTROL-ALLOW-ORIGIN: *
CONTENT-LENGTH: 364
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/1.5.0dev1
X-ROUTE: /v2/projects/{project_id}/links
{
"link_id": "8d49f36a-2469-4295-a803-ae3cc54b780e",
"vms": [
{
"adapter_number": 0,
"port_number": 3,
"vm_id": "bab8bd9a-b951-4a91-a77d-a872d15b9ce3"
},
{
"adapter_number": 2,
"port_number": 4,
"vm_id": "f50d4553-0895-4d66-9006-56e9ba3b30d6"
}
]
}

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/projects/eabfa6b4-b0e7-4031-87da-b0b2c376683b'
curl -i -X DELETE 'http://localhost:8000/v2/projects/ab68f6d3-fdf2-42f8-9bd3-a35f60063fdb'
DELETE /v2/projects/eabfa6b4-b0e7-4031-87da-b0b2c376683b HTTP/1.1
DELETE /v2/projects/ab68f6d3-fdf2-42f8-9bd3-a35f60063fdb HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/projects/933e1599-277d-403b-9062-b111d3ae4bf3/close' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/projects/e77e2864-4c3f-4613-b06b-489cc608e9f5/close' -d '{}'
POST /v2/projects/933e1599-277d-403b-9062-b111d3ae4bf3/close HTTP/1.1
POST /v2/projects/e77e2864-4c3f-4613-b06b-489cc608e9f5/close HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/projects/a508ab79-4cfa-46fb-896b-ee4399463d33/commit' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/projects/86f47fd6-908d-4ca7-998d-a69782792b31/commit' -d '{}'
POST /v2/projects/a508ab79-4cfa-46fb-896b-ee4399463d33/commit HTTP/1.1
POST /v2/projects/86f47fd6-908d-4ca7-998d-a69782792b31/commit HTTP/1.1
{}

View File

@ -0,0 +1,42 @@
curl -i -X POST 'http://localhost:8000/v2/projects/f6bf6c1c-19ac-4441-9efe-8ed31a5f7542/links' -d '{"vms": [{"adapter_number": 0, "port_number": 3, "vm_id": "4b9f3a9a-b40e-4144-bcb2-429ff3f64049"}, {"adapter_number": 2, "port_number": 4, "vm_id": "d32d5a58-1f36-4937-a3b6-c24fb43df67c"}]}'
POST /v2/projects/f6bf6c1c-19ac-4441-9efe-8ed31a5f7542/links HTTP/1.1
{
"vms": [
{
"adapter_number": 0,
"port_number": 3,
"vm_id": "4b9f3a9a-b40e-4144-bcb2-429ff3f64049"
},
{
"adapter_number": 2,
"port_number": 4,
"vm_id": "d32d5a58-1f36-4937-a3b6-c24fb43df67c"
}
]
}
HTTP/1.1 201
ACCESS-CONTROL-ALLOW-ORIGIN: *
CONTENT-LENGTH: 364
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/1.5.0dev1
X-ROUTE: /v2/projects/{project_id}/links
{
"link_id": "bfb1c5e0-4915-454d-acf9-fa8b19e62bf8",
"vms": [
{
"adapter_number": 0,
"port_number": 3,
"vm_id": "4b9f3a9a-b40e-4144-bcb2-429ff3f64049"
},
{
"adapter_number": 2,
"port_number": 4,
"vm_id": "d32d5a58-1f36-4937-a3b6-c24fb43df67c"
}
]
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/projects/bfb7af51-0213-4a66-b348-b0c9465dd8fd/vms' -d '{"hypervisor_id": "example.com", "name": "test", "properties": {"startup_script": "echo test"}, "vm_type": "vpcs"}'
curl -i -X POST 'http://localhost:8000/v2/projects/b580182b-d534-4be7-818b-6ebf47ad8df8/vms' -d '{"hypervisor_id": "example.com", "name": "test", "properties": {"startup_script": "echo test"}, "vm_type": "vpcs"}'
POST /v2/projects/bfb7af51-0213-4a66-b348-b0c9465dd8fd/vms HTTP/1.1
POST /v2/projects/b580182b-d534-4be7-818b-6ebf47ad8df8/vms HTTP/1.1
{
"hypervisor_id": "example.com",
"name": "test",
@ -24,10 +24,10 @@ X-ROUTE: /v2/projects/{project_id}/vms
"console_type": "telnet",
"hypervisor_id": "example.com",
"name": "test",
"project_id": "bfb7af51-0213-4a66-b348-b0c9465dd8fd",
"project_id": "b580182b-d534-4be7-818b-6ebf47ad8df8",
"properties": {
"startup_script": "echo test"
},
"vm_id": "b3dd162f-c0f8-49f4-bfdc-9c1892734fb3",
"vm_id": "65e7c4d6-82c4-42a5-a9ee-c419637180f0",
"vm_type": "vpcs"
}

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/b520bd18-a793-4f29-8cf4-40ae5fb38bd7/adapters/0/ports/0/nio'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/55ea1a0f-c23b-4021-981b-567a4bd5426d/adapters/0/ports/0/nio'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/b520bd18-a793-4f29-8cf4-40ae5fb38bd7/adapters/0/ports/0/nio HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/55ea1a0f-c23b-4021-981b-567a4bd5426d/adapters/0/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/4e17bb6b-97e5-4d44-970b-f7771210f047'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6899c001-04b8-4219-a5fb-c0549e6a7437'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/4e17bb6b-97e5-4d44-970b-f7771210f047 HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6899c001-04b8-4219-a5fb-c0549e6a7437 HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/ca8de24c-263e-4ebf-bf50-76dce4b35b24/adapters/1/ports/0/nio'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d7462950-4980-4633-8d48-128744cdb012/adapters/1/ports/0/nio'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/ca8de24c-263e-4ebf-bf50-76dce4b35b24/adapters/1/ports/0/nio HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d7462950-4980-4633-8d48-128744cdb012/adapters/1/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f9f1af81-62dd-452d-b204-23ac7069952f'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/ad2930c4-fe84-497b-9ec0-853bf3c52feb'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f9f1af81-62dd-452d-b204-23ac7069952f HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/ad2930c4-fe84-497b-9ec0-853bf3c52feb HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/147743be-ed6e-4cef-b8e8-c6bd62997f15/adapters/1/ports/0/nio'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/704bfca0-ac4d-4cda-9926-f8d2254e12a0/adapters/1/ports/0/nio'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/147743be-ed6e-4cef-b8e8-c6bd62997f15/adapters/1/ports/0/nio HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/704bfca0-ac4d-4cda-9926-f8d2254e12a0/adapters/1/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/c45a3845-3307-41bf-b6b4-03b0831a0f8d/adapters/0/ports/0/nio'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1fe30649-d55a-4a7e-873a-41c6254cf514/adapters/0/ports/0/nio'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/c45a3845-3307-41bf-b6b4-03b0831a0f8d/adapters/0/ports/0/nio HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1fe30649-d55a-4a7e-873a-41c6254cf514/adapters/0/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/f6eeb14c-6238-4c1a-a5a6-6216b4c14807'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/b81ae681-aa48-4114-8d36-1d2b8cc9ca09'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/f6eeb14c-6238-4c1a-a5a6-6216b4c14807 HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/b81ae681-aa48-4114-8d36-1d2b8cc9ca09 HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/3a07849a-b896-4965-b5c1-473adfbd865b/adapters/0/ports/0/nio'
curl -i -X DELETE 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/31fe119f-a164-424e-8dfa-8d6454126766/adapters/0/ports/0/nio'
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/3a07849a-b896-4965-b5c1-473adfbd865b/adapters/0/ports/0/nio HTTP/1.1
DELETE /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/31fe119f-a164-424e-8dfa-8d6454126766/adapters/0/ports/0/nio HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c7787726-666f-48df-ba31-c78a084d8736'
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e8423a70-2b34-4be2-bc37-a6bac6a3334a'
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c7787726-666f-48df-ba31-c78a084d8736 HTTP/1.1
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e8423a70-2b34-4be2-bc37-a6bac6a3334a HTTP/1.1
@ -28,6 +28,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
"serial_adapters": 2,
"startup_config": null,
"use_default_iou_values": true,
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/c7787726-666f-48df-ba31-c78a084d8736",
"vm_id": "c7787726-666f-48df-ba31-c78a084d8736"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/e8423a70-2b34-4be2-bc37-a6bac6a3334a",
"vm_id": "e8423a70-2b34-4be2-bc37-a6bac6a3334a"
}

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d721a97b-5287-4dd6-8d40-d161af4a0fa2/configs'
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6a58f681-755e-4678-ae5f-9d747aeb05ec/configs'
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d721a97b-5287-4dd6-8d40-d161af4a0fa2/configs HTTP/1.1
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6a58f681-755e-4678-ae5f-9d747aeb05ec/configs HTTP/1.1

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15480e0d-035f-4cca-b84d-0db90080ad4f'
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/97b9930a-de17-452c-8838-1fd384eb2ba4'
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15480e0d-035f-4cca-b84d-0db90080ad4f HTTP/1.1
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/97b9930a-de17-452c-8838-1fd384eb2ba4 HTTP/1.1
@ -42,15 +42,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:00:ab:ad:4f:00",
"mac_address": "00:00:ab:2b:a4:00",
"name": "PC TEST 1",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpxlfg0aki/qemu-system-x86_64",
"ram": 256,
"usage": "",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/15480e0d-035f-4cca-b84d-0db90080ad4f",
"vm_id": "15480e0d-035f-4cca-b84d-0db90080ad4f"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/97b9930a-de17-452c-8838-1fd384eb2ba4",
"vm_id": "97b9930a-de17-452c-8838-1fd384eb2ba4"
}

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/586af506-86a2-4143-8333-c01364807d84'
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/150848d4-6c71-4ca1-b039-174b479afe51'
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/586af506-86a2-4143-8333-c01364807d84 HTTP/1.1
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/150848d4-6c71-4ca1-b039-174b479afe51 HTTP/1.1
@ -24,6 +24,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/virtualbox/vms/{vm_id}
"ram": 0,
"use_any_adapter": false,
"vm_directory": null,
"vm_id": "586af506-86a2-4143-8333-c01364807d84",
"vm_id": "150848d4-6c71-4ca1-b039-174b479afe51",
"vmname": "VMTEST"
}

View File

@ -1,6 +1,6 @@
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c9601208-f635-4726-9435-3c67ad325216'
curl -i -X GET 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/5d855bb2-517d-449b-a47d-128d0b8efbc2'
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c9601208-f635-4726-9435-3c67ad325216 HTTP/1.1
GET /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/5d855bb2-517d-449b-a47d-128d0b8efbc2 HTTP/1.1
@ -21,6 +21,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms/{vm_id}
"startup_script": null,
"startup_script_path": null,
"status": "stopped",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/c9601208-f635-4726-9435-3c67ad325216",
"vm_id": "c9601208-f635-4726-9435-3c67ad325216"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/5d855bb2-517d-449b-a47d-128d0b8efbc2",
"vm_id": "5d855bb2-517d-449b-a47d-128d0b8efbc2"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/196f5b72-1b18-416e-9588-d6aab49f27cc/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/b997d690-c8a3-4f15-83e8-a674e6cd006d/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/196f5b72-1b18-416e-9588-d6aab49f27cc/adapters/0/ports/0/nio HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/b997d690-c8a3-4f15-83e8-a674e6cd006d/adapters/0/ports/0/nio HTTP/1.1
{
"lport": 4242,
"rhost": "127.0.0.1",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/faad9918-44bf-4a2e-9516-09e678281bb3/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/739b85bc-2f6e-45bd-b173-4378060582c2/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/faad9918-44bf-4a2e-9516-09e678281bb3/adapters/0/ports/0/start_capture HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/739b85bc-2f6e-45bd-b173-4378060582c2/adapters/0/ports/0/start_capture HTTP/1.1
{
"capture_file_name": "test.pcap",
"data_link_type": "DLT_EN10MB"
@ -16,5 +16,5 @@ SERVER: Python/3.5 GNS3/1.5.0dev1
X-ROUTE: /v2/hypervisor/projects/{project_id}/docker/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
{
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/75522061-1500-4a40-bbf4-8d26f3b3e307/adapters/0/ports/0/stop_capture' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/ba1dc09d-3998-43a6-a014-d36dcb4a9179/adapters/0/ports/0/stop_capture' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/75522061-1500-4a40-bbf4-8d26f3b3e307/adapters/0/ports/0/stop_capture HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/ba1dc09d-3998-43a6-a014-d36dcb4a9179/adapters/0/ports/0/stop_capture HTTP/1.1
{}

View File

@ -1,11 +1,11 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms' -d '{"name": "PC TEST 1", "path": "iou.bin", "startup_config_content": "hostname test", "vm_id": "09db88eb-06f5-4e4d-b24e-d3a7a41ac14a"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms' -d '{"name": "PC TEST 1", "path": "iou.bin", "startup_config_content": "hostname test", "vm_id": "12d081d8-d490-4535-9485-3820d7452cb3"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms HTTP/1.1
{
"name": "PC TEST 1",
"path": "iou.bin",
"startup_config_content": "hostname test",
"vm_id": "09db88eb-06f5-4e4d-b24e-d3a7a41ac14a"
"vm_id": "12d081d8-d490-4535-9485-3820d7452cb3"
}
@ -33,6 +33,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms
"serial_adapters": 2,
"startup_config": "startup-config.cfg",
"use_default_iou_values": true,
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/09db88eb-06f5-4e4d-b24e-d3a7a41ac14a",
"vm_id": "09db88eb-06f5-4e4d-b24e-d3a7a41ac14a"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/12d081d8-d490-4535-9485-3820d7452cb3",
"vm_id": "12d081d8-d490-4535-9485-3820d7452cb3"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/b67c3a66-9ad6-4be2-b981-a8c9a5464808/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_generic_ethernet"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/2663a05a-a0b1-4f99-b1e6-0c88eb4f428f/adapters/1/ports/0/nio' -d '{"ethernet_device": "bridge0", "type": "nio_generic_ethernet"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/b67c3a66-9ad6-4be2-b981-a8c9a5464808/adapters/1/ports/0/nio HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/2663a05a-a0b1-4f99-b1e6-0c88eb4f428f/adapters/1/ports/0/nio HTTP/1.1
{
"ethernet_device": "bridge0",
"type": "nio_generic_ethernet"

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/75c04a74-e006-405b-a074-9d83c5bbed94/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8079ff79-b537-41aa-ae14-1e432d831542/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/75c04a74-e006-405b-a074-9d83c5bbed94/adapters/0/ports/0/start_capture HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8079ff79-b537-41aa-ae14-1e432d831542/adapters/0/ports/0/start_capture HTTP/1.1
{
"capture_file_name": "test.pcap",
"data_link_type": "DLT_EN10MB"
@ -16,5 +16,5 @@ SERVER: Python/3.5 GNS3/1.5.0dev1
X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
{
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f9fe45c9-88b8-486b-9811-907232d3317a/adapters/0/ports/0/stop_capture' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/1a9a1732-2d48-4951-8ea3-80bbd4a38a24/adapters/0/ports/0/stop_capture' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f9fe45c9-88b8-486b-9811-907232d3317a/adapters/0/ports/0/stop_capture HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/1a9a1732-2d48-4951-8ea3-80bbd4a38a24/adapters/0/ports/0/stop_capture HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6923429a-4f6c-44bd-bb77-784834fd9660/reload' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/4bc03cbc-a8e3-482e-821f-76b75b4bb313/reload' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/6923429a-4f6c-44bd-bb77-784834fd9660/reload HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/4bc03cbc-a8e3-482e-821f-76b75b4bb313/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683/start' -d '{"iourc_content": "test"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8881069e-0211-46ae-8f47-675b8f0ce206/start' -d '{"iourc_content": "test"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683/start HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/8881069e-0211-46ae-8f47-675b8f0ce206/start HTTP/1.1
{
"iourc_content": "test"
}
@ -18,7 +18,7 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}/start
"command_line": "",
"console": 2001,
"ethernet_adapters": 2,
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpu9_4fykf/iourc",
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpevnclseh/iourc",
"l1_keepalives": false,
"md5sum": null,
"name": "PC TEST 1",
@ -30,6 +30,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}/start
"serial_adapters": 2,
"startup_config": null,
"use_default_iou_values": true,
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683",
"vm_id": "8cd1764e-2fb9-4a2b-b7ba-cb44c7b54683"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/8881069e-0211-46ae-8f47-675b8f0ce206",
"vm_id": "8881069e-0211-46ae-8f47-675b8f0ce206"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e44c8270-e003-482c-b32e-fb77e248b3e2/stop' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e81c63c7-26af-4129-8e36-4dec3306ca67/stop' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e44c8270-e003-482c-b32e-fb77e248b3e2/stop HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/e81c63c7-26af-4129-8e36-4dec3306ca67/stop HTTP/1.1
{}

View File

@ -1,10 +1,10 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64", "ram": 1024}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms' -d '{"hda_disk_image": "linux\u8f7d.img", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpxlfg0aki/qemu-system-x86_64", "ram": 1024}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms HTTP/1.1
{
"hda_disk_image": "linux\u8f7d.img",
"name": "PC TEST 1",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpxlfg0aki/qemu-system-x86_64",
"ram": 1024
}
@ -47,15 +47,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:00:ab:ad:d0:00",
"mac_address": "00:00:ab:9b:31:00",
"name": "PC TEST 1",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpxlfg0aki/qemu-system-x86_64",
"ram": 1024,
"usage": "",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/3df1ae0f-950d-4905-b07e-0093aa16add0",
"vm_id": "3df1ae0f-950d-4905-b07e-0093aa16add0"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/ca25d6ee-ca26-48ca-ada2-8e9a0b739b31",
"vm_id": "ca25d6ee-ca26-48ca-ada2-8e9a0b739b31"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f540d2ea-ea58-40f2-a1b7-89f76df56c06/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/07830c1f-df4e-4fbd-b978-ce81f923a20b/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/f540d2ea-ea58-40f2-a1b7-89f76df56c06/adapters/1/ports/0/nio HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/07830c1f-df4e-4fbd-b978-ce81f923a20b/adapters/1/ports/0/nio HTTP/1.1
{
"ethernet_device": "eth0",
"type": "nio_generic_ethernet"

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/7f261004-a1ef-4b86-af39-1b9024e08840/reload' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/b01e27e4-ba29-4d13-8c09-a9a3e2391521/reload' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/7f261004-a1ef-4b86-af39-1b9024e08840/reload HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/b01e27e4-ba29-4d13-8c09-a9a3e2391521/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/3c4e40ae-1455-4c5e-8f0d-5a4774b3ace3/resume' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/d6e84048-dc17-4582-940e-3d8df5bf9c07/resume' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/3c4e40ae-1455-4c5e-8f0d-5a4774b3ace3/resume HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/d6e84048-dc17-4582-940e-3d8df5bf9c07/resume HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15782ee6-13a2-424c-9fa7-c41f6e35c361/start' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/9e9e0707-891f-42e8-afac-fb8febdbb525/start' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/15782ee6-13a2-424c-9fa7-c41f6e35c361/start HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/9e9e0707-891f-42e8-afac-fb8febdbb525/start HTTP/1.1
{}
@ -42,15 +42,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}/start
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:00:ab:c3:61:00",
"mac_address": "00:00:ab:b5:25:00",
"name": "PC TEST 1",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpxlfg0aki/qemu-system-x86_64",
"ram": 256,
"usage": "",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/15782ee6-13a2-424c-9fa7-c41f6e35c361",
"vm_id": "15782ee6-13a2-424c-9fa7-c41f6e35c361"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/9e9e0707-891f-42e8-afac-fb8febdbb525",
"vm_id": "9e9e0707-891f-42e8-afac-fb8febdbb525"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/937f6d1a-23e4-488d-823f-0049a0402534/stop' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/0fe62000-82a6-48cc-ac9f-4fb604f19a2a/stop' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/937f6d1a-23e4-488d-823f-0049a0402534/stop HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/0fe62000-82a6-48cc-ac9f-4fb604f19a2a/stop HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/bced5cc5-bcb2-44bb-8067-7de89438dfa1/suspend' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/781be018-69dd-4cd6-985d-be2301dba8ca/suspend' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/bced5cc5-bcb2-44bb-8067-7de89438dfa1/suspend HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/781be018-69dd-4cd6-985d-be2301dba8ca/suspend HTTP/1.1
{}

View File

@ -28,6 +28,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/virtualbox/vms
"ram": 0,
"use_any_adapter": false,
"vm_directory": null,
"vm_id": "e5ddf8a0-a140-42e1-a10c-47604b48c408",
"vm_id": "cb0cef3c-a75e-45c8-9f97-5aec95f8e035",
"vmname": "VM1"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/b4ae14ae-5334-48b5-b4aa-478a8a6bd409/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/0af21b9f-c66d-400d-8654-3b602346f060/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/b4ae14ae-5334-48b5-b4aa-478a8a6bd409/adapters/0/ports/0/nio HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/0af21b9f-c66d-400d-8654-3b602346f060/adapters/0/ports/0/nio HTTP/1.1
{
"lport": 4242,
"rhost": "127.0.0.1",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f96eee10-f0ba-49ee-9a58-8c21351efd5b/reload' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/ced4e23d-bea0-4b42-8523-893a00c2aa7e/reload' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f96eee10-f0ba-49ee-9a58-8c21351efd5b/reload HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/ced4e23d-bea0-4b42-8523-893a00c2aa7e/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/3304d24e-d971-4fa7-8109-b5be19e6eea1/resume' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/8d0086ae-cd1e-4342-9b58-efceb1181028/resume' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/3304d24e-d971-4fa7-8109-b5be19e6eea1/resume HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/8d0086ae-cd1e-4342-9b58-efceb1181028/resume HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2ac32a6b-7056-497a-b11e-ecdb293490a1/start' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/b5497eb4-d79a-47e0-add8-5c8253af8d8c/start' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/2ac32a6b-7056-497a-b11e-ecdb293490a1/start HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/b5497eb4-d79a-47e0-add8-5c8253af8d8c/start HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/38af0900-a93b-43fe-875e-810318f86673/stop' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1cc2181a-cb95-4ad9-ac06-0d8b5260cc4e/stop' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/38af0900-a93b-43fe-875e-810318f86673/stop HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1cc2181a-cb95-4ad9-ac06-0d8b5260cc4e/stop HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/ee566163-aa7a-4519-a1c2-0917bb3f3054/suspend' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1ea73ab1-24f3-4a3b-a2dd-762a39da3a1e/suspend' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/ee566163-aa7a-4519-a1c2-0917bb3f3054/suspend HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1ea73ab1-24f3-4a3b-a2dd-762a39da3a1e/suspend HTTP/1.1
{}

View File

@ -23,6 +23,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms
"startup_script": null,
"startup_script_path": null,
"status": "stopped",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/87780177-c1f1-4fbd-99b7-4c6d731bcf43",
"vm_id": "87780177-c1f1-4fbd-99b7-4c6d731bcf43"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/3ac92acc-daaa-4f92-8665-1a767b468acd",
"vm_id": "3ac92acc-daaa-4f92-8665-1a767b468acd"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e326747d-1260-42d0-a711-ef2406bb44e0/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/73167116-8f1a-4d22-8de4-d01be61d1586/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e326747d-1260-42d0-a711-ef2406bb44e0/adapters/0/ports/0/nio HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/73167116-8f1a-4d22-8de4-d01be61d1586/adapters/0/ports/0/nio HTTP/1.1
{
"lport": 4242,
"rhost": "127.0.0.1",

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e5b8a493-3353-48b4-af5e-d57dd492c1f1/reload' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c21f760d-5e7d-4c2e-b6c9-deedec0d3624/reload' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/e5b8a493-3353-48b4-af5e-d57dd492c1f1/reload HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c21f760d-5e7d-4c2e-b6c9-deedec0d3624/reload HTTP/1.1
{}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/ff84c991-ed15-4d2c-8bfd-b1e07174efd5/start' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/d602e749-c218-4bed-8090-eb9418184fc3/start' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/ff84c991-ed15-4d2c-8bfd-b1e07174efd5/start HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/d602e749-c218-4bed-8090-eb9418184fc3/start HTTP/1.1
{}
@ -21,6 +21,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms/{vm_id}/start
"startup_script": null,
"startup_script_path": null,
"status": "stopped",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/ff84c991-ed15-4d2c-8bfd-b1e07174efd5",
"vm_id": "ff84c991-ed15-4d2c-8bfd-b1e07174efd5"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/d602e749-c218-4bed-8090-eb9418184fc3",
"vm_id": "d602e749-c218-4bed-8090-eb9418184fc3"
}

View File

@ -1,6 +1,6 @@
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c8509a6c-2e77-4eac-9f0b-9e450851e88a/stop' -d '{}'
curl -i -X POST 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/5c800474-3d9d-4096-872e-5c78ecde9624/stop' -d '{}'
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/c8509a6c-2e77-4eac-9f0b-9e450851e88a/stop HTTP/1.1
POST /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/5c800474-3d9d-4096-872e-5c78ecde9624/stop HTTP/1.1
{}

View File

@ -1,9 +1,9 @@
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/90010203-0405-0607-0809-0a0b0c0d0e0b' -d '{"name": "second_name", "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-343/test_update_path_project_non_l0"}'
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/90010203-0405-0607-0809-0a0b0c0d0e0b' -d '{"name": "second_name", "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-345/test_update_path_project_non_l0"}'
PUT /v2/hypervisor/projects/90010203-0405-0607-0809-0a0b0c0d0e0b HTTP/1.1
{
"name": "second_name",
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-343/test_update_path_project_non_l0"
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-of-noplay/pytest-345/test_update_path_project_non_l0"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172' -d '{"console": 2003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/3fc8b9d5-db4f-4904-a591-3e08e2b1d76b' -d '{"console": 2003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172 HTTP/1.1
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/3fc8b9d5-db4f-4904-a591-3e08e2b1d76b HTTP/1.1
{
"console": 2003,
"environment": "GNS3=1\nGNS4=0",
@ -28,6 +28,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/docker/vms/{vm_id}
"name": "test",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"start_command": "yes",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172",
"vm_id": "5e3ececd-bcc9-4b16-9a8c-8c4e4fa43172"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/3fc8b9d5-db4f-4904-a591-3e08e2b1d76b",
"vm_id": "3fc8b9d5-db4f-4904-a591-3e08e2b1d76b"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/55ecff0a-cc62-4577-86b3-a698c82d1e22' -d '{"console": 2002, "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:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/15104b60-b993-40f3-9065-6261c65a54ff' -d '{"console": 2002, "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/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/55ecff0a-cc62-4577-86b3-a698c82d1e22 HTTP/1.1
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/15104b60-b993-40f3-9065-6261c65a54ff HTTP/1.1
{
"console": 2002,
"ethernet_adapters": 4,
@ -27,7 +27,7 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
"command_line": "",
"console": 2002,
"ethernet_adapters": 4,
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpa6d2m_yh/iourc",
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3bj6zobt/iourc",
"l1_keepalives": true,
"md5sum": null,
"name": "test",
@ -39,6 +39,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
"serial_adapters": 0,
"startup_config": "startup-config.cfg",
"use_default_iou_values": true,
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpb4c9d8ox/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/55ecff0a-cc62-4577-86b3-a698c82d1e22",
"vm_id": "55ecff0a-cc62-4577-86b3-a698c82d1e22"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpfk_m3jgm/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/15104b60-b993-40f3-9065-6261c65a54ff",
"vm_id": "15104b60-b993-40f3-9065-6261c65a54ff"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/65d5c9f4-194d-4fb7-9a58-9fcbffaae1de' -d '{"console": 2002, "hdb_disk_image": "linux.img", "name": "test", "ram": 1024}'
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/58d92f9b-26b2-4500-8995-cd5717e3cf7c' -d '{"console": 2002, "hdb_disk_image": "linux.img", "name": "test", "ram": 1024}'
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/65d5c9f4-194d-4fb7-9a58-9fcbffaae1de HTTP/1.1
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/58d92f9b-26b2-4500-8995-cd5717e3cf7c HTTP/1.1
{
"console": 2002,
"hdb_disk_image": "linux.img",
@ -47,15 +47,15 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/qemu/vms/{vm_id}
"kernel_image": "",
"kernel_image_md5sum": null,
"legacy_networking": false,
"mac_address": "00:00:ab:e1:de:00",
"mac_address": "00:00:ab:cf:7c:00",
"name": "test",
"options": "",
"platform": "x86_64",
"process_priority": "low",
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp30zgh794/qemu-system-x86_64",
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpxlfg0aki/qemu-system-x86_64",
"ram": 1024,
"usage": "",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/65d5c9f4-194d-4fb7-9a58-9fcbffaae1de",
"vm_id": "65d5c9f4-194d-4fb7-9a58-9fcbffaae1de"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/qemu/58d92f9b-26b2-4500-8995-cd5717e3cf7c",
"vm_id": "58d92f9b-26b2-4500-8995-cd5717e3cf7c"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1aad6ad2-02bc-4532-af65-c0efdfbf1d85' -d '{"console": 2011, "name": "test"}'
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f11456e7-a2d4-442b-b65a-baeba0a46087' -d '{"console": 2011, "name": "test"}'
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/1aad6ad2-02bc-4532-af65-c0efdfbf1d85 HTTP/1.1
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f11456e7-a2d4-442b-b65a-baeba0a46087 HTTP/1.1
{
"console": 2011,
"name": "test"
@ -27,6 +27,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/virtualbox/vms/{vm_id}
"ram": 0,
"use_any_adapter": false,
"vm_directory": null,
"vm_id": "1aad6ad2-02bc-4532-af65-c0efdfbf1d85",
"vm_id": "f11456e7-a2d4-442b-b65a-baeba0a46087",
"vmname": "VMTEST"
}

View File

@ -1,6 +1,6 @@
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/bc323133-ac7e-48bb-ba9e-f834303e9236' -d '{"console": 2012, "name": "test", "startup_script": "ip 192.168.1.1"}'
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/670e09f9-a0ec-4400-887d-7cb839582acc' -d '{"console": 2012, "name": "test", "startup_script": "ip 192.168.1.1"}'
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/bc323133-ac7e-48bb-ba9e-f834303e9236 HTTP/1.1
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/670e09f9-a0ec-4400-887d-7cb839582acc HTTP/1.1
{
"console": 2012,
"name": "test",
@ -25,6 +25,6 @@ X-ROUTE: /v2/hypervisor/projects/{project_id}/vpcs/vms/{vm_id}
"startup_script": "ip 192.168.1.1",
"startup_script_path": "startup.vpc",
"status": "stopped",
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpp_mmn3nq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/bc323133-ac7e-48bb-ba9e-f834303e9236",
"vm_id": "bc323133-ac7e-48bb-ba9e-f834303e9236"
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpbcb6b3fb/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/vpcs/670e09f9-a0ec-4400-887d-7cb839582acc",
"vm_id": "670e09f9-a0ec-4400-887d-7cb839582acc"
}

View File

@ -36,3 +36,9 @@ Output
<tr><td>vms</td> <td>&#10004;</td> <td>array</td> <td>List of the VMS</td> </tr>
</table>
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projectsprojectidlinks.txt

View File

@ -36,3 +36,9 @@ Output
<tr><td>temporary</td> <td>&#10004;</td> <td>boolean</td> <td>If project is a temporary project</td> </tr>
</table>
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projects.txt

View File

@ -16,3 +16,9 @@ Response status codes
- **404**: The project doesn't exist
- **204**: Changes have been written on disk
Sample session
***************
.. literalinclude:: ../../../examples/controller_delete_projectsprojectid.txt

View File

@ -16,3 +16,9 @@ Response status codes
- **404**: The project doesn't exist
- **204**: The project has been closed
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projectsprojectidclose.txt

View File

@ -16,3 +16,9 @@ Response status codes
- **404**: The project doesn't exist
- **204**: Changes have been written on disk
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projectsprojectidcommit.txt

View File

@ -21,6 +21,12 @@ Output
<tr><td>version</td> <td>&#10004;</td> <td>string</td> <td>Version number human readable</td> </tr>
</table>
Sample session
***************
.. literalinclude:: ../../../examples/controller_get_version.txt
POST /v2/version
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
@ -51,3 +57,9 @@ Output
<tr><td>version</td> <td>&#10004;</td> <td>string</td> <td>Version number human readable</td> </tr>
</table>
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_version.txt

View File

@ -48,3 +48,9 @@ Output
<tr><td>vm_type</td> <td>&#10004;</td> <td>enum</td> <td>Possible values: docker, dynamips, vpcs, virtualbox, vmware, iou</td> </tr>
</table>
Sample session
***************
.. literalinclude:: ../../../examples/controller_post_projectsprojectidvms.txt

View File

@ -9,8 +9,8 @@ Restart a Docker container
Parameters
**********
- **project_id**: UUID of the project
- **id**: ID of the container
- **project_id**: UUID of the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Start a Docker container
Parameters
**********
- **project_id**: UUID of the project
- **id**: ID of the container
- **project_id**: UUID of the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Stop a Docker container
Parameters
**********
- **project_id**: UUID of the project
- **id**: ID of the container
- **project_id**: UUID of the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Pause a Docker container
Parameters
**********
- **project_id**: UUID of the project
- **id**: ID of the container
- **project_id**: UUID of the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Update a Docker instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,10 +9,10 @@ Add a NIO to a Docker container
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter where the nio should be added
- **port_number**: Port on the adapter
- **id**: ID of the container
- **project_id**: UUID for the project
Response status codes
**********************
@ -33,10 +33,10 @@ Remove a NIO from a Docker container
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter where the nio should be added
- **port_number**: Port on the adapter
- **id**: ID of the container
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Start a packet capture on a IOU VM instance
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter to start a packet capture
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter to start a packet capture
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Stop a packet capture on a IOU VM instance
Parameters
**********
- **port_number**: Port on the adapter (always 0)
- **project_id**: UUID for the project
- **adapter_number**: Adapter to stop a packet capture
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter to stop a packet capture
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Get a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **device_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -38,8 +38,8 @@ Update a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **device_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -96,8 +96,8 @@ Delete a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **device_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,9 +9,9 @@ Add a NIO to a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **port_number**: Port on the device
- **device_id**: UUID for the instance
- **port_number**: Port on the device
- **project_id**: UUID for the project
Response status codes
**********************
@ -139,9 +139,9 @@ Remove a NIO from a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **port_number**: Port on the device
- **device_id**: UUID for the instance
- **port_number**: Port on the device
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,9 +9,9 @@ Start a packet capture on a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **port_number**: Port on the device
- **device_id**: UUID for the instance
- **port_number**: Port on the device
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,9 +9,9 @@ Stop a packet capture on a Dynamips device instance
Parameters
**********
- **project_id**: UUID for the project
- **port_number**: Port on the device
- **device_id**: UUID for the instance
- **port_number**: Port on the device
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Get a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -77,8 +77,8 @@ Update a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -194,8 +194,8 @@ Delete a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Add a NIO to a Dynamips VM instance
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter where the nio should be added
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter where the nio should be added
- **project_id**: UUID for the project
Response status codes
**********************
@ -28,9 +28,9 @@ Remove a NIO from a Dynamips VM instance
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter from where the nio should be removed
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter from where the nio should be removed
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Start a packet capture on a Dynamips VM instance
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter to start a packet capture
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter to start a packet capture
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Stop a packet capture on a Dynamips VM instance
Parameters
**********
- **port_number**: Port on the adapter (always 0)
- **project_id**: UUID for the project
- **adapter_number**: Adapter to stop a packet capture
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter to stop a packet capture
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Reload a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Resume a suspended Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Start a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Stop a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Suspend a Dynamips VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Get a IOU instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -56,8 +56,8 @@ Update a IOU instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -125,8 +125,8 @@ Delete a IOU instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Add a NIO to a IOU instance
Parameters
**********
- **port_number**: Port where the nio should be added
- **project_id**: UUID for the project
- **adapter_number**: Network adapter where the nio is located
- **vm_id**: UUID for the instance
- **adapter_number**: Network adapter where the nio is located
- **project_id**: UUID for the project
Response status codes
**********************
@ -34,9 +34,9 @@ Remove a NIO from a IOU instance
Parameters
**********
- **port_number**: Port from where the nio should be removed
- **project_id**: UUID for the project
- **adapter_number**: Network adapter where the nio is located
- **vm_id**: UUID for the instance
- **adapter_number**: Network adapter where the nio is located
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Start a packet capture on a IOU VM instance
Parameters
**********
- **port_number**: Port on the adapter
- **project_id**: UUID for the project
- **adapter_number**: Adapter to start a packet capture
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter to start a packet capture
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Stop a packet capture on a IOU VM instance
Parameters
**********
- **port_number**: Port on the adapter (always 0)
- **project_id**: UUID for the project
- **adapter_number**: Adapter to stop a packet capture
- **vm_id**: UUID for the instance
- **adapter_number**: Adapter to stop a packet capture
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Reload a IOU instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Start a IOU instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Stop a IOU instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Get a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -79,8 +79,8 @@ Update a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************
@ -194,8 +194,8 @@ Delete a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -10,9 +10,9 @@ Add a NIO to a Qemu VM instance
Parameters
**********
- **port_number**: Port on the adapter (always 0)
- **project_id**: UUID for the project
- **adapter_number**: Network adapter where the nio is located
- **vm_id**: UUID for the instance
- **adapter_number**: Network adapter where the nio is located
- **project_id**: UUID for the project
Response status codes
**********************
@ -34,9 +34,9 @@ Remove a NIO from a Qemu VM instance
Parameters
**********
- **port_number**: Port on the adapter (always 0)
- **project_id**: UUID for the project
- **adapter_number**: Network adapter where the nio is located
- **vm_id**: UUID for the instance
- **adapter_number**: Network adapter where the nio is located
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Reload a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Resume a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Start a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Stop a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

View File

@ -9,8 +9,8 @@ Suspend a Qemu VM instance
Parameters
**********
- **project_id**: UUID for the project
- **vm_id**: UUID for the instance
- **project_id**: UUID for the project
Response status codes
**********************

Some files were not shown because too many files have changed in this diff Show More