1
0
mirror of https://github.com/GNS3/gns3-server synced 2024-12-28 01:38:08 +00:00
gns3-server/docs/api/examples/controller_post_projectsprojectidvms.txt

34 lines
936 B
Plaintext
Raw Normal View History

2016-04-18 14:58:06 +00:00
curl -i -X POST 'http://localhost:3080/v2/projects/f8094ada-6a80-40c9-a674-ded9f69eeb7b/vms' -d '{"compute_id": "example.com", "name": "test", "properties": {"startup_script": "echo test"}, "vm_type": "vpcs"}'
2016-03-11 14:21:21 +00:00
2016-04-18 14:58:06 +00:00
POST /v2/projects/f8094ada-6a80-40c9-a674-ded9f69eeb7b/vms HTTP/1.1
2016-03-11 14:21:21 +00:00
{
2016-04-18 14:49:36 +00:00
"compute_id": "example.com",
2016-03-11 14:21:21 +00:00
"name": "test",
"properties": {
"startup_script": "echo test"
},
"vm_type": "vpcs"
}
HTTP/1.1 201
ACCESS-CONTROL-ALLOW-ORIGIN: *
2016-04-18 14:49:36 +00:00
CONTENT-LENGTH: 305
2016-03-11 14:21:21 +00:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
2016-04-18 14:49:36 +00:00
SERVER: Python/3.5 GNS3/2.0.0dev1
X-ROUTE: /v2/projects/{project_id}/vms
2016-03-11 14:21:21 +00:00
{
2016-04-18 14:49:36 +00:00
"compute_id": "example.com",
"console": 2048,
2016-03-11 14:21:21 +00:00
"console_type": "telnet",
"name": "test",
2016-04-18 14:58:06 +00:00
"project_id": "f8094ada-6a80-40c9-a674-ded9f69eeb7b",
2016-03-11 14:21:21 +00:00
"properties": {
2016-03-11 14:49:28 +00:00
"startup_script": "echo test"
2016-03-11 14:21:21 +00:00
},
2016-04-18 14:58:06 +00:00
"vm_id": "f6c1ed76-dd59-4064-b7b6-7a3f1655d1c4",
2016-03-11 14:21:21 +00:00
"vm_type": "vpcs"
}