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

45 lines
1.7 KiB
Plaintext
Raw Normal View History

2016-03-14 21:37:07 +02:00
curl -i -X PUT 'http://localhost:8000/v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f3b53fd5-aecd-4fa3-a309-7ff7a95cd1ca' -d '{"console": 2002, "ethernet_adapters": 4, "iourc_content": "test", "l1_keepalives": true, "name": "test", "nvram": 2048, "ram": 512, "serial_adapters": 0, "startup_config_content": "hostname test", "use_default_iou_values": true}'
2015-02-24 12:38:57 +02:00
2016-03-14 21:37:07 +02:00
PUT /v2/hypervisor/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/iou/vms/f3b53fd5-aecd-4fa3-a309-7ff7a95cd1ca HTTP/1.1
2015-02-24 12:38:57 +02:00
{
2016-01-04 18:04:15 +02:00
"console": 2002,
2015-02-24 12:38:57 +02:00
"ethernet_adapters": 4,
"iourc_content": "test",
2015-02-24 12:38:57 +02:00
"l1_keepalives": true,
"name": "test",
"nvram": 2048,
"ram": 512,
"serial_adapters": 0,
2015-06-10 15:35:53 +03:00
"startup_config_content": "hostname test",
"use_default_iou_values": true
2015-02-24 12:38:57 +02:00
}
HTTP/1.1 200
2015-07-09 17:16:43 +03:00
ACCESS-CONTROL-ALLOW-ORIGIN: *
2016-03-04 18:50:17 +02:00
CONTENT-LENGTH: 718
2015-02-24 12:38:57 +02:00
CONTENT-TYPE: application/json
DATE: Thu, 08 Jan 2015 16:09:15 GMT
2016-03-04 18:50:17 +02:00
SERVER: Python/3.5 GNS3/1.5.0dev1
2016-03-07 18:57:12 +02:00
X-ROUTE: /v2/hypervisor/projects/{project_id}/iou/vms/{vm_id}
2015-02-24 12:38:57 +02:00
{
2016-03-04 18:50:17 +02:00
"command_line": "",
2016-01-04 18:04:15 +02:00
"console": 2002,
2015-02-24 12:38:57 +02:00
"ethernet_adapters": 4,
2016-03-14 21:37:07 +02:00
"iourc_path": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmppwv76w68/iourc",
2015-02-24 12:38:57 +02:00
"l1_keepalives": true,
2016-01-04 18:04:15 +02:00
"md5sum": null,
2015-02-24 12:38:57 +02:00
"name": "test",
"nvram": 2048,
2016-01-04 18:04:15 +02:00
"path": "iou.bin",
2015-06-10 15:35:53 +03:00
"private_config": null,
2015-02-24 12:38:57 +02:00
"project_id": "a1e920ca-338a-4e9f-b363-aa607b09dd80",
"ram": 512,
"serial_adapters": 0,
2015-06-10 15:35:53 +03:00
"startup_config": "startup-config.cfg",
"use_default_iou_values": true,
2016-03-14 21:37:07 +02:00
"vm_directory": "/var/folders/3s/r2wbv07n7wg4vrsn874lmxxh0000gn/T/tmphaiimisv/projects/a1e920ca-338a-4e9f-b363-aa607b09dd80/project-files/iou/f3b53fd5-aecd-4fa3-a309-7ff7a95cd1ca",
"vm_id": "f3b53fd5-aecd-4fa3-a309-7ff7a95cd1ca"
2015-02-24 12:38:57 +02:00
}