Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

GET /range?_return_fields=extattrs returns an empty extattrs object

Techie
Posts: 6
131     0

Hello everyone!

 

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!

 

Request:

 

/wapi/v2.10.5/range?_return_fields=comment,network,network_view,start_addr,end_addr,dhcp_utilization,dhcp_utilization_status,dynamic_hosts,static_hosts,total_hosts,extattrs

Return:


[
    {
        "_ref": "range/ZG5zLmRfdfdfd2UkMTcyLjMxLjY3LjEvMTcyLjMxLjY3LjEyNC8vLzAv:10.31.67.1/10.31.67.124/default",
        "comment": "Template: IP_Phones",
        "dhcp_utilization": 145,
        "dhcp_utilization_status": "NORMAL",
        "dynamic_hosts": 18,
        "end_addr": "10.31.67.124",
        "extattrs": {},
        "network": "10.31.67.0/25",
        "network_view": "default",
        "start_addr": "10.31.67.1",
        "static_hosts": 0,
        "total_hosts": 124
    }
]

Re: GET /range?_return_fields=extattrs returns an empty extattrs object

Superuser
Posts: 30
132     0

Hello,

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".

Shukran

Re: GET /range?_return_fields=extattrs returns an empty extattrs object

Techie
Posts: 6
132     0

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?

Showing results for 
Search instead for 
Did you mean: 

Recommended for You