Skip to content

Latest commit

 

History

History
48 lines (36 loc) · 1.46 KB

vapp_container.html.markdown

File metadata and controls

48 lines (36 loc) · 1.46 KB
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.

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 return 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 = "dc-01"
}

data "vsphere_vapp_container" "pool" {
  name          = "vapp-container-01"
  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 in which the vApp container is located.

Attribute Reference

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