Hi Nutanix Community,
I'm working on integrating with Nutanix API v4 (/api/vmm/v4.1/ahv/config/vms) for VM discovery and need guidance on the best approach for extracting VM IP addresses.
I see multiple IP fields in the response and I'm not sure which one to prioritize:
nicNetworkInfo.ipv4Info.learnedIpAddressesnetworkInfo.ipv4Info.learnedIpAddressesassignedIpAddresses
and more.
-
Is there a single field that always contains the VM's primary IP address? I'd prefer to check one reliable source instead of multiple fallbacks.
-
What's the difference between
nicNetworkInfovsnetworkInfo- are they duplicates or do they serve different purposes?
Thanks!
