THE GAME HAS CHANGED

Introducing Infoblox Universal DDI ManagementTM

Watch the launch to discover the new era of management for critical network services. Watch Now

API & Integration, DevOps,NetOps,SecOps

Reply

Get Extensible attribute AND limit to a DNS View.

[ Edited ]
New Member
Posts: 2
2683     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.

[ Edited ]
Superuser
Posts: 81
2684     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,

 

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

New Member
Posts: 2
2684     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