Giter Club home page Giter Club logo

Comments (12)

fawaf avatar fawaf commented on July 28, 2024

poke @skudriavtsev

from infoblox-go-client.

hemanthKa677 avatar hemanthKa677 commented on July 28, 2024

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.

fawaf avatar fawaf commented on July 28, 2024

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.

hemanthKa677 avatar hemanthKa677 commented on July 28, 2024

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.

fawaf avatar fawaf commented on July 28, 2024

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.

hemanthKa677 avatar hemanthKa677 commented on July 28, 2024

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.

fawaf avatar fawaf commented on July 28, 2024

any updates yet @hemanthKa677

from infoblox-go-client.

hemanthKa677 avatar hemanthKa677 commented on July 28, 2024

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.

hemanthKa677 avatar hemanthKa677 commented on July 28, 2024

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.

fawaf avatar fawaf commented on July 28, 2024

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.

fawaf avatar fawaf commented on July 28, 2024

@hemanthKa677 any updates?

from infoblox-go-client.

hemanthKa677 avatar hemanthKa677 commented on July 28, 2024

Hi @fawaf , I will try to fix this issue in couple of weeks.

from infoblox-go-client.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.