» vsphere_resource_pool

The vsphere_vapp_container data source can be used to discover the ID of a vApp container in vSphere. This is useful to fetch the ID of a vApp container that you want to use to create virtual machines in using the vsphere_virtual_machine resource.

» Example Usage

data "vsphere_datacenter" "datacenter" {
  name = "dc1"
}

data "vsphere_vapp_container" "pool" {
  name          = "vapp-container-1"
  datacenter_id = "${data.vsphere_datacenter.datacenter.id}"
}

» Argument Reference

The following arguments are supported:

» Attribute Reference

Currently, the only exported attribute from this data source is id, which represents the ID of the vApp container that was looked up.