11-17-2022 11:38 AM
I'm making an API GET request against the /range object, specifying extattrs in the _return_fields parameter, but get an empty extattrs object back. I have verified that extensible attributes exist and I can see them through the GUI.
Any idea what I am doing wrong? Thank you!
"comment": "Template: IP_Phones",
Solved! Go to Solution.
11-18-2022 06:16 AM
The API call looks good and should return the extensible attributes if any.
If the range EA is inherited form the network, make sure the Inheritance State is set to "inherited" or "overridden" and not "Not Inherited".
11-18-2022 06:42 AM
Thank you for your response. When I look in the GUI, I see the Extensible Attributes on these objects set with an Inheritance State of "Disabled" and "Required" set to "Yes".
So it appears these attributes were specifically set on this object. Shouldn't that even be more reason for these attributes to be returned?
12-07-2022 03:46 AM
Just wanted to post a follow-up.
I could never get the extattrs to work on the /range object, but I was able to retrieve these via the /network object. Unfortunately, the /network object does not know about the DHCP properties, like start_addr, end_addr, dhcp_utilization etc.
So best I could come up with is by retrieving all /range objects and all /network objects, and essentially enriching the /range result set with data from /network for those DHCP ranges. Not ideal, but probably the most efficient way to do this considering this issue.
If anyone has any better recommendations, I'd still be very interested in hearing them.