2016-04-18 14:58:06 +00:00
|
|
|
/v2/compute/qemu/img
|
|
|
|
------------------------------------------------------------------------------------------------------------------------------------------
|
|
|
|
|
|
|
|
.. contents::
|
|
|
|
|
|
|
|
POST /v2/compute/qemu/img
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Create a Qemu image
|
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **201**: Image created
|
|
|
|
|
|
|
|
Input
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
|
|
|
<tr><td>adapter_type</td> <td> </td> <td>enum</td> <td>Possible values: ide, lsilogic, buslogic, legacyESX</td> </tr>
|
|
|
|
<tr><td>cluster_size</td> <td> </td> <td>integer</td> <td></td> </tr>
|
|
|
|
<tr><td>format</td> <td>✔</td> <td>enum</td> <td>Possible values: qcow2, qcow, vpc, vdi, vmdk, raw</td> </tr>
|
|
|
|
<tr><td>lazy_refcounts</td> <td> </td> <td>enum</td> <td>Possible values: on, off</td> </tr>
|
|
|
|
<tr><td>path</td> <td>✔</td> <td>string</td> <td>Absolute or relative path of the image</td> </tr>
|
|
|
|
<tr><td>preallocation</td> <td> </td> <td>enum</td> <td>Possible values: off, metadata, falloc, full</td> </tr>
|
|
|
|
<tr><td>qemu_img</td> <td>✔</td> <td>string</td> <td>Path to the qemu-img binary</td> </tr>
|
|
|
|
<tr><td>refcount_bits</td> <td> </td> <td>integer</td> <td></td> </tr>
|
2016-06-04 08:40:39 +00:00
|
|
|
<tr><td>size</td> <td>✔</td> <td>integer</td> <td>Image size in Megabytes</td> </tr>
|
2016-04-18 14:58:06 +00:00
|
|
|
<tr><td>static</td> <td> </td> <td>enum</td> <td>Possible values: on, off</td> </tr>
|
|
|
|
<tr><td>subformat</td> <td> </td> <td>enum</td> <td>Possible values: dynamic, fixed, streamOptimized, twoGbMaxExtentSparse, twoGbMaxExtentFlat, monolithicSparse, monolithicFlat</td> </tr>
|
|
|
|
<tr><td>zeroed_grain</td> <td> </td> <td>enum</td> <td>Possible values: on, off</td> </tr>
|
|
|
|
</table>
|
|
|
|
|
2017-03-21 12:32:04 +00:00
|
|
|
Sample session
|
|
|
|
***************
|
|
|
|
|
|
|
|
|
|
|
|
.. literalinclude:: ../../../examples/compute_post_qemuimg.txt
|
|
|
|
|
2018-08-16 14:31:56 +00:00
|
|
|
|
|
|
|
PUT /v2/compute/qemu/img
|
|
|
|
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
|
|
|
|
Update a Qemu image
|
|
|
|
|
|
|
|
Response status codes
|
|
|
|
**********************
|
|
|
|
- **201**: Image Updated
|
|
|
|
|
|
|
|
Input
|
|
|
|
*******
|
|
|
|
.. raw:: html
|
|
|
|
|
|
|
|
<table>
|
|
|
|
<tr> <th>Name</th> <th>Mandatory</th> <th>Type</th> <th>Description</th> </tr>
|
|
|
|
<tr><td>extend</td> <td> </td> <td>integer</td> <td>Number of Megabytes to extend the image</td> </tr>
|
|
|
|
<tr><td>path</td> <td>✔</td> <td>string</td> <td>Absolute or relative path of the image</td> </tr>
|
|
|
|
<tr><td>qemu_img</td> <td>✔</td> <td>string</td> <td>Path to the qemu-img binary</td> </tr>
|
|
|
|
</table>
|
|
|
|
|