[Kimchi-devel] [PATCH v4 1/6] CDROM Management: Add storage sub-collection to sub-resource to guest resource

Aline Manera alinefm at linux.vnet.ibm.com
Fri Feb 14 00:03:03 UTC 2014


Reviewed-by: Aline Manera <alinefm at linux.vnet.ibm.com>

On 02/13/2014 04:47 PM, Daniel Barboza wrote:
> From: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
>
> This patch changes API.md with new storage sub-collection/sub-resource
> information.
>
> Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
> Signed-off-by: Rodrigo Trujillo <rodrigo.trujillo at linux.vnet.ibm.com>
>
> Excluding hard drive support from docs/API.md
>
> Signed-off-by: Daniel Henrique Barboza <danielhb at linux.vnet.ibm.com>
> ---
>   docs/API.md | 21 +++++++++++++++++++++
>   1 file changed, 21 insertions(+)
>
> diff --git a/docs/API.md b/docs/API.md
> index 48a293f..c149ac7 100644
> --- a/docs/API.md
> +++ b/docs/API.md
> @@ -115,6 +115,27 @@ Represents a snapshot of the Virtual Machine's primary monitor.
>
>   * **GET**: Redirect to the latest screenshot of a Virtual Machine in PNG format
>
> +
> +### Sub-collection: Virtual Machine storages
> +**URI:** /vms/*:name*/storages
> +* **GET**: Retrieve a summarized list of all storages of specified guest
> +* **POST**: Attach a new storage or virtual drive to specified virtual machine.
> +    * dev: The name of the storage in the vm.
> +    * type: The type of the storage (currently supports  'cdrom' only).
> +    * path: Path of cdrom iso.
> +
> +### Sub-resource: storage
> +**URI:** /vms/*:name*/storages/*:dev*
> +* **GET**: Retrieve storage information
> +    * dev: The name of the storage in the vm.
> +    * type: The type of the storage ('cdrom' only for now).
> +    * path: Path of cdrom iso.
> +* **PUT**: Update storage information
> +    * path: Path of cdrom iso. Can not be blank.
> +* **DELETE**: Remove the storage.
> +
> +
> +
>   ### Collection: Templates
>
>   **URI:** /templates




More information about the Kimchi-devel mailing list