使用Mule ESB从CSV文件在VMWare ESX中创建虚拟机

时间:2013-08-06 15:36:31

标签: soap vmware mule mule-studio esxi

我需要从包含在CSV文件中的列表中创建ESXi主机上的多个虚拟机,其中包含处理器数量,磁盘空间,RAM等。为了做到这一点,我需要使用它Mule ESB和VMWare API。

我是Mule和Mule Studio的新手,但是我可以让Mule解析CSV(使用来自How to read CSV file and insert data into PostgreSQL using Mule ESB, Mule Studio的信息)并且我有VMware API的WSDL(http://kb.vmware.com/selfservice/microsites/search.do?language=en_US&cmd=displayKC&externalId=2010507)但我不能连接两个。

CSV格式尚未定义,因此任何合适的内容都可以。非常感谢任何帮助。

2 个答案:

答案 0 :(得分:1)

您需要文件入站端点来获取CSV文件,请参阅:http://www.mulesoft.org/documentation/display/current/File+Transport+Reference

还需要一个带有HTTP出站端点的CXF客户端连接到VMWare Web服务,请参阅:http://www.mulesoft.org/documentation/display/current/Consuming+Web+Services+with+CXF

答案 1 :(得分:0)

为什么不尝试免费使用Perl,简单的vSphere SDK, 我们可以从csv文件中提取值并将它们发送到vSphere API。

http://www.vmware.com/support/developer/viperltoolkit/index.html

这里他们给出了如何连接到vsphere,我们可以使用web服务调用来连接到vsphere。所有需要都是打开https端口。

我们可以使用perl在vSphere上左右播放。