Skip to content

Latest commit

 

History

History
165 lines (130 loc) · 3 KB

oci_ocvp_esxi_host.md

File metadata and controls

165 lines (130 loc) · 3 KB

oci_ocvp_esxi_host

back

Index

Terraform

terraform {
  required_providers {
    oci = ">= 4.21.0"
  }
}

top

Example Usage

module "oci_ocvp_esxi_host" {
  source = "./modules/oci/r/oci_ocvp_esxi_host"

  # defined_tags - (optional) is a type of map of string
  defined_tags = {}
  # display_name - (optional) is a type of string
  display_name = null
  # freeform_tags - (optional) is a type of map of string
  freeform_tags = {}
  # sddc_id - (required) is a type of string
  sddc_id = null

  timeouts = [{
    create = null
  }]
}

top

Variables

variable "defined_tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "display_name" {
  description = "(optional)"
  type        = string
  default     = null
}

variable "freeform_tags" {
  description = "(optional)"
  type        = map(string)
  default     = null
}

variable "sddc_id" {
  description = "(required)"
  type        = string
}

variable "timeouts" {
  description = "nested block: NestingSingle, min items: 0, max items: 0"
  type = set(object(
    {
      create = string
    }
  ))
  default = []
}

top

Resource

resource "oci_ocvp_esxi_host" "this" {
  # defined_tags - (optional) is a type of map of string
  defined_tags = var.defined_tags
  # display_name - (optional) is a type of string
  display_name = var.display_name
  # freeform_tags - (optional) is a type of map of string
  freeform_tags = var.freeform_tags
  # sddc_id - (required) is a type of string
  sddc_id = var.sddc_id

  dynamic "timeouts" {
    for_each = var.timeouts
    content {
      # create - (optional) is a type of string
      create = timeouts.value["create"]
    }
  }

}

top

Outputs

output "compartment_id" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.compartment_id
}

output "compute_instance_id" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.compute_instance_id
}

output "defined_tags" {
  description = "returns a map of string"
  value       = oci_ocvp_esxi_host.this.defined_tags
}

output "display_name" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.display_name
}

output "freeform_tags" {
  description = "returns a map of string"
  value       = oci_ocvp_esxi_host.this.freeform_tags
}

output "id" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.id
}

output "state" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.state
}

output "time_created" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.time_created
}

output "time_updated" {
  description = "returns a string"
  value       = oci_ocvp_esxi_host.this.time_updated
}

output "this" {
  value = oci_ocvp_esxi_host.this
}

top