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
Unable to create a vnic and attach it to the example.
Here is my sample code:
resource"antserver_vnics""antlet1_vnic" {
model ="virtio"
type ="bridge"
source ="br0"#mac-address = "string"
}
The error message is:
Error: expected a response body but response body received was empty for request = 'POST https://batserver.antsle.us/api/antlets/%7Bantlet-name%7D/vnics HTTP/1.1'. Response = '404 Not Found'
on main.tf line 28, in resource "antserver_vnics" "antlet1_vnic":
28: resource "antserver_vnics" "antlet1_vnic" {
The text was updated successfully, but these errors were encountered:
To add more context. It seems that when terraform uses the openapi with the swagger file it has issues with variable names in the URL portion.
Here is the snippet of the output from the openapi executable
2020/12/13 14:04:12 [INFO] resource 'antserver_vnics' successfully registered in the provider (time:4.055ms)
2020/12/13 14:04:12 [DEBUG] GetResourceSchema hit the cache for 'vnics'
2020/12/13 14:04:12 [INFO] data source instance 'antserver_vnics_instance' successfully registered in the provider (time:5.1865ms)
2020/12/13 14:04:12 [DEBUG] registered new property 'api_key' (required=true) into provider schema
2020/12/13 14:04:12 [DEBUG] found duplicate header '' for an operation, ignoring it as it has been registered already
2020/12/13 14:04:12 [DEBUG] found duplicate header 'antlet-name' for an operation, ignoring it as it has been registered already
2020/12/13 14:04:12 [DEBUG] found duplicate header 'TemplateName' for an operation, ignoring it as it has been registered already
Unable to create a vnic and attach it to the example.
Here is my sample code:
The error message is:
The text was updated successfully, but these errors were encountered: