2 weeks ago
I am tasked with getting MAC address, Vlan, and IP data for devices listed in our NetMRI instance. I find that in order to get this data for any one particular device, it would involve quite a few GET calls. For example, if I want the MAC addresses of all the Interfaces for a particular device (a switch router), which I search by name, I would need to query the Device Model for the DeviceID, then the "Interfaces" model by DeviceID for the InterfaceID, then the "end_host_mac_addresses" model by InterfaceID in order to get the MAC addresses.
Is there any way to join (in the SQL sense) Models in one REST call?
Thank you in advance,