Open 123infy opened 7 years ago
Not sure if this issue has been addressed yet. I am having the same problem with the infoblox wapi version being a different version referenced in the provider than my installed wapi version on my Infoblox server and throwing an error. My Infoblox wapi is v2.7.1 Here is my error: Error: Error applying plan: 1 error(s) occurred:
So, the WAPI version is hard-coded upstream in the go-infoblox library: https://github.com/fanatic/go-infoblox/blob/master/client.go#L17
I'm sure fanatic would accept a pull request to make that configurable in some way, and then it could be an optional provider configuration in the terraform provider. One thing I'm not certain about is API compatibility. It would require some testing to see if anything ends up broken.
Another thing is that error message itself doesn't seem to have anything to do with the WAPI version and is instead pointing to protocol.
When you pass in your infoblox server IP/hostname are you also specifying which protocol to use?
I.e. the host in your infoblox provider configuration block should be https://mydomain.com
and not mydomain.com
(or https://10.0.0.1
if you're pointing directly to an IP address).
Jack thanks for responding so quickly. That was the problem. Apparently when I was testing this new Terraform template I left out the https. I am using andrewstucki/terraform-provider-infoblox forked version that is now working.
Seems that configuring the WAPI version was added about a month ago upstream (cf. fanatic/go-infoblox@c29af22)
When I try to create a record in Infoblox using terraform, it shows error : Invalid reference: record:a/wapi/v1.4.1/record:a The version of Infoblox wapi that we use is v2.1. But the version supported is wapi/v1.4.1. When I tried to access the link https://10.26.77.230/wapi/v2.1/record:a via browser, it worked. The result came in the form of XML. Is it possible to convert version from 2.1 to 1.4.1?