Comments (12)
poke @skudriavtsev
from infoblox-go-client.
Hi @fawaf , Please try with command with syntax below, it is working for fetching/searching records.
With record fqdn:
curl -k1 -u admin:infoblox -X GET "https://grid-master/wapi/v2.11/record:a?name~=infoblox.test.com&_return_fields=name&_return_as_object=1"
With record zone name:
curl -k1 -u admin:infoblox -X GET "https://grid-master/wapi/v2.11/record:a?name~=test.com&_return_fields=name&_return_as_object=1"
from infoblox-go-client.
Hi @fawaf , Please try with command with syntax below, it is working for fetching/searching records. With record fqdn: curl -k1 -u admin:infoblox -X GET "grid-master/wapi/v2.11/record:a?name~=infoblox.test.com&_return_fields=name&_return_as_object=1"
With record zone name: curl -k1 -u admin:infoblox -X GET "grid-master/wapi/v2.11/record:a?name~=test.com&_return_fields=name&_return_as_object=1"
i know the api supports this. this issue is for the go sdk/client, not for the api itself.
from infoblox-go-client.
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
from infoblox-go-client.
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 ~=
query does exactly that, but the go sdk doesn't seem to support that api call.
from infoblox-go-client.
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.
from infoblox-go-client.
any updates yet @hemanthKa677
from infoblox-go-client.
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.
from infoblox-go-client.
Hi @fawaf , here is PR below for this issue ,
https://github.com/infobloxopen/infoblox-go-client/pull/201
I guess this will solve the get a records with passing just zone name returns list of a records
from infoblox-go-client.
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.
from infoblox-go-client.
@hemanthKa677 any updates?
from infoblox-go-client.
Hi @fawaf , I will try to fix this issue in couple of weeks.
from infoblox-go-client.
Related Issues (20)
- CHANGELOG.md
- Segfault due to missing error check with bad HostConfig settings HOT 1
- Vlan support
- `develop` branch can be removed
- Use option structs instead of arguments HOT 1
- support grid api
- does this client support batch requests? HOT 1
- Add GitHub Action as a CI/CD tool for pull requests
- Kind request for a release HOT 4
- Make SearchHostRecordByAltId method more generic
- Fake client for unit testing or more exported fields HOT 1
- Search All capabilities? HOT 1
- v2 introduced long timeout when fetching A record HOT 1
- Add useful fields for Authoritative Zone resource
- Which func to use to get all networks/cidr? HOT 2
- which API is used to find associated network view for a given dns_view? HOT 3
- Add RecordNS support to the go client
- problem on tls: unsupported protocol version 301' HOT 1
- extra parameters when creating record using nextavailableip function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from infoblox-go-client.