VMware Cloud Community
avjformula
Contributor
Contributor

Solved: REST API Virtual Machine Notes and Custom Properties

Can someone help me find the "Notes" attribute for virtual machines?

Additionally, the Custom Properties would be nice to locate aswell.

I am trying to get VM notes field and custom fields from REST API. I tried using GET /vcenter/vm/{vm}, but it returns no notes field or custom properties.
I've been looking around the API, but can't seem to find it.

I know I can use Get-VM in PowerCLI, but in this case, I am not permitted to run PowerCLI, so I need to use API.

Reply
0 Kudos
1 Reply
avjformula
Contributor
Contributor

I guess this post answers my question.

Rest API list Tags and Custom Attributes/Annotatio... - VMware Technology Network VMTN

Seems custom attributes can't be accessed, so I guess I'll switch to tags instead.

 

Reply
0 Kudos