VMware {code} Community
mgsteiner
Contributor
Contributor

Get VM Info with REST-API

Dear all,

I'm starting to use the REST-APIs to get information regarding our VMs and I'm interested to get also the Description/Annotation/Notes of a desired VM.

Does anybody knows how can I query and also update such information using REST-API ?

 

Thanks a lot in advance

Best Regards
Max
0 Kudos
6 Replies
LucD
Leadership
Leadership

How do you intend to make the REST calls?
From which language or application?


Blog: lucd.info  Twitter: @LucD22  Co-author PowerCLI Reference

0 Kudos
mgsteiner
Contributor
Contributor

I'm using Talend to create a job to call the REST-APIs using HTTPS and JSON structure to collect the desired VM info and use it for reporting and ticketing

Best Regards
Max
0 Kudos
harshstar121
Contributor
Contributor

Hi Max,

Which tool you're going to use to fetch VM details? eg. vsphere, vrops, vcloudDirector...

0 Kudos
mgsteiner
Contributor
Contributor

I'm connecting to vsphere using REST-API

Best Regards
Max
0 Kudos
harshstar121
Contributor
Contributor

Hi Max,

Here's the Vsphere Automation API reference.

https://developer.vmware.com/docs/vsphere-automation/latest/

 

mgsteiner
Contributor
Contributor

Thanks for the link, I have it also, but the issue is that when I use the Get VM API, I do not have the Annotation/Notes from the VM , and that is what I'm looking for.

 

At the moment I can list vms, get the details of vms, but not the Annotation/Notes , which is very usefull becuase we are using that field in vCenter to write information about every VM.

Best Regards
Max
0 Kudos