I have been attempting to GET host records specific to a view given a record name. For example I build a GET request for the domain my.zone.com and I get 2 host objects from 2 different views (internal and external).
curl -k -u user:pass -H "Content-Type: application/json" https://10.0.0.1/wapi/v1.4.2/record:host?name=my.zone.com
It appears there is a way to limit a search to a view, but my attempts have not worked. Below is what I believed was the solution, but it still returns both views:
curl -k -u user:pass -H "Content-Type: application/json" https://10.0.0.1/wapi/v1.4.2/record:host?name=my.zone.com&view=internal
Any insight is much appreciated!