Skip to main content
Answer

Prism API v2 - Is there a way to get a VMs actual OS computer name?

  • July 22, 2022
  • 1 reply
  • 570 views

When a virtual machine is created and a name is given, this does not necessarily reflect the operating system’s computer name.  Is there a way via the Prism API v2 to get not only the name as define in Prism but also the name assigned to the OS?

Neither of these return the OS computer name:

/vms

/vms/{uudi}

The Nutanix Guest Tools are installed.

Is it possible via the API v2 (or even via the API v3) to get the actual OS computer name?

Thanks

Gary

Best answer by Gus

Good morning @GarySmith 
Unfortunately doesn’t seem like we can get the OS computer name via API. I can only see the OS name. See screenshot below.

 

This topic has been closed for replies.

1 reply

Forum|alt.badge.img+5
  • Nutanix Employee
  • Answer
  • July 22, 2022

Good morning @GarySmith 
Unfortunately doesn’t seem like we can get the OS computer name via API. I can only see the OS name. See screenshot below.