VMware {code} Community
Shocko
Enthusiast
Enthusiast

Query vCentre using a web call

Guys, writing a sort of CMDB to track lifecycle of systems in my org. Looking for a very simply method to query vSphere 6 U3 for the InstanceUID of systems. is there a REST interface or web services call I could make? My app is built on ASP and ASP.NET

Reply
0 Kudos
2 Replies
daphnissov
Immortal
Immortal

It's in the extensiondata portion of a VM. So for PowerShell bindings it would return with something like the following:

$vm = Get-VM -Name "MyVMName"

$vm.extensiondata.config.InstanceUUID

Reply
0 Kudos
Shocko
Enthusiast
Enthusiast

Thanks for the reply but that looks like powerhshell no? I need a C# call to a web services or the like. I know I'm being really lazy here and should read through the APIs but just trying to leverage some forums expertise Smiley Wink

Reply
0 Kudos