Learn How We Can Help You Keep Teleworkers Protected During the COVID-19 Crisis

DNS DHCP IPAM

Reply
Highlighted

Get all network thru WAPI

Techie
Posts: 3
373     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

Highlighted

Re: Get all network thru WAPI

Techie
Posts: 11
374     0

Query it with no arguments.

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

Highlighted

Re: Get all network thru WAPI

Techie
Posts: 3
374     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

 

Highlighted

Re: Get all network thru WAPI

Techie
Posts: 3
374     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

Highlighted

Re: Get all network thru WAPI

Techie
Posts: 11
374     0

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

or

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

Highlighted

Re: Get all network thru WAPI

Techie
Posts: 2
374     0

Can you please go to Data Management -> wapi/v2.2.2/network?_max_results=10000" -> Check if you are able to edit this network in question ? If yes, can you check if “Discovery” has been enabled for these network(s) ? Or , do you see a member assigned to those networks ? If either one of the case or both are true, then I believe those networks shouldn’t have been marked as “Managed -> No”.

 

thanks

alexsunny

Showing results for 
Search instead for 
Do you mean 

Recommended for You

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