2016-04-18 14:58:06 +00:00
|
|
|
curl -i -X POST 'http://localhost:3080/v2/compute/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/compute/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
|
2016-09-27 15:15:40 +00:00
|
|
|
Content-Length: 0
|
|
|
|
Content-Type: application/octet-stream
|
2016-10-20 08:54:07 +00:00
|
|
|
Date: Thu, 20 Oct 2016 08:52:43 GMT
|
|
|
|
Server: Python/3.5 GNS3/2.0.0dev2
|
2016-09-27 15:15:40 +00:00
|
|
|
X-Route: /v2/compute/qemu/img
|
2016-04-18 14:58:06 +00:00
|
|
|
|