Who Me Too'd this solution

Re: How to filter with WAPI for "struct" datatypes
New Member
Posts: 0
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'

 

 

View solution in original post

Who Me Too'd this solution