VMware Networking Community
amike28
Contributor
Contributor

REST API: Enumerate IP address for Virtual Machine

Does anyone know if there is a way to enumerate the IP address of a virtual machine using the REST API?

If the virtual machine is defined as a member in a security group, I can use this:

GET https://NSX-Manager-IP-Address/api/2.0/services/securitygroup/lookup/virtualmachine

There doesn't seem to be anything available to do this for the virtual machine itself.

Reply
0 Kudos
2 Replies
ocecil
Enthusiast
Enthusiast

Hey Amike, could you elaborate on exactly what you are trying to do? Are you simply trying to query for specific VM using REST API or are you looking for script that will list the IP of every VM in the environment?

Reply
0 Kudos
RaymundoEC
VMware Employee
VMware Employee

Hi there,

something like list of VM's from controllers perhaps?

regards

+vRay
Reply
0 Kudos