Re: How to filter with WAPI for "struct" datatypes
Options
- Bookmark
- Subscribe
- Subscribe to RSS Feed
09-25-2018 11:49 PM
This widget could not be displayed.
This widget could not be displayed.
Hi,
thanks for your information. As you write, GET doesn´t allow a body. With curl you can append a body to this request, but this is not allowed in the standard and many other API tools sadly don´t allow that type of malformed GET request.
I found a solution with using a other Method that allows a body (PUT, POST) and tell the WAPI that this request is a GET request by attaching the _method=GET string.
curl -k -u admin:infoblox -X PUT https://grid.master/wapi/v2.7/fixedaddress?_method=GET -d '{"ms_server":{"_struct": "msdhcpserver","ipv4addr": "10.10.10.10"}}' -H 'content-type: application/json'