Are you interested in our Early Access Program (EAP)? This program allows you to preview code, test in your lab and provide feedback prior to General Availability (GA) release of all Infoblox products. If so, please click the link here.

API & Integration, DevOps,NetOps,SecOps

Reply

REST API call for query_fqdn_on_member

Authority
Posts: 6
3017     0

In the Perl API you can use query_fqdn_on_member, but I can't seem to locate this functionality on REST API.

 

Does anyone know if it is there or an RFE request for it to be added?

 

Thanks!

 

Craig

Re: REST API call for query_fqdn_on_member

Adviser
Posts: 181
3018     0

Hi,

 

The function call is available with the grid object in WAPIs. You can invoke it as shown below.

 

curl -k -u admin:infoblox -H 'content-type: application/json' -X POST "https://grid-master/wapi/v2.7/grid/b25lLmNsdXN0ZXIkMA:Infoblox?_function=query_fqdn_on_member" -d '{"fqdn" : "demo.com","member": "nios.test.com"}'

Sample output:
{
    "dig_started": 1541748509,
    "result": "NOERROR",
    "result_text": "\n; <<>> DiG 9.10.2-ECS-M3 <<>> @localhost demo.com ANY -b 127.0.1.0 \n; (2 servers found)\n;; global options: +cmd\n;; Got answer:\n;; ->>HEADER<<- opcode: QUERY, status: NOERROR, id: 28541\n;; flags: qr aa rd; QUERY: 1, ANSWER: 2, AUTHORITY: 0, ADDITIONAL: 1\n;; WARNING: recursion requested but not available\n\n;; OPT PSEUDOSECTION:\n; EDNS: version: 0, flags:; udp: 4096\n;; QUESTION SECTION:\n;demo.com.\t\t\tIN\tANY\n\n;; ANSWER SECTION:\ndemo.com.\t\t28800\tIN\tSOA\tnios.test.com. please_set_email.absolutely.nowhere. 19 10800 3600 2419200 900\ndemo.com.\t\t28800\tIN\tNS\tnios.test.com.\n\n;; Query time: 0 msec\n;; SERVER: 127.0.0.1#53(127.0.0.1)\n;; WHEN: Fri Nov 09 12:58:29 IST 2018\n;; MSG SIZE  rcvd: 132\n\n",
    "source_address": "127.0.1.0"
}

Here are more details on the function call:

image09.PNG

Hope you find this helpful,

Krishna

 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You