[Kimchi-devel] [PATCHv4 1/7] Guest disks: Update doc to support manage guest disks
lvroyce at linux.vnet.ibm.com
lvroyce at linux.vnet.ibm.com
Mon Apr 28 10:20:26 UTC 2014
From: Royce Lv <lvroyce at linux.vnet.ibm.com>
Update API.md to support manage guest disks
Signed-off-by: Royce Lv <lvroyce at linux.vnet.ibm.com>
---
docs/API.md | 12 ++++++++----
1 file changed, 8 insertions(+), 4 deletions(-)
diff --git a/docs/API.md b/docs/API.md
index 122d8b9..2e2e275 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -138,17 +138,21 @@ Represents a snapshot of the Virtual Machine's primary monitor.
* **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).
+ * type: The type of the storage (currently support 'cdrom' and 'disk').
* path: Path of cdrom iso.
+ * pool: Storage pool which disk image file locate in.
+ * vol: Storage volume name of disk image.
+ * bus: Target bus type for disk to attach.
### 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.
+ * type: The type of the storage (currently support 'cdrom' and 'disk').
+ * path: Path of cdrom iso or disk image file.
+ * bus: Bus type of disk attached.
* **PUT**: Update storage information
- * path: Path of cdrom iso. Can not be blank.
+ * path: Path of cdrom iso. Can not be blank. Now just support cdrom type.
* **DELETE**: Remove the storage.
--
1.8.3.2
More information about the Kimchi-devel
mailing list