-
Notifications
You must be signed in to change notification settings - Fork 88
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
searching for records using regex #188
Comments
poke @skudriavtsev |
Hi @fawaf , Please try with command with syntax below, it is working for fetching/searching records. With record zone name: |
i know the api supports this. this issue is for the go sdk/client, not for the api itself. |
Hi @fawaf , In the infoblox-go-client, there is function with GetARecord to which DNSView , recordName and ipv4addr is mandatory to pass as arguments, this function works fine for searching the record |
sure, but we want to search for a fqdn (or substring of an fqdn) and get the result from that instead of having to pass in the exact record name and ip address, which defeats the point of searching right? the |
Hi @fawaf , there is an go client generator which will add the function that supports this searching for records feature which is under review, so once that gets into the go client, then this function will work as per wapi api documentation. |
any updates yet @hemanthKa677 |
Hi @fawaf , I am writing a code for this, just with zone name passed, will return the existing a records belong to the zone, in a day or two. I will create a PR, try to merge it asap. |
Hi @fawaf , here is PR below for this issue , I guess this will solve the get a records with passing just zone name returns list of a records |
the pr isn't supporting the "contains" method that the infoblox api supports afaict, which is what the screenshot in the original issue above shows. it looks like it is just listing all A records specified by a specified zone? basically, i'm still not seeing a way to do substring records searching in the sdk. |
@hemanthKa677 any updates? |
Hi @fawaf , I will try to fix this issue in couple of weeks. |
the sdk does not seem to support searching by name/regex as detailed in the api documenation https://www.infoblox.com/wp-content/uploads/infoblox-deployment-infoblox-rest-api.pdf. is that the case, or am i missing something?
e.g.
curl -k -u admin:infoblox -X GET "https://grid-master/wapi/v2.12/record:a?name~=host1.info.com&_return_as_object=1"
The text was updated successfully, but these errors were encountered: