CS API 测试3
//添加二级存储
http://192.168.150.16:8080/client/api?
command=addSecondaryStorage&
zoneId=7e34afc4-61a4-49ee-8858-70522df42abe&
url=nfs%3A%2F%2F192.168.150.6%2Fopt%2Fprimary&response=json&sessionkey=VW3fC%2FX76%2FbQBRncVXlYRzPD520%3D&_=1381470577601
//列出指定二级存储
http://192.168.150.16:8080/client/api?
command=listHosts&type=SecondaryStorage&
id=487f4157-9540-403b-991d-d3e10bf342ea&response=json&sessionkey=VW3fC%2FX76%2FbQBRncVXlYRzPD520%3D&_=1381470163589
//删除二级存储
http://192.168.150.16:8080/client/api?
command=deleteHost&
id=487f4157-9540-403b-991d-d3e10bf342ea&response=json&sessionkey=VW3fC%2FX76%2FbQBRncVXlYRzPD520%3D&_=1381470217076
//主机进入维护模式
http://192.168.150.16:8080/client/api?command=prepareHostForMaintenance&
id=0cdf20ff-bb7d-4d8e-b3d7-30ff9859e3bb&response=json&sessionkey=VW3fC%2FX76%2FbQBRncVXlYRzPD520%3D&_=1381470399276
//主机取消维护模式
http://192.168.150.16:8080/client/api?command=cancelHostMaintenance&
id=0cdf20ff-bb7d-4d8e-b3d7-30ff9859e3bb&response=json&sessionkey=VW3fC%2FX76%2FbQBRncVXlYRzPD520%3D&_=1381470492626
//注册ISO
http://192.168.150.16:8080/client/api?command=registerIso
&response=json
&sessionkey=2HToAVfPaNLdJSNTVutvxcl8VeA%3D
&name=test
&displayText=test
&url=http%3A%2F%2F192.168.150.3%2Fshare%2Fiso%2FLinux%2Fubuntu%2Fubuntu-12.04.1-server-i386.iso
&zoneid=-1
&isextractable=true
&bootable=true
&osTypeId=0949b536-25a3-11e3-998e-005056893a8
&ispublic=true
&isfeatured=true
&_=1381803104124
//更新iso
http://192.168.150.16:8080/client/api?command=updateIso&response=json&sessionkey=H0vHWgShTt2nHMdu2GjLYkW%2B6O0%3D
&id=4365aca9-8ba3-46da-97e8-01244b04e013
&zoneid=7e34afc4-61a4-49ee-8858-70522df42abe
&name=ubuntu
&displaytext=test&
ostypeid=0949b536-25a3-11e3-998e-005056893a8d
&_=1381805482738
//下载iso
http://192.168.150.16:8080/client/api?command=extractIso
&mode=HTTP_DOWNLOAD
&id=4365aca9-8ba3-46da-97e8-01244b04e013
&zoneid=7e34afc4-61a4-49ee-8858-70522df42abe
&response=json&sessionkey=H0vHWgShTt2nHMdu2GjLYkW%2B6O0%3D&_=1381805592434
//删除iso
http://192.168.150.16:8080/client/api?command=deleteIso
&id=4365aca9-8ba3-46da-97e8-01244b04e013
&zoneid=7e34afc4-61a4-49ee-8858-70522df42abe
&response=json
&sessionkey=H0vHWgShTt2nHMdu2GjLYkW%2B6O0%3D
&_=1381805966527
//列出指定iso
http://192.168.150.16:8080/client/api?command=listIsos
&isofilter=self
&id=d3c9fd31-f5f4-4101-98dd-05fa69aed7c9
&zoneid=7e34afc4-61a4-49ee-8858-70522df42abe
&response=json&sessionkey=H0vHWgShTt2nHMdu2GjLYkW%2B6O0%3D&_=1381807756063
//列出操作系统类型
http://192.168.150.16:8080/client/api?command=listOsTypes
//注册iso
http://192.168.150.16:8080/client/api?command=attachIso
&virtualmachineid=eeb11189-a7d1-4b8c-a375-5433eb438ac5
&id=55823d67-8e54-453c-9561-f78ec1448f04
&response=json&sessionkey=S8jv2008m0ZhGiL1w6jbCLvc5X8%3D&_=1382076564067
//取消附加iso
http://192.168.150.16:8080/client/api?command=detachIso
&virtualmachineid=eeb11189-a7d1-4b8c-a375-5433eb438ac5
&response=json&sessionkey=S8jv2008m0ZhGiL1w6jbCLvc5X8%3D&_=1382078322710
//启用zone
http://192.168.150.16:8080/client/api?command=updateZone
&id=9075313f-e52f-47aa-a433-07038e2ef9a3
&allocationstate=Enabled
&response=json&sessionkey=PPf5zxaP2e8BPb%2FkQ5a3iX3VDZU%3D&_=1382082019067
//启用pod
http://192.168.150.16:8080/client/api?command=updatePod
&id=4849da8f-d7fb-4794-8fa5-732f28afc5a2
&allocationstate=Enabled
&response=json&sessionkey=PPf5zxaP2e8BPb%2FkQ5a3iX3VDZU%3D&_=1382085222213
//禁用Pod
http://192.168.150.16:8080/client/api?command=updatePod
&id=4849da8f-d7fb-4794-8fa5-732f28afc5a2
&allocationstate=Disabled
&response=json&sessionkey=PPf5zxaP2e8BPb%2FkQ5a3iX3VDZU%3D&_=1382085539242
//列出zone对应的网络方案
http://192.168.150.16:8080/client/api?command=listNetworkOfferings
&state=Enabled
&guestiptype=Shared
&response=json
&sessionkey=F8HTTXQ2%2FVFMCrg19G0WND%2BCp%2FI%3D&_=1382340940724
//主机启动维护模式 异步
http://192.168.150.16:8080/client/api?
command=prepareHostForMaintenance
&id=c40176e9-de2f-4056-a780-80feec3b43f9
&response=json
&sessionkey=a0WqYp7MMTvAwPoUAZxxNhwtDCU%3D&_=1382348836551
http://192.168.150.16:8080/client/api?command=queryAsyncJobResult
&jobId=ca8e1989-bae8-4bfc-bf2a-07b9a1d9391a
&response=json&sessionkey=Ntwq%2BcNj0XaW214JfJnF%2BuV2GyQ%3D&_=1382424626247
//取消维护模式
http://192.168.150.16:8080/client/api?command=cancelHostMaintenance
&id=0cdf20ff-bb7d-4d8e-b3d7-30ff9859e3bb
&response=json&sessionkey=Ntwq%2BcNj0XaW214JfJnF%2BuV2GyQ%3D&_=1382424715110
http://192.168.150.16:8080/client/api?command=queryAsyncJobResult
&jobId=4ab9a99d-0ecf-4512-88c1-22a0fa2a8f00
&response=json&sessionkey=Ntwq%2BcNj0XaW214JfJnF%2BuV2GyQ%3D&_=1382424718179
192.168.150.4
//删除主机
http://192.168.150.16:8080/client/api?command=deleteHost
&id=0cdf20ff-bb7d-4d8e-b3d7-30ff9859e3bb
&forced=false
&response=json
&sessionkey=Ntwq%2BcNj0XaW214JfJnF%2BuV2GyQ%3D&_=1382424989479
http://192.168.150.16:8080/client/api?command=addHost
&response=json&sessionkey=Ntwq%2BcNj0XaW214JfJnF%2BuV2GyQ%3D
------------------------------------------------------------------------------------------------------------------------
//删除集群
http://192.168.150.16:8080/client/api?command=deleteCluster
&id=25993bf0-8697-4731-9729-4434bb5ea831
&response=json&sessionkey=a0WqYp7MMTvAwPoUAZxxNhwtDCU%3D&_=1382348942855
http://192.168.150.16:8080/client/api?command=deleteHost&
id=c40176e9-de2f-4056-a780-80feec3b43f9
&forced=false
&response=json&sessionkey=a0WqYp7MMTvAwPoUAZxxNhwtDCU%3D&_=1382349038168
//删除集群
http://192.168.150.16:8080/client/api?command=deleteCluster
&id=82cc4042-151d-460b-b528-22c2ae7fc347
&response=json&sessionkey=a0WqYp7MMTvAwPoUAZxxNhwtDCU%3D&_=1382349105894
//添加集群
http://192.168.150.16:8080/client/api?command=addCluster
&zoneId=7e34afc4-61a4-49ee-8858-70522df42abe
&hypervisor=VMware
&clustertype=ExternalManaged
&podId=4ee1d013-12a6-4da2-b1f1-ac347955d2bd
&username=root
&password=vmware
&url=http%3A%2F%2F192.168.150.21%2Fsjcloud%2Fcloud&clustername=192.168.150.21%2Fsjcloud%2Fcloud&response=json&sessionkey=7vTCT8zy9y31tdbf0A7%2BCYIYmQ4%3D&_=1382434977516
CS API 测试3的更多相关文章
- cs api测试
更新磁盘方案 http://192.168.150.16:8900/client/api?command=updateDiskOffering&id=199e3be4-2af1-47a3-9f ...
- CS API 测试2
//删除数据中心 http://192.168.150.16:8900/client/api?command=deleteZone&id=c2d4f46a-51af-4806-8378-4b3 ...
- asp.net web api 测试帮助页面建立并测试
asp.net web api 测试帮助页面建立并测试 现在使用WEB API来开发,越来越流行. 在开发过程中的测试调试,可以使用Fiddler等工具来帮助测试外,还有: 在asp.net 中有种方 ...
- API测试
API(Application Programming Interface)包含: 单元测试(Unit Testing).模块测试(Module Testing).组件测试(Component Tes ...
- 使用python+pychram进行API测试(接口测试)初级STEP 1
花了一天时间安装了解了下最基本的python+pychram进行API测试,下面这个可以指导自己以后入门:基本的开发级别还需要学习 1.python下载地址:https://www.python.or ...
- Chrome Restful Api 测试工具 Postman-REST-Client离线安装包下载,Axure RP Extension for Chrome离线版下载
[Postman for Chrome 离线下载] Postman-REST-Client离线安装包,可直接在Chrome浏览器本地安装使用,可模拟各种http请求,Restful Api测试, CS ...
- 接口API测试和返回值JSON解析的插件
火狐插件1. HttpRequest作用:接口API测试例子:http://192.168.10.61:8080/ZHCS/user/loginApp.do?phone=admin&pwd ...
- Aliexpress API 测试工具
Aliexpress API 测试工具 上回简单说了 Aliexpress API 的认证流程, 这回在奉送一个小工具, API 测试工具. 点我下载 做这一行,和做程序员的生活完全不搭调, 格格不入 ...
- API测试自动化——基于CDIF的SOA基本功能(实例篇)
今天我们通过一些实例来体验一下API的自动化测试,感受一下基于CDIF的SOA的一些基本功能. 传统的测试工具在测试一个API的时候,必须手动填写这个API所需要接收的所有信息,比如一个查询航班动态的 ...
随机推荐
- 什么是spark(五)Spark SQL
Spark SQL Spark SQL主要分为两部分,一部分是Spark Sql在scala中直接,使用作为执行层面上的应用,本质上就是生成DAG的另外一种形式:其发生试下Driver中生成: ...
- vc中edit控件使用总结
通过类向导可以生成两种类成员变量,一种是cstring类型,一种是cedit类型.在程序中使用时如果只是简单的获取 edit控件内容,或设置简单的内容建议使用cstring类型成员变量.示例:CStr ...
- WebStorm ES6 语法支持设置
ECMAScript 6是JavaScript语言的下一代标准,已经在2015年6月正式发布了.Mozilla公司将在这个标准的基础上,推出JavaScript 2.0.ES6的目标,是使得JavaS ...
- 【POJ】2229 Sumsets(递推)
Sumsets Time Limit: 2000MS Memory Limit: 200000K Total Submissions: 20315 Accepted: 7930 Descrip ...
- Java:类与继承(隐藏和覆盖的问题)
盒子先生金金 Java:类与继承(隐藏和覆盖的问题) Java:类与继承 Java:类与继承 对于面向对象的程序设计语言来说,类毫无疑问是其最重要的基础.抽象.封装.继承.多态这四大特性都离不 ...
- android:修改PagerTabStrip中的背景颜色,标题字体的样式、颜色和图标以及指示条的颜色
1.修改PagerTabStrip中的背景颜色 我们在布局中直接设置background属性即可: <android.support.v4.view.ViewPager android:id=& ...
- Oracle回收站使用全攻略
摘要:回收站(Recycle Bin)从原理上来说就是一个数据字典表,放置用户删除(drop)掉的数据库对象信息.用户进行删除操作的对象并没有被数据库删除,仍然会占用空间.除非是由于用户手工进行Pur ...
- DBA_2PC_PENDING (转)
DBA_2PC_PENDINGOracle会自动处理分布事务,保证分布事务的一致性,所有站点全部提交或全部回滚.一般情况下,处理过程在很短的时间内完成,根本无法察觉到.但是,如果在commit或rol ...
- RSA_JS_PHP加密解密
root@DESKTOP-I4OIMJC /cygdrive/e/html/RSA_JS_PHP/openssl/bin # ./openssl.exe OpenSSL> genrsa -out ...
- Linux HDD information (SATA/SCSI/SAS/SSD)
举例一: [reistlin@reistlin.com ~]$ cat /proc/scsi/scsi | grep Model Vendor: ATA Model: OCZ-VERTEX2 3.5 ...