mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-24 17:28:08 +00:00
34 lines
1.2 KiB
Plaintext
34 lines
1.2 KiB
Plaintext
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"}'
|
|
|
|
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/fa63fd04-e5e0-49ca-badd-6565381f5126 HTTP/1.1
|
|
{
|
|
"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
|
|
X-ROUTE: /v2/hypervisor/projects/{project_id}/docker/vms/{vm_id}
|
|
|
|
{
|
|
"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",
|
|
"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"
|
|
}
|