01-11-2018 02:40 AM
I managed to use the API to get the _ref for an exisitng network using
_ref looks like this : network/aaaaaaaaaaaaaaaaaaaaaaaaaaaa:188.8.131.52/27/yyy-zz"
How do I use this for additional queries to get the following information :
- to which dhcpmembers is the network linked
- which dhcp ranges are defined for this network
Help is appreciated,
Solved! Go to Solution.
01-16-2018 10:38 AM - edited 01-16-2018 10:40 AM
You will need to pull the network centric and range centric details separately but here are a couple of examples for what you can do:
The above will return the DHCP members associated with the specific network you are referencing.
This next example will return the members via the initial call as you do not need to determine the reference first:
To find the associated ranges you will need to query the ranges and filter on the network like this:
I hope that helps!
01-16-2018 10:41 AM
You need to add _return_fields=<field>
To get the dhcp ranges you would need to execute
01-19-2018 09:28 AM
the '_ref' is really only needed when you want to get back to that specific object (e.g. to modify, or delete it)
And it will be faster to get that object than using a search.
But the refs can change over time, so don't hardcode them anywhere, or be careful when caching search results.