Open pradeep17j opened 2 months ago
Hi @pradeep17j 👋 -
I have formatted the issue content. We kindly ask that you do the same for future issues.
Ryan Johnson Distinguished Engineer, VMware by Broadcom
Hi @pradeep17j 👋 -
I've added and linked https://github.com/vmware/terraform-provider-vcf/pull/236 to this issue. This will ba the vcf_host
data source for single hosts.
I may plan to look into a vcf_hosts
data source after this one that is the pluralization based on the added context of this issue. It's a common ask in some providers to support the plural form.
Ryan
Code of Conduct
Description
In a scenario where we get an instance and we need to use Terraform to do a Day-2 operation like domain or cluster creation we will have to go into the setup to get the IDs of the free hosts.
The provider does not have a data source implemented for hosts which is equivalent for API like
GET sddc-manager/v1/hosts
.Use Case(s)
Return list of all hosts and ability to filter based on status.
Potential Configuration
TBD
References
No response