» 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:
-
name
- (Required) The name of the vApp container. This can be a name or path. -
datacenter_id
- (Required) The managed object reference ID of the datacenter the vApp container is located in.
» 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.