Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Can I join models in NetMRI API call?
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
07-28-2020 09:12 AM
1358     0
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,
Paco