[Kimchi-devel] [PATCH 1/3] UI: add a api to get an storagevolume info

shaohef at linux.vnet.ibm.com shaohef at linux.vnet.ibm.com
Wed Apr 2 14:19:43 UTC 2014


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

Now we have support scsi/iscsi pool in template.

We need to shoe some infomation of the storagevolume of scsi/iscsi pool
in template edit page.

Signed-off-by: ShaoHe Feng <shaohef at linux.vnet.ibm.com>
---
 ui/js/src/kimchi.api.js | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/ui/js/src/kimchi.api.js b/ui/js/src/kimchi.api.js
index 0c5c790..9f722cd 100644
--- a/ui/js/src/kimchi.api.js
+++ b/ui/js/src/kimchi.api.js
@@ -381,6 +381,18 @@ var kimchi = {
         });
     },
 
+    listStorageVolume : function(poolName, volumeName, suc, err) {
+        $.ajax({
+            url : kimchi.url + 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + encodeURIComponent(volumeName),
+            // url : kimchi.url + 'storagepools/' + encodeURIComponent(poolName) + '/storagevolumes/' + volumeName,
+            type : 'GET',
+            contentType : 'application/json',
+            dataType : 'json',
+            success : suc,
+            error : err
+        });
+    },
+
     listIsos : function(suc, err) {
         kimchi.requestJSON({
             url : kimchi.url + 'storagepools/kimchi_isos/storagevolumes',
-- 
1.8.5.3




More information about the Kimchi-devel mailing list