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

34 lines
956 B
Plaintext
Raw Normal View History

2016-03-11 18:02:50 +02:00
curl -i -X POST 'http://localhost:8000/v2/projects/e3f3ed10-3e32-49bd-8596-6ec73507fb50/vms' -d '{"hypervisor_id": "example.com", "name": "test", "properties": {"startup_script": "echo test"}, "vm_type": "vpcs"}'
2016-03-11 16:21:21 +02:00
2016-03-11 18:02:50 +02:00
POST /v2/projects/e3f3ed10-3e32-49bd-8596-6ec73507fb50/vms HTTP/1.1
2016-03-11 16:21:21 +02:00
{
"hypervisor_id": "example.com",
"name": "test",
"properties": {
"startup_script": "echo test"
},
"vm_type": "vpcs"
}
HTTP/1.1 201
ACCESS-CONTROL-ALLOW-ORIGIN: *
2016-03-11 16:49:28 +02:00
CONTENT-LENGTH: 308
2016-03-11 16:21:21 +02:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
SERVER: Python/3.5 GNS3/1.5.0dev1
X-ROUTE: /v2/controller/projects/{project_id}/vms
{
"console": null,
"console_type": "telnet",
"hypervisor_id": "example.com",
"name": "test",
2016-03-11 18:02:50 +02:00
"project_id": "e3f3ed10-3e32-49bd-8596-6ec73507fb50",
2016-03-11 16:21:21 +02:00
"properties": {
2016-03-11 16:49:28 +02:00
"startup_script": "echo test"
2016-03-11 16:21:21 +02:00
},
2016-03-11 18:02:50 +02:00
"vm_id": "acc8b635-4ee6-48f4-8c69-c054acd829a2",
2016-03-11 16:21:21 +02:00
"vm_type": "vpcs"
}