[Kimchi-devel] [PATCH V3 1/5] clone template: update API.md

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Mon Feb 17 05:58:02 UTC 2014


From: ShaoHe Feng <shaohef at linux.vnet.ibm.com>

The user may clone a template from an existing template with different
name.
He can update some attributes when he clone a template.
And he can also customize some parts of the template to save the effort to
create a full new template later.

$ curl -u <usre> -H "Content-Type: application/json" \
-H "Accept: application/json" \
http://localhost:80/test-template-4/clone -X POST -d ''

Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
 docs/API.md | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/docs/API.md b/docs/API.md
index 8fafb91..7f5e4d6 100644
--- a/docs/API.md
+++ b/docs/API.md
@@ -280,7 +280,9 @@ A interface represents available network interface on VM.
 
 **Actions (POST):**
 
-* *No actions defined*
+* clone: clone a template from an existing template with different name.
+         It will provide a reasonable default name with "-cloneN" as suffix
+         for the new clone template. The "N" means the number of clone times.
 
 ### Collection: Storage Pools
 
-- 
1.8.4.2




More information about the Kimchi-devel mailing list