Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
Record:Host network argument invalid
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2021 07:26 AM
2659     0
I'm looking to retrieve all the host records in a network (CIDR) and I'm getting an error saying "Unknown argument/field: network".
According to the WAPI documentation, the "network" argument is a search-only field for the record:host object, so I'm not sure what I'm missing.
The syntax is straightforward: https://<gridmaster>/wapi/v2.10.1/record:host?network=1.2.3.4/24
Solved! Go to Solution.
Re: Record:Host network argument invalid
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
04-09-2021 08:04 AM
2660     0
Found the solution - updating URL to latest WAPI version (2.11.2) did the trick:
https://<gridmaster>/wapi/v2.11.2/record:host?network=1.2.3.4/24