mirror of
https://github.com/GNS3/gns3-server
synced 2024-12-28 01:38:08 +00:00
7a19c9062e
Move Config the the base manager. More checks for projects (UUID, makedirs). Return error 500 when a VMError exception is raised. Some more progress to VirtualBox.
24 lines
585 B
Plaintext
24 lines
585 B
Plaintext
curl -i -X POST 'http://localhost:8000/virtualbox' -d '{"name": "VM1", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "vmname": "VM1"}'
|
|
|
|
POST /virtualbox HTTP/1.1
|
|
{
|
|
"name": "VM1",
|
|
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
"vmname": "VM1"
|
|
}
|
|
|
|
|
|
HTTP/1.1 200
|
|
CONNECTION: close
|
|
CONTENT-LENGTH: 133
|
|
CONTENT-TYPE: application/json
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
SERVER: Python/3.4 aiohttp/0.13.1
|
|
X-ROUTE: /virtualbox
|
|
|
|
{
|
|
"name": "VM1",
|
|
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
"uuid": "3142e932-d316-40d7-bed3-7ef8e2d313b3"
|
|
}
|