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

Get Extensible attribute AND limit to a DNS View.

[ Edited ]
Techie
Posts: 2
1044     0

I have a  CURL command that works at the moment to grab the Extensible attribute of a   Diocese, however, I also want to limit that data to a specific DNS view .  We use two, an "internal" and "external" view.

 

This is the curl command:

 

$CURL --tlsv1 --insecure -u "$USERNAME:$PASSWORD" -X GET "https://xxx.xxx.xxx.xxx/wapi/v2.11/zone_auth?_return_fields%2B=extattrs&*Diocese:=$1"

Where $1 is the Diocese name passed by the BASH Script

 

This will return ALL zones that have the matching "Diocese" attribute - I also want to limit this to a DNS view.

I am aware of  view:<viewname> - But I can't work out how to implement that here.

 

Thank you. 

Re: Get Extensible attribute AND limit to a DNS View.

Adviser
Posts: 70
1045     0

Hello AFrodsham,

 

Based on the way you're doing this, here's a minor change to accommodate the use-case in your curl request : 

 

$CURL --tlsv1 --insecure -u "$USERNAME:$PASSWORD" -X GET "https://xxx.xxx.xxx.xxx/wapi/v2.11/zone_auth?view=$view_name&_return_fields%2B=extattrs&*Diocese:=$1"

While, $view_name is where the name of your DNS view should be fed. Hope this helps!

 

Best regards,

Mohammed Alman

Re: Get Extensible attribute AND limit to a DNS View.

Techie
Posts: 2
1045     0

Thanks Mohammed!     

 

So easy when you see it wrote out! Smiley Happy 

Showing results for 
Search instead for 
Did you mean: 

Recommended for You