Articles like these tell me that I should uniquely identify VMs and other objects in vSphere by their InstanceUUID + MoRef ID:
But I can't find a way to get instance UUIDs using the API. The "https://[vSphere hostname]/rest/vcenter/vm/vm-1234" endpoint does not return it.
How can I get the instance UUID from the REST API?
We also have a use case for pulling this information from the REST API - as mentioned in the post above mine, we too use the InstanceUUID as a "serial number" of sorts to uniquely identify VM instances and track them as they move across environments.
Currently we pull this information via other API methods and either insert it directly into databases for consumption, or generate a file for bulk import - this works, but it's a bit clunky. Several of the 3rd-party platforms we integrate with do have native support for REST/JSON data, which I think would be a cleaner option if this information were available.
Is anyone from VMware aware of any plans for expanded support for VM data, specifically InstanceUUID, via REST API? Searching through the forums I've stumbled across this request a few times, but the latest updates are from a couple years ago.