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
Extensible Attribute for DHCP lease IP
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-19-2019 06:58 AM
1411     0
Hi,
I am trying to extract Extensible Attributes for a number of IPs. Some are fixed host records and other are DHCP leases.
I can export the EAs for fixed host records, using the below.
https://1.1.1.1/wapi/v2.7/record:host?ipv4addr=10.1.1.1&_return_fields%2B=extattrs&_return_as_object=1 { "result": [ { "_ref": "record:host/ZG5zLmhvc3QkLjEuYs9tLmshbnRvci5ueS50Ym5ldG1vbi12cDE:test.local/internal", "extattrs": { "Region": { "inheritance_source": { "_ref": "networkcontainer/ZG5zLm5ldHsvcmtfY29udGFpbmsyJDEwLjAuMC4wLzEwLzA:10.0.0.0/10/default" }, "value": "AMER" } }, "ipv4addrs": [ { "_ref": "record:host_ipv4addr/ZG5zLmhvc3RfYWRkcmVzcyQssS5jb20uY2FudG9yLm55LnRibmV0bW9uLXZwMS4xMC4yMi4yNTQuMTIzLg:10.1.1.1/test.local/internal", "configure_for_dhcp": false, "host": "test.local", "ipv4addr": "10.1.1.1" } ], "name": "test.local", "view": "internal" } ] }
...but cannot get the same for the IP which was added via DHCP.
https://1.1.1.1/wapi/v2.7/record:a?ipv4addr=10.1.1.100&_return_as_object=1&_return_fields%2B=extattrs { "result": [ { "_ref": "record:a/ZG5zLmJpbmRfYSQuMS5sb2NhbC5jYWQsNTUtaWsmLTgxMzA3sDEwLjI5LjkuMTE0:test_dhcp.local/internal", "extattrs": {}, "ipv4addr": "10.1.1.100", "name": "test_dhcp.local", "view": "internal" } ] }
In Infoblox, 10.1.1.100 has the Region EA set.