Getting VM details like IP address through API


#1

Hi,

I am able to find VM I want through:
/api/vms?expand=resources&attributes=name&filter[]=name=“test_VM”

but in the output I do not see details like:

  • IP addresses,
  • MAC address,
    and other parameters.

Can you advise how I should modify the query to read them all (generally I would like to have same level of detail on VMs as from GUI)?

Is there any good documentation how to specify such queries to get all details / actions possible?

Thank you!


#2

HI

You can insert related attributes to query: attributes=name,ipaddresses

You can use object_walker to investigate attributes of VM object.