» vcd_org

Provides a vCloud Director Org data source. An organization can be used to manage catalogs, virtual data centers, and users.

Supported in provider v2.5+

» Example Usage

data "vcd_org" "my-org" {
  name   = "my-org"
}

resource "vcd_org" "my-org-clone" {
  name                 = "my-org-clone"
  full_name            = data.vcd_org.my-org.full_name
  can_publish_catalogs = data.vcd_org.my-org.can_publish_catalogs
  deployed_vm_quota    = data.vcd_org.my-org.deployed_vm_quota
  stored_vm_quota      = data.vcd_org.my-org.stored_vm_quota
  is_enabled           = data.vcd_org.my-org.is_enabled
  delete_force         = "true"
  delete_recursive     = "true"
  vapp_lease {
    maximum_runtime_lease_in_sec          = data.vcd_org.my-org.vapp_lease.0.maximum_runtime_lease_in_sec
    power_off_on_runtime_lease_expiration = data.vcd_org.my-org.vapp_lease.0.power_off_on_runtime_lease_expiration
    maximum_storage_lease_in_sec          = data.vcd_org.my-org.vapp_lease.0.maximum_storage_lease_in_sec
    delete_on_storage_lease_expiration    = data.vcd_org.my-org.vapp_lease.0.delete_on_storage_lease_expiration
  }
  vapp_template_lease {
    maximum_storage_lease_in_sec       = data.vcd_org.my-org.vapp_template_lease.0.maximum_storage_lease_in_sec
    delete_on_storage_lease_expiration = data.vcd_org.my-org.vapp_template_lease.0.delete_on_storage_lease_expiration
  }
}

» Argument Reference

The following arguments are supported:

  • name - (Required) Org name

» Attribute Reference

  • full_name - Org full name
  • is_enabled - True if this organization is enabled (allows login and all other operations).
  • description - Org description.
  • deployed_vm_quota - Maximum number of virtual machines that can be deployed simultaneously by a member of this organization.
  • stored_vm_quota - Maximum number of virtual machines in vApps or vApp templates that can be stored in an undeployed state by a member of this organization.
  • can_publish_catalogs - True if this organization is allowed to share catalogs.
  • delay_after_power_on_seconds - Specifies this organization's default for virtual machine boot delay after power on.
  • vapp_lease - (v2.7+) - Defines lease parameters for vApps created in this organization. See vApp Lease below for details.
  • vapp_template_lease - (v2.7+) - Defines lease parameters for vApp templates created in this organization. See vApp Template Lease below for details.

» vApp Lease

The vapp_lease section contains lease parameters for vApps created in the current organization, as defined below:

» vApp Template Lease

The vapp_template_lease section contains lease parameters for vApp templates created in the current organization, as defined below: