Skip to content
View in the app

A better way to browse. Learn more.

Gear Crushers

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

WAPI (Web API) Sample Code for NIOS

Featured Replies

Sample code showing how to use the WAPI (Web API) for NIOS in various languages. These samples include Java, Python and Javascript.

  • 1 year later...
  • Author

Here is an example of using Infoblox wAPI to get information about an A-Record

$ curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v1.0/record:a -d name~=abc
[
    {
        "_ref": "record:a/ZG5zLmJpbmRfYSQuX2RlZmF1bHQuY29tLmFsbHksYWJjLDE5OC43NC44MS4xMjY:abc.thezah.com/Internal",
        "ipv4addr": "198.74.81.126",
        "name": "abc.thezah.com",
        "view": "Internal"
    },
    {
        "_ref": "record:a/ZG5zLmJpbmRfYSQuX2RlZmF1bHQuY29tLmFsbHksYWJjLXBwLDEwLjU5LjEzLjM:abc-pp.thezah.corp/Internal",
        "ipv4addr": "10.59.13.3",
        "name": "abc-pp.thezah.corp",
        "view": "Internal"
    } 

 

  • Author

Here are some other examples

List all authoritative zones
curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/zone_auth

List all Network Views
curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/zone_auth?view=networkview

doesn’t work
curl -k -u admin:Infoblox -H "Content-Type: application/json" -X POST https://10.47.147.166/wapi/v2.0/zone_auth?view=networkview

List network
curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.2.2/network

Find a network based on comment
curl -k1 -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.2.2/network -d comment~:=TK

curl -k1 -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.2.2/network -d comment~:=TK -d _return_type=xml-pretty

Just from External View
curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/zone_auth?view=External

List all records for a zone
curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/allrecords?zone=thezah.com&view=External
Include additional fields
curl -k -u admin:Infoblox -X GET https://10.47.147.166/wapi/v2.0/allrecords?zone=example.com&view=External&_return_fields=na...


curl -k -u admin:Infoblox -X GET https://10.43.144.205/wapi/v1.0/record:host -d name~=abc.thezah.com


curl -s -k -u admin:Infoblox -H "Content-Type: application/json" -d '{"name": "hostname.domain.com", "ipv4addrs":[{ "ipv4addr": "func:nextavailableip:10.0.0.0/24" }]}' -X POST https://10.47.147.166/wapi/v1.2.1/record:host
 

Create an account or sign in to comment

Important Information

By using this site, you agree to our Terms of Use.

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.