-
Notifications
You must be signed in to change notification settings - Fork 673
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Importing ibm_network_vlan resource fails with weird error message #1871
Comments
I debugged this a bit more and the problem is that we set the IAAS endpoint like this:
And when calling out to the VLAN endpoint (or the subnet endpoint in this case) the provider does the following:
and the response is just a 200 and a Swagger web page without the JSON content that is expected:
|
The resource "ibm_network_vlans" are targeted to work for Classic infrastructure endpoint ("https://api.softlayer.com/rest/v3") https://origin.eu-fr2.containers.cloud.ibm.com/global/swagger-global-api/ this endpoint is not supported here we don't have API to create Vlans ... |
@hkantare Yes. turns out we did not need to provide another classic endpoint. Thanks! 👍 |
Terraform Version
Affected Resource(s)
Please list the resources as a list, for example:
If this issue appears to affect multiple resources, it may be an issue with Terraform's core, so please mention this.
Terraform Configuration Files
Debug Output
https://gist.github.com/mindjiver/1e5630b5e0c98bb80038c8e3f7277488
Expected Behavior
I expected the resource to be imported into Terraform state
Actual Behavior
An error was printed
Steps to Reproduce
Important Factoids
Don't think so
References
Perhaps stripe/stripe-go#642 ?
The text was updated successfully, but these errors were encountered: