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所需要接收的所有信息,比如一个查询航班动态的 ...
随机推荐
- python+anaconda+pycharm工具包安装
更新额外包 $ conda update conda 更新pip python -m pip install --upgrade pip 更新所有 conda update --all 安装ffmpe ...
- 安装系统出现Winload.exe错误0xc000000e解决方法
有的用户在安装Win7/Win8/Win10操作系统后,重启时出现Windows 启动管理器错误,无法加载所选项,因为应用程序丢失或损坏的的故障,错误代码:0xc000000e,这是由于引导文件没有正 ...
- 3.JMeter添加集合点
1.JMeter的集合点是通过添加定时器来完成的,在做性能测试时,真正的并发是不可能的,为了更真实的模拟并发场景,因此在需要压测的地方设置集合点,即可一起操作发送请求. 2.JMeter添加定时器,右 ...
- openresty+lua做接口调用权限限制
说明:openresty可以理解为一个服务器它将nginx的核心包含了过来,并结合lua脚本语言实现一些对性能要求高的功能,该篇文章介绍了使用openresty 1.purview.lua --调用j ...
- win7 + python2.7 安装scipy
问题: 直接pip install scipy将不能正确安装,缺少文件 方法: 下载 "scipy‑0.19.0‑cp27‑cp27m‑win_amd64.whl"[90多M] ...
- 阻塞队列之一:BlockingQueue汇总
一.阻塞队列介绍 BlockingQueue 通常用于一个线程生产对象,而另外一个线程消费这些对象的场景.下图是对这个原理的阐述: 一个线程往里边放,另外一个线程从里边取的一个 BlockingQue ...
- Codeforces 982C(dfs+思维)
C. Cut 'em all! time limit per test 1 second memory limit per test 256 megabytes input standard inpu ...
- 杂项-DB:内存数据库
ylbtech-杂项-DB:内存数据库 内存数据库,顾名思义就是将数据放在内存中直接操作的数据库.相对于磁盘,内存的数据读写速度要高出几个数量级,将数据保存在内存中相比从磁盘上访问能够极大地提高应用的 ...
- thinkphp如果表名有下划线需要用Model
模型命名规范 ThinkPHP 对数据库的表名和模型类的命名遵循一定的规范.首先数据库的表名和字段全部采用小写形式,模型类的命名规则是除去表前缀的数据表名称,并且首字母大写,然后加上模型类的后缀定义. ...
- 第6章Zabbix分布式监控
Zabbix是一个分布式的监控系统.分布式监控适合跨机房.跨地域的网络监控.从多个Proxy收集数据,而每个Proxy可以采集多个设备的数据,从而轻松地构建分布式监控系统. ZabbixProxy可以 ...