» oci_ocvp_esxi_host

This resource provides the Esxi Host resource in Oracle Cloud Infrastructure Ocvp service.

Adds another ESXi host to an existing SDDC. The attributes of the specified Sddc determine the VMware software and other configuration settings used by the ESXi host.

Use the WorkRequest operations to track the creation of the ESXi host.

» Example Usage

resource "oci_ocvp_esxi_host" "test_esxi_host" {
    #Required
    sddc_id = "${oci_ocvp_sddc.test_sddc.id}"

    #Optional
    defined_tags = {"Operations.CostCenter"= "42"}
    display_name = "${var.esxi_host_display_name}"
    freeform_tags = {"Department"= "Finance"}
}

» Argument Reference

The following arguments are supported:

  • defined_tags - (Optional) (Updatable) Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • display_name - (Optional) (Updatable) A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.

    If this attribute is not specified, the SDDC's instanceDisplayNamePrefix attribute is used to name and incrementally number the ESXi host. For example, if you're creating the fourth ESXi host in the SDDC, and instanceDisplayNamePrefix is MySDDC, the host's display name is MySDDC-4.

  • freeform_tags - (Optional) (Updatable) Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}

  • sddc_id - (Required) The OCID of the SDDC to add the ESXi host to.

** IMPORTANT ** Any change to a property that does not support update will force the destruction and recreation of the resource with the new property values

» Attributes Reference

The following attributes are exported:

  • compartment_id - The OCID of the compartment that contains the SDDC.
  • compute_instance_id - In terms of implementation, an ESXi host is a Compute instance that is configured with the chosen bundle of VMware software. The computeInstanceId is the OCID of that Compute instance.
  • defined_tags - Defined tags for this resource. Each key is predefined and scoped to a namespace. For more information, see Resource Tags. Example: {"Operations.CostCenter": "42"}
  • display_name - A descriptive name for the ESXi host. Does not have to be unique, and it's changeable. Avoid entering confidential information.
  • freeform_tags - Free-form tags for this resource. Each tag is a simple key-value pair with no predefined name, type, or namespace. For more information, see Resource Tags. Example: {"Department": "Finance"}
  • id - The OCID of the ESXi host.
  • sddc_id - The OCID of the SDDC that the ESXi host belongs to.
  • state - The current state of the ESXi host.
  • time_created - The date and time the ESXi host was created, in the format defined by RFC3339. Example: 2016-08-25T21:10:29.600Z
  • time_updated - The date and time the ESXi host was updated, in the format defined by RFC3339.

» Import

EsxiHosts can be imported using the id, e.g.

$ terraform import oci_ocvp_esxi_host.test_esxi_host "id"