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

Sheldon shaohef at linux.vnet.ibm.com
Tue Feb 11 05:34:51 UTC 2014


On 02/11/2014 06:46 AM, Rodrigo Trujillo wrote:
> 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>
> ---
>   docs/API.md | 22 ++++++++++++++++++++++
>   1 file changed, 22 insertions(+)
>
> diff --git a/docs/API.md b/docs/API.md
> index 7f0628d..fb5ec17 100644
> --- a/docs/API.md
> +++ b/docs/API.md
> @@ -117,6 +117,28 @@ 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 to specified virtual machine.
> +            Simulate add new cdrom

Simulate add a new cdrom ?

> +    * dev : The name of the storage in the vm.
a space between parameter and ":".
seems different format with others parameters.
> +    * type : The type of the storage (cdrom, disk).
> +    * path : Path of cdrom iso or disk.
> +
> +### 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, disk).
> +    * path : Path of cdrom iso or disk.
> +* **PUT**: Update storage information
> +    * path: Path of cdrom iso or disk.
here no space between parameter and ":"
> +* **DELETE**: Remove the storage. Simulate eject a cdrom
> +
> +
> +
>   ### Collection: Templates
>
>   **URI:** /templates


-- 
Thanks and best regards!

Sheldon Feng(冯少合)<shaohef at linux.vnet.ibm.com>
IBM Linux Technology Center




More information about the Kimchi-devel mailing list