- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Is it possible to do a search for an extensible attribute on all infoblox record types?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2021 02:11 PM
We have extensible attributes applied to Hosts, A records, CNAMEs, and PTRs.
I can query for extensible attributes for each record type but not in one shot. Is this possible?
when using hte allrecords?zone:domain.com&_return_fields%2B=extattrs&*Field1%3A=False&_return_as_object=10
I get that search modifiers are not allowed for field zone. Is this possible or would i have to loop through all record types that have the field and store it in a list? I assume I can do this with Python but is this possible with Bash?
Solved! Go to Solution.
Re: Is it possible to do a search for an extensible attribute on all infoblox record types?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-29-2021 02:21 PM
think I have it but need help wth one part.
I'm able to use the /request call and send two objects
-d [
{
"method:"GET",
"object": "record:a"
},
{
"method:"GET",
"object": "record:host"
}
]
How do I now filter with an extensible attribute?
Re: Is it possible to do a search for an extensible attribute on all infoblox record types?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
11-30-2021 12:56 AM
Hi,
This is how you can use the multiple object body request:
-d [{"method:"GET", "object": "record:a", "args": {"_return_fields+": "extattrs"}, "data":{"*Field1":"False"}}, {"method:"GET", "object": "record:host", "args": {"_return_fields+": "extattrs"}, "data":{"*Field1":"False"}}]
Hope this helps,
Regards,
Krishna
Re: Is it possible to do a search for an extensible attribute on all infoblox record types?
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-02-2021 03:19 PM
This worked like a charm! Thank you!