C# code to access VMware vSphere PowerCLI [closed]

…衆ロ難τιáo~ 提交于 2019-12-07 10:48:25

问题


Are there examples of C# code accessing vSphere API through PowerCLI or otherwise? For test automation, is PowerCLI script or C# code calling vSphere API the better choice? Please advise on docs and examples


回答1:


Here are C# samples for the web services API: http://communities.vmware.com/community/developer/codecentral/vsphere_ws_c

And here is the programming guide for using C# with the .NET assemblies that come with PowerCLI: http://www.vmware.com/support/developer/windowstoolkit/wintk40/doc/viwin_devg.pdf

On a personal note, I prefer PowerCLI for doing my test automation. Lots of things can be accomplished with one line of PowerCLI, and you never have to open Visual Studio. ;)



来源:https://stackoverflow.com/questions/5478868/c-sharp-code-to-access-vmware-vsphere-powercli

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!