VMware Cloud Community
Linfosys
Contributor
Contributor

vCenter - API get Annotation

Hello,

Does someone know if we can get the annotation from a vm with the API in vcenter ?

We tried: https://vcenter/rest/vcenter/vm and https://vcenter/rest/vcenter/vm/{id of the vm}

But we are unable to find the annotations.

We are using vcenter 6.7, in vcenter 6.0 we used the vmware.vim for this info with vb.net.

Now we want to use php with the rest API.

Within the Annotation/notes is our Veeam report.

This way we check if al the vm's are in back-up.

Because you can make the mistake in veeam to create a job and select the wrong vm.

Reply
0 Kudos
1 Reply
sjesse
Leadership
Leadership

I don't think so

Rest API list Tags and Custom Attributes/Annotations

I was looking at this recently because I would like to retrieve these and possibly set them in our inventory database we are building.

Reply
0 Kudos