VMware Cloud Community
MattGeorgey
Contributor
Contributor

Any possible way to get VMhost Info using C#

Hi all,


Is there any C# way to get the GET-VMhost commad functionality..?

Thanks

0 Kudos
3 Replies
RvdNieuwendijk
Leadership
Leadership

I'm not a C# programmer. But you should take a look at the VMware vSphere Web Services SDK. There are C# examples in the documentation.

Regards, Robert

Blog: https://rvdnieuwendijk.com/ | Twitter: @rvdnieuwendijk | Author of: https://www.packtpub.com/virtualization-and-cloud/learning-powercli-second-edition
abbie11
Enthusiast
Enthusiast

Hi welcome to vmware community .

I think if you will move this discussion to vmware developer forums may get better output.

Yours, Abbie

Winning!
mattboren
Expert
Expert

Hello, MattGeorgey-

Like Robert said, the Web Services SDK samples should be helpful.  Another way you can get some C# .NET code for, well, most anything you can think of, really, is to use the VMware Project Onyx tool.  Onyx "generates code based on the mouse clicks you make in vSphere", and you can also connect your PowerCLI session to Onyx to get code based on the cmdlets you use.  The tool has several output modes, to include "C# .NET 2.0".

LucD wrote about Onyx in his Taking the new Onyx 2.0 for a spin post, and a recent Communities thread at http://communities.vmware.com/message/1845793#1845793 talks about (among other things) some of the ways to use/connect to Onyx (vSphere client, PowerCLI session).

0 Kudos