Cookbook / Recipes
Using search modifiers with Query Params
The Infoblox NIOS WAPI supports the following Search Modifiers:
| Modifier | Functionality |
|---|---|
| ! | Negates the condition, or not x |
| : | Makes string matching case insensitive |
| ~ | Regular expression search. Expressions are unanchored |
| < | Less than or equal |
| > | Greater than or equal |
Note
Integers and dates support: !, < and > All other types behave like strings and support: !, ~, and :
This query is an example of a case-insensitive search for all networks which contain the Extensible Attribute or EA of Building with a value of data center. Searches for extensible attributes are sent by prefixing the extensible attribute name with an asterisk (*).
WAPI Inheritance Data Fetching
show dhcp options inheritance example
Regex searches in Query Params
Some object properties allow you to search using regular expressions. The network object for example, allows you to
search using regular expression on the network property. The following is an example of a regular expression search
for all networks in the 172.16.0.0/16 space:
Updating EAs on objects
Using the request Object
The request object allows the control of WAPI calls through a single entry point. The object
supports only the POST method and does not support URI arguments.
The following code uses the request object to issue two (2) DNS dig requests to different Grid
Members: