2016-03-11 14:49:28 +00:00
|
|
|
curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/fa63fd04-e5e0-49ca-badd-6565381f5126' -d '{"console": 2003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
|
2016-03-04 16:50:17 +00:00
|
|
|
|
2016-03-11 14:49:28 +00:00
|
|
|
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/fa63fd04-e5e0-49ca-badd-6565381f5126 HTTP/1.1
|
2016-03-04 16:50:17 +00:00
|
|
|
{
|
|
|
|
"console": 2003,
|
|
|
|
"environment": "GNS3=1\nGNS4=0",
|
|
|
|
"name": "test",
|
|
|
|
"start_command": "yes"
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
HTTP/1.1 200
|
|
|
|
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
|
|
|
CONTENT-LENGTH: 531
|
|
|
|
CONTENT-TYPE: application/json
|
|
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
|
|
SERVER: Python/3.5 GNS3/1.5.0dev1
|
2016-03-07 16:57:12 +00:00
|
|
|
X-ROUTE: /v2/hypervisor/projects/{project_id}/docker/vms/{vm_id}
|
2016-03-04 16:50:17 +00:00
|
|
|
|
|
|
|
{
|
|
|
|
"adapters": 2,
|
|
|
|
"aux": 2002,
|
|
|
|
"console": 2003,
|
|
|
|
"console_type": "telnet",
|
|
|
|
"container_id": "8bd8153ea8f5",
|
|
|
|
"environment": "GNS3=1\nGNS4=0",
|
|
|
|
"image": "nginx",
|
|
|
|
"name": "test",
|
|
|
|
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
|
|
|
|
"start_command": "yes",
|
2016-03-11 14:49:28 +00:00
|
|
|
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmp3892e7sw/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/fa63fd04-e5e0-49ca-badd-6565381f5126",
|
|
|
|
"vm_id": "fa63fd04-e5e0-49ca-badd-6565381f5126"
|
2016-03-04 16:50:17 +00:00
|
|
|
}
|