02-23-2018 03:53 AM - edited 02-23-2018 03:55 AM
when i try to remove a fixed address using -X DELETE on the fixedaddress _ref, i get:
illegal object type
command i use:
curl -k -s -X DELETE -H 'content-type: application/json' -u userass "https://wapiurl/v2.3/<fixedaddressref>"
how do i remove a fixed address using the wapi?
02-23-2018 05:15 AM
Be sure to include the full reference, including the IP address and network view. Also, removing the "-s" (for silent) will display rrors so you can see what's going on. You don't have any JSON here, so you don't need to specify JSON content, but it doesn't hurt. Here's a working example:
curl -k -X DELETE -H 'content-type: application/json' -u admin:infoblox https://192.168.1.2/wapi/v2.3/fixedaddress/ZG5zLmZpeGVkX2FkZHJlc3MkMTAuMTAyLjAuNC4wLi4:10.102.0.4/de...