C # code to access VMware vSphere PowerCLI

Are there any C # code examples that access the vSphere API through PowerCLI or otherwise? For test automation, is there a PowerCLI script or C # code calling the vSphere API, the best choice? Please provide documents and examples.

+4
source share
1 answer

Here are C # examples 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 .NET assemblies that come with PowerCLI: http://www.vmware.com/support/developer/windowstoolkit/wintk40/doc/viwin_devg.pdf

In a personal note, I prefer PowerCLI to automate testing. Many things can be accomplished with a single PowerCLI line, and you will never have to open Visual Studio .;)

-1
source

Source: https://habr.com/ru/post/1345786/


All Articles