gns3-server/docs/api/examples/post_virtualbox.txt

32 lines
850 B
Plaintext
Raw Normal View History

2015-01-22 11:55:11 +02:00
curl -i -X POST 'http://localhost:8000/virtualbox' -d '{"linked_clone": false, "name": "VM1", "project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "vmname": "VM1"}'
2015-01-21 00:40:03 +02:00
POST /virtualbox HTTP/1.1
{
2015-01-22 11:55:11 +02:00
"linked_clone": false,
2015-01-21 00:40:03 +02:00
"name": "VM1",
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"vmname": "VM1"
}
2015-01-21 23:33:41 +02:00
HTTP/1.1 201
2015-01-21 00:40:03 +02:00
CONNECTION: close
2015-01-23 17:19:17 +02:00
CONTENT-LENGTH: 348
2015-01-21 00:40:03 +02:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.4 aiohttp/0.13.1
X-ROUTE: /virtualbox
{
2015-01-23 17:19:17 +02:00
"adapter_start_index": 0,
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
"adapters": 0,
"enable_remote_console": false,
"headless": false,
"linked_clone": false,
2015-01-21 00:40:03 +02:00
"name": "VM1",
"project_uuid": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
2015-01-23 17:21:26 +02:00
"uuid": "767b6b21-2209-4d73-aec8-49e4a332709d",
2015-01-23 17:19:17 +02:00
"vmname": "VM1"
2015-01-21 00:40:03 +02:00
}