nutanix / terraform-provider-nutanix

Terraform Nutanix Provider
https://www.terraform.io/docs/providers/nutanix/
Mozilla Public License 2.0
101 stars 112 forks source link

Unable to filter subnet by cluster #635

Closed jlsilv159 closed 1 year ago

jlsilv159 commented 1 year ago

Nutanix Cluster Information

Terraform Version 1.0.8 Nutanix terraform provider 1.9.3

Affected Resource(s)

*data "nutanix_subnet" "subnet" your query returned more than one result. Please use subnet_id argument or use additional filter instead

unable to filter subnet by cluster when building a vm and specifying a subnet name. We have the same subnet names configured on several clusters. query returns all matching subnet names in prism central server. Need a clear example of how to filter results further if this is supported by cluster.

when using data sources: data "nutanix_subnet" "test" { subnet_id = nutanix_subnet.test.id }

data "nutanix_subnet" "test-name" { subnet_name = nutanix_subnet.test.name }

Terraform Configuration Files

# Copy-paste your Terraform configurations here - for large Terraform configs,
# please use a service like Dropbox and share a link to the ZIP file.

Debug Output

Panic Output

References

joeselway commented 7 months ago

I am also having this issue - can you please advise what solution you found to mark as completed?