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

32 lines
845 B
Plaintext
Raw Normal View History

2015-02-03 18:44:04 -07:00
curl -i -X POST 'http://localhost:8000/virtualbox' -d '{"linked_clone": false, "name": "VM1", "project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80", "vmname": "VM1"}'
2015-01-20 23:40:03 +01:00
POST /virtualbox HTTP/1.1
{
2015-01-22 10:55:11 +01:00
"linked_clone": false,
2015-01-20 23:40:03 +01:00
"name": "VM1",
2015-02-03 18:44:04 -07:00
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
2015-01-20 23:40:03 +01:00
"vmname": "VM1"
}
2015-01-21 22:33:41 +01:00
HTTP/1.1 201
2015-02-04 10:31:31 +01:00
CONNECTION: keep-alive
2015-02-03 18:44:04 -07:00
CONTENT-LENGTH: 340
2015-01-20 23:40:03 +01:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
2015-02-04 10:31:31 +01:00
SERVER: Python/3.4 GNS3/1.3.dev1
X-ROUTE: /v1/virtualbox
2015-01-20 23:40:03 +01:00
{
2015-01-23 16:19:17 +01:00
"adapter_start_index": 0,
"adapter_type": "Intel PRO/1000 MT Desktop (82540EM)",
"adapters": 0,
2015-01-26 09:36:26 +01:00
"console": 2000,
2015-01-23 16:19:17 +01:00
"enable_remote_console": false,
"headless": false,
2015-01-20 23:40:03 +01:00
"name": "VM1",
2015-02-03 18:44:04 -07:00
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
2015-02-04 10:31:31 +01:00
"uuid": "267f3908-f3dd-4cac-bca3-2e31a1018493",
2015-01-23 16:19:17 +01:00
"vmname": "VM1"
2015-01-20 23:40:03 +01:00
}