- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Get all network thru WAPI
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2020 06:25 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-30-2020 02:50 PM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-01-2020 12:33 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 01:09 AM
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
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
10-08-2020 08:53 AM
wapi/v2.2.2/range?_max_results=10000"
or
wapi/v2.2.2/network?_max_results=10000"