Reference:
https://github.com/kimchi-project/kimchi/wiki/Todo-1.2
https://github.com/kimchi-project/kimchi/wiki/customize-VM
According to discussion in other thread:
API definition
**URI:** /vms/*:name*/storages
* **GET**: Retrieve all storages attached to the VM
* **POST**: Attatch new storage to specified virtual machine
* dev : The guest device name of the storage
* type: The type of the storage: cdrom, disk
* path: Path of ISO or DISK.
### Sub-resource: storage
**URI:** /vms/*:name*/storages/*:dev*
* **GET**: Retrieve the storage information
* dev: The guest device name of the storage
* path: Path of the storage
* type: Type of the storage
* **PUT**: Update storage information
* name: The name of the storage in the VM
* path: Path of ISO or DISK
* **DELETE**: Remove the storage
User possibilities
* List cdroms (GET - collection)
* Add new cdrom (will be used to attach cd) (POST - collection)
* Lookup information of a cdrom (GET - resource)
* Update parameters of a cdrom (PUT - resource)
* Delete a cdrom (will be used to detach) (DELETE - resource)
- Will not be possible to detach and attach new cd on the same
device. This operation will be done removing and adding new storage
- Eject cd operation will not be provided
Perfomance/Tunning
* Still to be defined