1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-11-28 11:18:11 +00:00
gns3-server/docs/api/examples/hypervisor_put_projectsprojectiddockervmsvmid.txt
Julien Duponchelle 7d0b780dcc
Documentation
2016-03-11 15:21:21 +01:00

34 lines
1.2 KiB
Plaintext

curl -i -X PUT 'http://localhost:8000/v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/351efb4b-1f7d-4057-bc48-d2563312a88e' -d '{"console": 2003, "environment": "GNS3=1\nGNS4=0", "name": "test", "start_command": "yes"}'
PUT /v2/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/docker/vms/351efb4b-1f7d-4057-bc48-d2563312a88e 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/tmp_i5ppgsq/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/docker/351efb4b-1f7d-4057-bc48-d2563312a88e",
"vm_id": "351efb4b-1f7d-4057-bc48-d2563312a88e"
}