mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-25 00:08:11 +00:00
Fix curl sample generation in the documentation
This commit is contained in:
parent
ebd72d1149
commit
d0c386860e
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80'
|
||||||
|
|
||||||
DELETE /projects/{project_id} HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/ac98c05c-dbf1-4157-8f4c-6a0319a0bcdc'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/iou/vms/{vm_id} HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/ac98c05c-dbf1-4157-8f4c-6a0319a0bcdc HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/acf7667f-91d4-4be5-9eec-f453783bb983/adapters/1/ports/0/nio'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/acf7667f-91d4-4be5-9eec-f453783bb983/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/da298f63-4d5b-44a7-8672-ec6642009725'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/qemu/vms/{vm_id} HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/da298f63-4d5b-44a7-8672-ec6642009725 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/75fa07c2-fb3d-4a19-815d-2dee5aa5325c/adapters/1/ports/0/nio'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/qemu/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/75fa07c2-fb3d-4a19-815d-2dee5aa5325c/adapters/1/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/c99f4293-b8b1-40a6-8535-014c4afc2fe7/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/virtualbox/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/c99f4293-b8b1-40a6-8535-014c4afc2fe7/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/879f1789-bde0-4e64-ac68-f61a9b114347'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/vpcs/vms/{vm_id} HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/879f1789-bde0-4e64-ac68-f61a9b114347 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X DELETE 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio'
|
curl -i -X DELETE 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/5238c683-bb17-49f2-8796-a60668fc5955/adapters/0/ports/0/nio'
|
||||||
|
|
||||||
DELETE /projects/{project_id}/vpcs/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
DELETE /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/5238c683-bb17-49f2-8796-a60668fc5955/adapters/0/ports/0/nio HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:8000/projects/{project_id}'
|
curl -i -X GET 'http://localhost:8000/projects/00010203-0405-0607-0809-0a0b0c0d0e02'
|
||||||
|
|
||||||
GET /projects/{project_id} HTTP/1.1
|
GET /projects/00010203-0405-0607-0809-0a0b0c0d0e02 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -13,8 +13,8 @@ SERVER: Python/3.4 GNS3/1.3.dev1
|
|||||||
X-ROUTE: /v1/projects/{project_id}
|
X-ROUTE: /v1/projects/{project_id}
|
||||||
|
|
||||||
{
|
{
|
||||||
"location": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpqekqsxgq",
|
"location": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpju7ztx9a",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpqekqsxgq/00010203-0405-0607-0809-0a0b0c0d0e02",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpju7ztx9a/00010203-0405-0607-0809-0a0b0c0d0e02",
|
||||||
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e02",
|
"project_id": "00010203-0405-0607-0809-0a0b0c0d0e02",
|
||||||
"temporary": false
|
"temporary": false
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}'
|
curl -i -X GET 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c5c0075d-0b10-4401-8bed-d9897814237c'
|
||||||
|
|
||||||
GET /projects/{project_id}/iou/vms/{vm_id} HTTP/1.1
|
GET /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c5c0075d-0b10-4401-8bed-d9897814237c HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -19,9 +19,9 @@ X-ROUTE: /v1/projects/{project_id}/iou/vms/{vm_id}
|
|||||||
"l1_keepalives": false,
|
"l1_keepalives": false,
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"nvram": 128,
|
"nvram": 128,
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_iou_get0/iou.bin",
|
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_iou_get0/iou.bin",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"ram": 256,
|
"ram": 256,
|
||||||
"serial_adapters": 2,
|
"serial_adapters": 2,
|
||||||
"vm_id": "b9022212-4b9e-48fd-b910-85f0d896f951"
|
"vm_id": "c5c0075d-0b10-4401-8bed-d9897814237c"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/initial_config'
|
curl -i -X GET 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f7220f9c-3334-43e3-9ef4-37f09ba6fcab/initial_config'
|
||||||
|
|
||||||
GET /projects/{project_id}/iou/vms/{vm_id}/initial_config HTTP/1.1
|
GET /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f7220f9c-3334-43e3-9ef4-37f09ba6fcab/initial_config HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}'
|
curl -i -X GET 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/4532d770-23a0-4858-bbab-d8a8b3a17deb'
|
||||||
|
|
||||||
GET /projects/{project_id}/qemu/vms/{vm_id} HTTP/1.1
|
GET /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/4532d770-23a0-4858-bbab-d8a8b3a17deb HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -28,7 +28,7 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
|||||||
"options": "",
|
"options": "",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmprhap9vc_/qemu_x42",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph25p8xei/qemu_x42",
|
||||||
"ram": 256,
|
"ram": 256,
|
||||||
"vm_id": "5eee27c5-c590-4ddf-aa1f-783e15a3c41a"
|
"vm_id": "4532d770-23a0-4858-bbab-d8a8b3a17deb"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}'
|
curl -i -X GET 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f526503a-8d24-4513-a5e3-1ebf4159aa70'
|
||||||
|
|
||||||
GET /projects/{project_id}/virtualbox/vms/{vm_id} HTTP/1.1
|
GET /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f526503a-8d24-4513-a5e3-1ebf4159aa70 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -21,6 +21,6 @@ X-ROUTE: /v1/projects/{project_id}/virtualbox/vms/{vm_id}
|
|||||||
"name": "VMTEST",
|
"name": "VMTEST",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"use_any_adapter": false,
|
"use_any_adapter": false,
|
||||||
"vm_id": "4d4c9e18-0bad-4345-9338-17b98f2f6680",
|
"vm_id": "f526503a-8d24-4513-a5e3-1ebf4159aa70",
|
||||||
"vmname": "VMTEST"
|
"vmname": "VMTEST"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X GET 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}'
|
curl -i -X GET 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/6f3c227f-86f5-4f54-bc4b-74597744b904'
|
||||||
|
|
||||||
GET /projects/{project_id}/vpcs/vms/{vm_id} HTTP/1.1
|
GET /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/6f3c227f-86f5-4f54-bc4b-74597744b904 HTTP/1.1
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
@ -18,5 +18,5 @@ X-ROUTE: /v1/projects/{project_id}/vpcs/vms/{vm_id}
|
|||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": null,
|
"startup_script": null,
|
||||||
"startup_script_path": null,
|
"startup_script_path": null,
|
||||||
"vm_id": "ca159ab0-42d5-4c9a-bfb0-c2290ac90556"
|
"vm_id": "6f3c227f-86f5-4f54-bc4b-74597744b904"
|
||||||
}
|
}
|
||||||
|
@ -13,8 +13,8 @@ SERVER: Python/3.4 GNS3/1.3.dev1
|
|||||||
X-ROUTE: /v1/projects
|
X-ROUTE: /v1/projects
|
||||||
|
|
||||||
{
|
{
|
||||||
"location": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpgrmlhkz5",
|
"location": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp4s49s4hy",
|
||||||
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpgrmlhkz5/8a563c49-902c-4ee8-8a3c-d188e5832741",
|
"path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp4s49s4hy/119348c0-fa80-4386-bf1e-b00755c9c6b4",
|
||||||
"project_id": "8a563c49-902c-4ee8-8a3c-d188e5832741",
|
"project_id": "119348c0-fa80-4386-bf1e-b00755c9c6b4",
|
||||||
"temporary": false
|
"temporary": false
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/close' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/close HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/close HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/commit' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/commit' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/commit HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/commit HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,13 +1,13 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms' -d '{"ethernet_adapters": 0, "initial_config_content": "hostname test", "l1_keepalives": true, "name": "PC TEST 1", "nvram": 512, "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_iou_create_with_params0/iou.bin", "ram": 1024, "serial_adapters": 4}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms' -d '{"ethernet_adapters": 0, "initial_config_content": "hostname test", "l1_keepalives": true, "name": "PC TEST 1", "nvram": 512, "path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_iou_create_with_params0/iou.bin", "ram": 1024, "serial_adapters": 4}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms HTTP/1.1
|
||||||
{
|
{
|
||||||
"ethernet_adapters": 0,
|
"ethernet_adapters": 0,
|
||||||
"initial_config_content": "hostname test",
|
"initial_config_content": "hostname test",
|
||||||
"l1_keepalives": true,
|
"l1_keepalives": true,
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"nvram": 512,
|
"nvram": 512,
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_iou_create_with_params0/iou.bin",
|
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_iou_create_with_params0/iou.bin",
|
||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"serial_adapters": 4
|
"serial_adapters": 4
|
||||||
}
|
}
|
||||||
@ -28,9 +28,9 @@ X-ROUTE: /v1/projects/{project_id}/iou/vms
|
|||||||
"l1_keepalives": true,
|
"l1_keepalives": true,
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"nvram": 512,
|
"nvram": 512,
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_iou_create_with_params0/iou.bin",
|
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_iou_create_with_params0/iou.bin",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"serial_adapters": 4,
|
"serial_adapters": 4,
|
||||||
"vm_id": "d6832edf-97ad-45a2-b588-c64d5c3f5dec"
|
"vm_id": "3c02aa01-46d2-4a62-97d6-dc5829afdf39"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/7f758868-46e1-4ef5-accc-f8e939a12471/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/7f758868-46e1-4ef5-accc-f8e939a12471/adapters/1/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"ethernet_device": "eth0",
|
"ethernet_device": "eth0",
|
||||||
"type": "nio_generic_ethernet"
|
"type": "nio_generic_ethernet"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c40daea2-2b38-4d14-a872-13c5f991cbc3/adapters/0/ports/0/start_capture' -d '{"capture_file_name": "test.pcap", "data_link_type": "DLT_EN10MB"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/c40daea2-2b38-4d14-a872-13c5f991cbc3/adapters/0/ports/0/start_capture HTTP/1.1
|
||||||
{
|
{
|
||||||
"capture_file_name": "test.pcap",
|
"capture_file_name": "test.pcap",
|
||||||
"data_link_type": "DLT_EN10MB"
|
"data_link_type": "DLT_EN10MB"
|
||||||
@ -16,5 +16,5 @@ SERVER: Python/3.4 GNS3/1.3.dev1
|
|||||||
X-ROUTE: /v1/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/start_capture
|
X-ROUTE: /v1/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/tmpina5gsqc/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
"pcap_file_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmpn_q77wz2/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/captures/test.pcap"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/550b8f35-e258-4354-a74c-cd35a48c08ed/adapters/0/ports/0/stop_capture' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/stop_capture HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/550b8f35-e258-4354-a74c-cd35a48c08ed/adapters/0/ports/0/stop_capture HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/reload' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d1b38099-46a3-4405-a354-85faeb76bd0e/reload' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms/{vm_id}/reload HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/d1b38099-46a3-4405-a354-85faeb76bd0e/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/start' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/fc1ea907-eb0b-4857-9ad2-759f780afdb4/start' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms/{vm_id}/start HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/fc1ea907-eb0b-4857-9ad2-759f780afdb4/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}/stop' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/0228866f-a286-44e2-9688-a8cab4e75cc3/stop' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/iou/vms/{vm_id}/stop HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/0228866f-a286-44e2-9688-a8cab4e75cc3/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,10 +1,10 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms' -d '{"hda_disk_image": "hda", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmprhap9vc_/qemu_x42", "ram": 1024}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms' -d '{"hda_disk_image": "hda", "name": "PC TEST 1", "qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph25p8xei/qemu_x42", "ram": 1024}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms HTTP/1.1
|
||||||
{
|
{
|
||||||
"hda_disk_image": "hda",
|
"hda_disk_image": "hda",
|
||||||
"name": "PC TEST 1",
|
"name": "PC TEST 1",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmprhap9vc_/qemu_x42",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph25p8xei/qemu_x42",
|
||||||
"ram": 1024
|
"ram": 1024
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -33,7 +33,7 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms
|
|||||||
"options": "",
|
"options": "",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmprhap9vc_/qemu_x42",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph25p8xei/qemu_x42",
|
||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"vm_id": "4c3596aa-e44c-4129-94e4-45dd93ef7e6b"
|
"vm_id": "4e47d2c8-d591-4508-9c3e-00e366f7c22d"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/e4ac8960-f709-4e28-bc6c-3b2593b622e9/adapters/1/ports/0/nio' -d '{"ethernet_device": "eth0", "type": "nio_generic_ethernet"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/e4ac8960-f709-4e28-bc6c-3b2593b622e9/adapters/1/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"ethernet_device": "eth0",
|
"ethernet_device": "eth0",
|
||||||
"type": "nio_generic_ethernet"
|
"type": "nio_generic_ethernet"
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/reload' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/2a143130-2445-4a4b-9ba2-f49071eed5f4/reload' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms/{vm_id}/reload HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/2a143130-2445-4a4b-9ba2-f49071eed5f4/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/resume' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/9272bffc-7a73-449a-aa71-96c48b1e5a3d/resume' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms/{vm_id}/resume HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/9272bffc-7a73-449a-aa71-96c48b1e5a3d/resume HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/start' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/e4f04682-d749-49c8-be3e-8c4752483cc1/start' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms/{vm_id}/start HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/e4f04682-d749-49c8-be3e-8c4752483cc1/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/stop' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/1cb28121-2b13-4c53-a0fc-ab8c6d028d0f/stop' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms/{vm_id}/stop HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/1cb28121-2b13-4c53-a0fc-ab8c6d028d0f/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}/suspend' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/777077ba-025a-49dc-9773-cedc425bdb6d/suspend' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/qemu/vms/{vm_id}/suspend HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/777077ba-025a-49dc-9773-cedc425bdb6d/suspend HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms' -d '{"linked_clone": false, "name": "VM1", "vmname": "VM1"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms HTTP/1.1
|
||||||
{
|
{
|
||||||
"linked_clone": false,
|
"linked_clone": false,
|
||||||
"name": "VM1",
|
"name": "VM1",
|
||||||
@ -25,6 +25,6 @@ X-ROUTE: /v1/projects/{project_id}/virtualbox/vms
|
|||||||
"name": "VM1",
|
"name": "VM1",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"use_any_adapter": false,
|
"use_any_adapter": false,
|
||||||
"vm_id": "d162a4e3-f28b-48db-a9f4-1c87db4ed0d2",
|
"vm_id": "1404a6c5-c0f5-4bc6-bb94-477d7e631781",
|
||||||
"vmname": "VM1"
|
"vmname": "VM1"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/bd0d175c-2055-4315-86d1-07494696d42e/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/bd0d175c-2055-4315-86d1-07494696d42e/adapters/0/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"lport": 4242,
|
"lport": 4242,
|
||||||
"rhost": "127.0.0.1",
|
"rhost": "127.0.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/reload' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/4c9fdef4-8990-44a1-8a98-1b7c510821ee/reload' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms/{vm_id}/reload HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/4c9fdef4-8990-44a1-8a98-1b7c510821ee/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/resume' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f6487814-a3a9-4e82-867c-83662c7bed48/resume' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms/{vm_id}/resume HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/f6487814-a3a9-4e82-867c-83662c7bed48/resume HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/start' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/bedd61d4-b264-47d9-b290-920d5ba70f6d/start' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms/{vm_id}/start HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/bedd61d4-b264-47d9-b290-920d5ba70f6d/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/stop' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/a1960146-9be9-4f54-b594-67a6ab40f436/stop' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms/{vm_id}/stop HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/a1960146-9be9-4f54-b594-67a6ab40f436/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}/suspend' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/4d16597f-fa75-430a-9b94-faf7f93bb0a3/suspend' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/virtualbox/vms/{vm_id}/suspend HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/4d16597f-fa75-430a-9b94-faf7f93bb0a3/suspend HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/vpcs/vms' -d '{"name": "PC TEST 1"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms' -d '{"name": "PC TEST 1"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/vpcs/vms HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms HTTP/1.1
|
||||||
{
|
{
|
||||||
"name": "PC TEST 1"
|
"name": "PC TEST 1"
|
||||||
}
|
}
|
||||||
@ -20,5 +20,5 @@ X-ROUTE: /v1/projects/{project_id}/vpcs/vms
|
|||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": null,
|
"startup_script": null,
|
||||||
"startup_script_path": null,
|
"startup_script_path": null,
|
||||||
"vm_id": "4bec08c2-b54b-4040-90a3-2add2fd82f32"
|
"vm_id": "b0d1df2e-ebd1-4783-bb62-871e24f01543"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/385d80e1-193c-4b38-bf55-5185ffd6b473/adapters/0/ports/0/nio' -d '{"lport": 4242, "rhost": "127.0.0.1", "rport": 4343, "type": "nio_udp"}'
|
||||||
|
|
||||||
POST /projects/{project_id}/vpcs/vms/{vm_id}/adapters/{adapter_number:\d+}/ports/{port_number:\d+}/nio HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/385d80e1-193c-4b38-bf55-5185ffd6b473/adapters/0/ports/0/nio HTTP/1.1
|
||||||
{
|
{
|
||||||
"lport": 4242,
|
"lport": 4242,
|
||||||
"rhost": "127.0.0.1",
|
"rhost": "127.0.0.1",
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}/reload' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/b12c5612-147d-4229-86ca-103174ba8fd1/reload' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/vpcs/vms/{vm_id}/reload HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/b12c5612-147d-4229-86ca-103174ba8fd1/reload HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}/start' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/01037fd2-9533-42db-bd19-df5b21e47fcf/start' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/vpcs/vms/{vm_id}/start HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/01037fd2-9533-42db-bd19-df5b21e47fcf/start HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X POST 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}/stop' -d '{}'
|
curl -i -X POST 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/20eefc85-f1b6-4e36-9601-cd0dc91faaa0/stop' -d '{}'
|
||||||
|
|
||||||
POST /projects/{project_id}/vpcs/vms/{vm_id}/stop HTTP/1.1
|
POST /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/20eefc85-f1b6-4e36-9601-cd0dc91faaa0/stop HTTP/1.1
|
||||||
{}
|
{}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,8 +1,8 @@
|
|||||||
curl -i -X PUT 'http://localhost:8000/projects/{project_id}' -d '{"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_update_path_project_non_l0"}'
|
curl -i -X PUT 'http://localhost:8000/projects/ef58b29e-59df-42c0-9492-5a766a13cb62' -d '{"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_update_path_project_non_l0"}'
|
||||||
|
|
||||||
PUT /projects/{project_id} HTTP/1.1
|
PUT /projects/ef58b29e-59df-42c0-9492-5a766a13cb62 HTTP/1.1
|
||||||
{
|
{
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_update_path_project_non_l0"
|
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_update_path_project_non_l0"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:8000/projects/{project_id}/iou/vms/{vm_id}' -d '{"console": 2001, "ethernet_adapters": 4, "initial_config_content": "hostname test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0}'
|
curl -i -X PUT 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/324dab07-d86c-4a3b-8390-7a8e9a506006' -d '{"console": 2001, "ethernet_adapters": 4, "initial_config_content": "hostname test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0}'
|
||||||
|
|
||||||
PUT /projects/{project_id}/iou/vms/{vm_id} HTTP/1.1
|
PUT /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/324dab07-d86c-4a3b-8390-7a8e9a506006 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 2001,
|
"console": 2001,
|
||||||
"ethernet_adapters": 4,
|
"ethernet_adapters": 4,
|
||||||
@ -28,9 +28,9 @@ X-ROUTE: /v1/projects/{project_id}/iou/vms/{vm_id}
|
|||||||
"l1_keepalives": true,
|
"l1_keepalives": true,
|
||||||
"name": "test",
|
"name": "test",
|
||||||
"nvram": 2048,
|
"nvram": 2048,
|
||||||
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3782/test_iou_update0/iou.bin",
|
"path": "/private/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/pytest-3783/test_iou_update0/iou.bin",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"ram": 512,
|
"ram": 512,
|
||||||
"serial_adapters": 0,
|
"serial_adapters": 0,
|
||||||
"vm_id": "69ad7d57-d1ec-447e-b8da-7b2f888a85e5"
|
"vm_id": "324dab07-d86c-4a3b-8390-7a8e9a506006"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:8000/projects/{project_id}/qemu/vms/{vm_id}' -d '{"console": 2002, "hdb_disk_image": "hdb", "name": "test", "ram": 1024}'
|
curl -i -X PUT 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/a68a00de-a264-4cc0-821c-301af5059ea4' -d '{"console": 2002, "hdb_disk_image": "hdb", "name": "test", "ram": 1024}'
|
||||||
|
|
||||||
PUT /projects/{project_id}/qemu/vms/{vm_id} HTTP/1.1
|
PUT /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/qemu/vms/a68a00de-a264-4cc0-821c-301af5059ea4 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 2002,
|
"console": 2002,
|
||||||
"hdb_disk_image": "hdb",
|
"hdb_disk_image": "hdb",
|
||||||
@ -33,7 +33,7 @@ X-ROUTE: /v1/projects/{project_id}/qemu/vms/{vm_id}
|
|||||||
"options": "",
|
"options": "",
|
||||||
"process_priority": "low",
|
"process_priority": "low",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmprhap9vc_/qemu_x42",
|
"qemu_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmph25p8xei/qemu_x42",
|
||||||
"ram": 1024,
|
"ram": 1024,
|
||||||
"vm_id": "385c7895-f085-4682-b31a-a6a63930c5c4"
|
"vm_id": "a68a00de-a264-4cc0-821c-301af5059ea4"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:8000/projects/{project_id}/virtualbox/vms/{vm_id}' -d '{"console": 2010, "name": "test"}'
|
curl -i -X PUT 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/4a6375b9-14b8-406c-ae8e-df6d242088f9' -d '{"console": 2010, "name": "test"}'
|
||||||
|
|
||||||
PUT /projects/{project_id}/virtualbox/vms/{vm_id} HTTP/1.1
|
PUT /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/virtualbox/vms/4a6375b9-14b8-406c-ae8e-df6d242088f9 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 2010,
|
"console": 2010,
|
||||||
"name": "test"
|
"name": "test"
|
||||||
@ -24,6 +24,6 @@ X-ROUTE: /v1/projects/{project_id}/virtualbox/vms/{vm_id}
|
|||||||
"name": "test",
|
"name": "test",
|
||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"use_any_adapter": false,
|
"use_any_adapter": false,
|
||||||
"vm_id": "15c34b6c-63bb-48a6-b4b0-e772fdb74925",
|
"vm_id": "4a6375b9-14b8-406c-ae8e-df6d242088f9",
|
||||||
"vmname": "VMTEST"
|
"vmname": "VMTEST"
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
curl -i -X PUT 'http://localhost:8000/projects/{project_id}/vpcs/vms/{vm_id}' -d '{"console": 2011, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
curl -i -X PUT 'http://localhost:8000/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/39951883-cbfb-4aff-9cbc-06895749e571' -d '{"console": 2011, "name": "test", "startup_script": "ip 192.168.1.1"}'
|
||||||
|
|
||||||
PUT /projects/{project_id}/vpcs/vms/{vm_id} HTTP/1.1
|
PUT /projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/vpcs/vms/39951883-cbfb-4aff-9cbc-06895749e571 HTTP/1.1
|
||||||
{
|
{
|
||||||
"console": 2011,
|
"console": 2011,
|
||||||
"name": "test",
|
"name": "test",
|
||||||
@ -22,5 +22,5 @@ X-ROUTE: /v1/projects/{project_id}/vpcs/vms/{vm_id}
|
|||||||
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
||||||
"startup_script": "ip 192.168.1.1",
|
"startup_script": "ip 192.168.1.1",
|
||||||
"startup_script_path": "startup.vpc",
|
"startup_script_path": "startup.vpc",
|
||||||
"vm_id": "a239c325-d437-4209-a583-9eee28905802"
|
"vm_id": "39951883-cbfb-4aff-9cbc-06895749e571"
|
||||||
}
|
}
|
||||||
|
@ -10,8 +10,8 @@ Add a NIO to a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -129,8 +129,8 @@ Remove a NIO from a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -10,8 +10,8 @@ Start a packet capture on a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -10,8 +10,8 @@ Stop a packet capture on a Dynamips device instance
|
|||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the device
|
|
||||||
- **device_id**: UUID for the instance
|
- **device_id**: UUID for the instance
|
||||||
|
- **port_number**: Port on the device
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Get a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -75,8 +75,8 @@ Update a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -191,8 +191,8 @@ Delete a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Add a NIO to a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter where the nio should be added
|
- **adapter_number**: Adapter where the nio should be added
|
||||||
|
- **port_number**: Port on the adapter
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -27,10 +27,10 @@ Remove a NIO from a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter from where the nio should be removed
|
- **adapter_number**: Adapter from where the nio should be removed
|
||||||
|
- **port_number**: Port on the adapter
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Start a packet capture on a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter to start a packet capture
|
- **adapter_number**: Adapter to start a packet capture
|
||||||
|
- **port_number**: Port on the adapter
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Stop a packet capture on a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter to stop a packet capture
|
- **adapter_number**: Adapter to stop a packet capture
|
||||||
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Reload a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Resume a suspended Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Start a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Stop a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Suspend a Dynamips VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Get a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -57,8 +57,8 @@ Update a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -130,8 +130,8 @@ Delete a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Add a NIO to a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port where the nio should be added
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
|
- **port_number**: Port where the nio should be added
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -33,10 +33,10 @@ Remove a NIO from a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port from where the nio should be removed
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
|
- **port_number**: Port from where the nio should be removed
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Reload a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Resume a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Start a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Stop a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Suspend a Qemu.instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Get a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -49,8 +49,8 @@ Update a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -106,8 +106,8 @@ Delete a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Add a NIO to a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter where the nio should be added
|
- **adapter_number**: Adapter where the nio should be added
|
||||||
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -33,10 +33,10 @@ Remove a NIO from a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter (always)
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter from where the nio should be removed
|
- **adapter_number**: Adapter from where the nio should be removed
|
||||||
|
- **port_number**: Port on the adapter (always)
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Start a packet capture on a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter to start a packet capture
|
- **adapter_number**: Adapter to start a packet capture
|
||||||
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Stop a packet capture on a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port on the adapter (always 0)
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Adapter to stop a packet capture
|
- **adapter_number**: Adapter to stop a packet capture
|
||||||
|
- **port_number**: Port on the adapter (always 0)
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Reload a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Resume a suspended VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Start a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Stop a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Suspend a VirtualBox VM instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Get a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -45,8 +45,8 @@ Update a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -93,8 +93,8 @@ Delete a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,10 +9,10 @@ Add a NIO to a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port where the nio should be added
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
|
- **port_number**: Port where the nio should be added
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
@ -33,10 +33,10 @@ Remove a NIO from a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
- **port_number**: Port from where the nio should be removed
|
- **vm_id**: UUID for the instance
|
||||||
- **adapter_number**: Network adapter where the nio is located
|
- **adapter_number**: Network adapter where the nio is located
|
||||||
|
- **port_number**: Port from where the nio should be removed
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Reload a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Start a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -9,8 +9,8 @@ Stop a VPCS instance
|
|||||||
|
|
||||||
Parameters
|
Parameters
|
||||||
**********
|
**********
|
||||||
- **vm_id**: UUID for the instance
|
|
||||||
- **project_id**: UUID for the project
|
- **project_id**: UUID for the project
|
||||||
|
- **vm_id**: UUID for the instance
|
||||||
|
|
||||||
Response status codes
|
Response status codes
|
||||||
**********************
|
**********************
|
||||||
|
@ -27,6 +27,5 @@ from gns3server.handlers.api.virtualbox_handler import VirtualBoxHandler
|
|||||||
from gns3server.handlers.api.vpcs_handler import VPCSHandler
|
from gns3server.handlers.api.vpcs_handler import VPCSHandler
|
||||||
from gns3server.handlers.upload_handler import UploadHandler
|
from gns3server.handlers.upload_handler import UploadHandler
|
||||||
|
|
||||||
print(os.environ)
|
|
||||||
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
|
if sys.platform.startswith("linux") or hasattr(sys, "_called_from_test"):
|
||||||
from gns3server.handlers.api.iou_handler import IOUHandler
|
from gns3server.handlers.api.iou_handler import IOUHandler
|
||||||
|
@ -93,14 +93,14 @@ class Query:
|
|||||||
response.json = {}
|
response.json = {}
|
||||||
response.html = ""
|
response.html = ""
|
||||||
if kwargs.get('example') and os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
|
if kwargs.get('example') and os.environ.get("PYTEST_BUILD_DOCUMENTATION") == "1":
|
||||||
self._dump_example(method, response.route, body, response)
|
self._dump_example(method, response.route, path, body, response)
|
||||||
return response
|
return response
|
||||||
|
|
||||||
def _dump_example(self, method, path, body, response):
|
def _dump_example(self, method, route, path, body, response):
|
||||||
"""Dump the request for the documentation"""
|
"""Dump the request for the documentation"""
|
||||||
if path is None:
|
if path is None:
|
||||||
return
|
return
|
||||||
with open(self._example_file_path(method, path), 'w+') as f:
|
with open(self._example_file_path(method, route), 'w+') as f:
|
||||||
f.write("curl -i -X {} 'http://localhost:8000{}'".format(method, path))
|
f.write("curl -i -X {} 'http://localhost:8000{}'".format(method, path))
|
||||||
if body:
|
if body:
|
||||||
f.write(" -d '{}'".format(re.sub(r"\n", "", json.dumps(json.loads(body), sort_keys=True))))
|
f.write(" -d '{}'".format(re.sub(r"\n", "", json.dumps(json.loads(body), sort_keys=True))))
|
||||||
|
Loading…
Reference in New Issue
Block a user