Reply

Get all network thru WAPI

New Member
Posts: 3
7245     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: 11
7246     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

New Member
Posts: 3
7246     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

New Member
Posts: 3
7246     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: 11
7246     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