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.

NIOS DNS DHCP IPAM

Reply

Get all network thru WAPI

Techie
Posts: 3
2913     0

Hi Team

 

Currently I'm searching how it is possible to get all of the configured DHCP subnets/networks thru WAPI as I would like to check the usage of it.

 

I know a single network usage can be checked thru the following one:
https://<gridmaster>/wapi/v2.2.2/ipv4address?network=<NetworkID/subnet range, like 10.10.10.10/24>&lease_state=FREE

Also I know I have to count with the reservations as well. But I would like to automate it a bit and how it is possible to get all networks what configured there?

 

Regards

CsG

Re: Get all network thru WAPI

Authority
Posts: 9
2914     0

Query it with no arguments.

https://<gridmaster>/wapi/v2.2.2/range and https://<gridmaster>/wapi/v2.2.2/network

Re: Get all network thru WAPI

Techie
Posts: 3
2914     0

Hi

 

Thanks for the reply.

I got the same common error for both of them.
"The remote server returned an error: (400) Bad Request."

 

Regards

 

Re: Get all network thru WAPI

Techie
Posts: 3
2914     0

Hi

 

Thanks for the info, it look sbetter, just i got this one:
{ "Error": "AdmConProtoError: Result set too large (> 1000)",
"code": "Client.Ibap.Proto",
"text": "Result set too large (> 1000)"
}

 

the KB says change the _max_results, but it does not talk about where.

 

Regards

Csaba

Re: Get all network thru WAPI

Authority
Posts: 9
2914     0

wapi/v2.2.2/range?_max_results=10000"

or

wapi/v2.2.2/network?_max_results=10000"

Showing results for 
Search instead for 
Did you mean: 

Recommended for You

Businesses are investing heavily into securing company resources from cyber-attacks form cybercrimin