mirror of
https://github.com/GNS3/gns3-server
synced 2024-11-25 01:38:08 +00:00
23 lines
675 B
Plaintext
23 lines
675 B
Plaintext
curl -i -X POST 'http://localhost:8000/v2/hypervisor/qemu/img' -d '{"cluster_size": 64, "format": "qcow2", "lazy_refcounts": "off", "path": "/tmp/hda.qcow2", "preallocation": "metadata", "qemu_img": "/tmp/qemu-img", "refcount_bits": 12, "size": 100}'
|
|
|
|
POST /v2/hypervisor/qemu/img HTTP/1.1
|
|
{
|
|
"cluster_size": 64,
|
|
"format": "qcow2",
|
|
"lazy_refcounts": "off",
|
|
"path": "/tmp/hda.qcow2",
|
|
"preallocation": "metadata",
|
|
"qemu_img": "/tmp/qemu-img",
|
|
"refcount_bits": 12,
|
|
"size": 100
|
|
}
|
|
|
|
|
|
HTTP/1.1 201
|
|
ACCESS-CONTROL-ALLOW-ORIGIN: *
|
|
CONTENT-LENGTH: 0
|
|
DATE: Thu, 08 Jan 2015 16:09:15 GMT
|
|
SERVER: Python/3.5 GNS3/1.5.0dev1
|
|
X-ROUTE: /v2/hypervisor/qemu/img
|
|
|