subcategory | layout | page_title | sidebar_current | description |
---|---|---|---|---|
Virtual Machine |
vsphere |
VMware vSphere: vsphere_vapp_container |
docs-vsphere-data-source-resource-pool |
Provides a vSphere vApp container data source.
This can be used to return the general attributes of a vSphere vApp container. |
The vsphere_vapp_container
data source can be used to discover the ID of a
vApp container in vSphere. This is useful to return the ID of a vApp container
that you want to use to create virtual machines in using the
vsphere_virtual_machine
resource.
data "vsphere_datacenter" "datacenter" {
name = "dc-01"
}
data "vsphere_vapp_container" "pool" {
name = "vapp-container-01"
datacenter_id = data.vsphere_datacenter.datacenter.id
}
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 in which the vApp container is located.
The only exported attribute for this data source is id
, which represents the
ID of the vApp container that was looked up.