REST API to return VM FQDN


Badge +1
Hi Experts,

Noticed that 'vms' REST API returns IP adress only. Is there any REST API to get VM FQDN/hostname?

6 replies

Userlevel 7
Badge +30
What's your use case?
Badge +1
Hello Jon,

In my application we are dealing with FQDN as it will keep constant but there is a possibility that underline IP address may change (e.g. failover).

Regards,
Lokesh
Userlevel 7
Badge +30
Are you trying to build a self service portal on top of Prism? Or what type of application?

Asking as the virtualization layer may not always be aware of the FQDN, and its possible that a VM could be addressed by multiple FQDNs depending on the configuration.
Badge +1
Thanks Jon for the clarification.

Does Nutanix PRISM expose any API to get configured hostname using IP address or VM display name?

Regards,
Lokesh
Userlevel 7
Badge +30
No, not at this time, but we're happy to take feature requests.

Can you tell me more about what your interest is, specifically, in Nutanix? That would help me understand what features and functionality your looking for.

Are you trying to build some applicaiton that talks to Nutanix? Are you working for a customer or just trying to learn the system?
Userlevel 7
Badge +35
Hi @lokesh - wondering how did things work out on this item? still need help?

Reply