<html>
<head>
<meta http-equiv="content-type" content="text/html; charset=ISO-8859-1">
</head>
<body bgcolor="#FFFFFF" text="#000000">
<br>
Reference:<br>
<a class="moz-txt-link-freetext"
href="https://github.com/kimchi-project/kimchi/wiki/Todo-1.2">https://github.com/kimchi-project/kimchi/wiki/Todo-1.2</a><br>
<a class="moz-txt-link-freetext"
href="https://github.com/kimchi-project/kimchi/wiki/customize-VM">https://github.com/kimchi-project/kimchi/wiki/customize-VM</a><br>
<br>
According to discussion in other thread:<br>
<br>
<u>API</u><u> definition</u><br>
<br>
**URI:** <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>vms<span
class="moz-txt-tag">/</span></i>*:name*/storages <br>
* **GET**: Retrieve all storages attached to the VM<br>
* **POST**: Attatch new storage to specified virtual machine<br>
* dev : The guest device name of the storage<br>
* type: The type of the storage: cdrom, disk<br>
* path: Path of ISO or DISK.<br>
<br>
### Sub-resource: storage<br>
**URI:** <i class="moz-txt-slash"><span class="moz-txt-tag">/</span>vms<span
class="moz-txt-tag">/</span></i>*:name*<i class="moz-txt-slash"><span
class="moz-txt-tag">/</span>storages<span class="moz-txt-tag">/</span></i>*:dev*
<br>
* **GET**: Retrieve the storage information <br>
* dev: The guest device name of the storage<br>
* path: Path of the storage<br>
* type: Type of the storage<br>
* **PUT**: Update storage information<br>
* name: The name of the storage in the VM<br>
* path: Path of ISO or DISK<br>
* **DELETE**: Remove the storage<br>
<br>
<br>
<u>User </u><u>possibilities</u><br>
<br>
* List cdroms (GET - collection)<br>
* Add new cdrom (will be used to attach cd) (POST - collection)<br>
* Lookup information of a cdrom (GET - resource)<br>
* Update parameters of a cdrom (PUT - resource)<br>
* Delete a cdrom (will be used to detach) (DELETE - resource)<br>
<br>
- Will not be possible to detach and attach new cd on the same
device. This operation will be done removing and adding new storage<br>
- Eject cd operation will not be provided<br>
<br>
<br>
<u>Perfomance/Tunning</u><br>
* Still to be defined <br>
<br>
<br>
</body>
</html>