You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When using Terraform 0.13 and Netbox version v2.10.3 and using a data "netbox_prefix" resource for an existing prefix terraform plan returns Error: [ERROR] unexpected status code got: 400 expected: 200
When using Terraform 0.13 and Netbox version v2.10.3 and using a data "netbox_prefix" resource for an existing prefix terraform plan returns Error: [ERROR] unexpected status code got: 400 expected: 200
I can curl the URL in the error with the same API token provided to the provider and I get the response I expect.
curl --location --request GET 'https://cloud-engineering-netbox.mydomain.com/api/ipam/prefixes/?prefix=10.89.0.0%2F16'
--header 'Authorization: token XXXXXXXXXXXXXXXXXXXXXXX'
Expected result:
terraform plan populates the data "netbox_prefix" resource
Attached: Trace output from the terraform plan.
terraform-provider-netbox-trace.txt
The text was updated successfully, but these errors were encountered: