//删除数据中心

http://192.168.150.16:8900/client/api?command=deleteZone&id=c2d4f46a-51af-4806-8378-4b388ed5d0da

 

//更新数据中心

http://192.168.150.16:8900/client/api?command=updateZone&id=c2d4f46a-51af-4806-8378-4b388ed5d0da&name=kvm&dns1=8.8.8.8&dns2=&internaldns1=2.2.2.2&internaldns2=&domain=&localstorageenabled=false

//创建数据中心

http://192.168.150.16:8900/client/api?command=createZone&networktype=Basic&name=test1&dns1=2.2.2.2&internaldns1=3.3.3.3&domainid=08e671b0-25a3-11e3-998e-005056893a8d

//更改数据中心

http://192.168.150.16:8900/client/api?command=updateZone&id=c2d4f46a-51af-4806-8378-4b388ed5d0da&name=kvm&dns1=8.8.8.8&dns2=&internaldns1=4.4.4.4&internaldns2=&domain=&localstorageenabled=false

 

//实例挂载ISO

http://192.168.150.16:8900/client/api?command=attachIso&virtualmachineid=dabd6ca1-577c-4715-a21f-e706b9d44109&id=9d802dd6-baf5-432e-9bba-c78f930485b8

 

//取消挂载

http://192.168.150.16:8900/client/api?command=detachIso&virtualmachineid=dabd6ca1-577c-4715-a21f-e706b9d44109

 

//添加集群

http://192.168.150.16:8900/client/api?command=addCluster&zoneId=7e34afc4-61a4-49ee-8858-70522df42abe&hypervisor=KVM&clustertype=CloudManaged&podId=4ee1d013-12a6-4da2-b1f1-ac347955d2bd&clustername=bbb

 

//删除集群

http://192.168.150.16:8900/client/api?command=deleteCluster&id=c6a83a51-3253-44d5-b873-ec6795ac5eab

 

//查看集群

http://192.168.150.16:8900/client/api?command=listClusters&id=60571fc0-3586-43af-b4e9-329e068568ab

 

//更该主机

http://192.168.150.16:8900/client/api?command=updateHost&id=5db61b29-f37a-4c3b-af46-13e8eb0a5927&hosttags=aaa

 

//添加主机

http://192.168.150.16:8080/client/api?command=addHost

 

//删除主机

http://192.168.150.16:8900/client/api?command=deleteHost&id=5db61b29-f37a-4c3b-af46-13e8eb0a5927&forced=false

 

//查看二级存储

http://192.168.150.16:8900/client/api?command=listHosts&type=SecondaryStorage&id=820e13c3-d4ac-4a78-aa82-bfc56c4fde81

 

//查看主存储

http://192.168.150.16:8900/client/api?command=listStoragePools&id=e767421e-a90e-3ce9-b66e-5d12b2927b46

 

//添加辅助存储

http://192.168.150.16:8900/client/api?command=addSecondaryStorage&zoneId=7e34afc4-61a4-49ee-8858-70522df42abe&url=nfs://192.168.150.99/aa/bb

 

//删除存储存储

http://192.168.150.16:8900/client/api?command=deleteHost&id=52a9e330-aa59-44da-99d9-0e5dcdc6ba84

 

//添加主存储

http://192.168.150.16:8900/client/api?command=createStoragePool&zoneid=7e34afc4-61a4-49ee-8858-70522df42abe&podId=4ee1d013-12a6-4da2-b1f1-ac347955d2bd&clusterid=60571fc0-3586-43af-b4e9-329e068568ab&name=test&url=nfs%3A%2F%2F192.168.150.99/aa/bb

posted on 2013-11-15 17:27  heidsoft  阅读(235)  评论(0编辑  收藏  举报