vmware / terraform-provider-vcd

Terraform VMware Cloud Director provider
https://www.terraform.io/docs/providers/vcd/
Mozilla Public License 2.0
147 stars 112 forks source link

`vcd_vapp`resource should expose list of all connected Org networks #1232

Closed Didainius closed 2 months ago

Didainius commented 5 months ago

Discussed in https://github.com/vmware/terraform-provider-vcd/discussions/1227

Originally posted by **AlexDubel** March 21, 2024 Hi, guys, In my organization, I have eight networks and two vApps, some of which are connected to the vApps. I need help getting a list of the networks connected to each vApp. vcd_vapp does not have information about connected networks. To use vcd_vapp_network, I should know the network's name beforehand, as the network name is a required parameter. Please help.

There are cases when it would be useful for vcd_vapp resource and data source to list all connected Org VDC networks. We know that historically there was a trouble where no API endpoint would provide this data conveniently, but that might need additional investigation.

dataclouder commented 2 months ago

Implemented in PR #1235