oci_cloud_bridge_asset

This resource provides the Asset resource in Oracle Cloud Infrastructure Cloud Bridge service.

Creates an asset.

Example Usage

resource "oci_cloud_bridge_asset" "test_asset" {
	#Required
	asset_type = var.asset_asset_type
	compartment_id = var.compartment_id
	external_asset_key = var.asset_external_asset_key
	inventory_id = oci_cloud_bridge_inventory.test_inventory.id
	source_key = var.asset_source_key

	#Optional
	asset_source_ids = var.asset_asset_source_ids
	compute {

		#Optional
		connected_networks = var.asset_compute_connected_networks
		cores_count = var.asset_compute_cores_count
		cpu_model = var.asset_compute_cpu_model
		description = var.asset_compute_description
		disks {

			#Optional
			boot_order = var.asset_compute_disks_boot_order
			location = var.asset_compute_disks_location
			name = var.asset_compute_disks_name
			persistent_mode = var.asset_compute_disks_persistent_mode
			size_in_mbs = var.asset_compute_disks_size_in_mbs
			uuid = var.asset_compute_disks_uuid
			uuid_lun = var.asset_compute_disks_uuid_lun
		}
		disks_count = var.asset_compute_disks_count
		dns_name = var.asset_compute_dns_name
		firmware = var.asset_compute_firmware
		gpu_devices {

			#Optional
			cores_count = var.asset_compute_gpu_devices_cores_count
			description = var.asset_compute_gpu_devices_description
			manufacturer = var.asset_compute_gpu_devices_manufacturer
			memory_in_mbs = var.asset_compute_gpu_devices_memory_in_mbs
			name = var.asset_compute_gpu_devices_name
		}
		gpu_devices_count = var.asset_compute_gpu_devices_count
		guest_state = var.asset_compute_guest_state
		hardware_version = var.asset_compute_hardware_version
		host_name = var.asset_compute_host_name
		is_pmem_enabled = var.asset_compute_is_pmem_enabled
		is_tpm_enabled = var.asset_compute_is_tpm_enabled
		latency_sensitivity = var.asset_compute_latency_sensitivity
		memory_in_mbs = var.asset_compute_memory_in_mbs
		nics {

			#Optional
			ip_addresses = var.asset_compute_nics_ip_addresses
			label = var.asset_compute_nics_label
			mac_address = var.asset_compute_nics_mac_address
			mac_address_type = var.asset_compute_nics_mac_address_type
			network_name = var.asset_compute_nics_network_name
			switch_name = var.asset_compute_nics_switch_name
		}
		nics_count = var.asset_compute_nics_count
		nvdimm_controller {

			#Optional
			bus_number = var.asset_compute_nvdimm_controller_bus_number
			label = var.asset_compute_nvdimm_controller_label
		}
		nvdimms {

			#Optional
			controller_key = var.asset_compute_nvdimms_controller_key
			label = var.asset_compute_nvdimms_label
			unit_number = var.asset_compute_nvdimms_unit_number
		}
		operating_system = var.asset_compute_operating_system
		operating_system_version = var.asset_compute_operating_system_version
		pmem_in_mbs = var.asset_compute_pmem_in_mbs
		power_state = var.asset_compute_power_state
		primary_ip = var.asset_compute_primary_ip
		scsi_controller {

			#Optional
			label = var.asset_compute_scsi_controller_label
			shared_bus = var.asset_compute_scsi_controller_shared_bus
			unit_number = var.asset_compute_scsi_controller_unit_number
		}
		storage_provisioned_in_mbs = var.asset_compute_storage_provisioned_in_mbs
		threads_per_core_count = var.asset_compute_threads_per_core_count
	}
	defined_tags = {"Operations.CostCenter"= "42"}
	display_name = var.asset_display_name
	freeform_tags = {"Department"= "Finance"}
	vm {

		#Optional
		hypervisor_host = var.asset_vm_hypervisor_host
		hypervisor_vendor = var.asset_vm_hypervisor_vendor
		hypervisor_version = var.asset_vm_hypervisor_version
	}
	vmware_vcenter {

		#Optional
		data_center = var.asset_vmware_vcenter_data_center
		vcenter_key = var.asset_vmware_vcenter_vcenter_key
		vcenter_version = var.asset_vmware_vcenter_vcenter_version
	}
	vmware_vm {

		#Optional
		cluster = var.asset_vmware_vm_cluster
		customer_fields = var.asset_vmware_vm_customer_fields
		customer_tags {

			#Optional
			description = var.asset_vmware_vm_customer_tags_description
			name = var.asset_vmware_vm_customer_tags_name
		}
		fault_tolerance_bandwidth = var.asset_vmware_vm_fault_tolerance_bandwidth
		fault_tolerance_secondary_latency = var.asset_vmware_vm_fault_tolerance_secondary_latency
		fault_tolerance_state = var.asset_vmware_vm_fault_tolerance_state
		instance_uuid = var.asset_vmware_vm_instance_uuid
		is_disks_cbt_enabled = var.asset_vmware_vm_is_disks_cbt_enabled
		is_disks_uuid_enabled = var.asset_vmware_vm_is_disks_uuid_enabled
		path = var.asset_vmware_vm_path
		vmware_tools_status = var.asset_vmware_vm_vmware_tools_status
	}
}

Argument Reference

The following arguments are supported:

** 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:

Timeouts

The timeouts block allows you to specify timeouts for certain operations: * create - (Defaults to 20 minutes), when creating the Asset * update - (Defaults to 20 minutes), when updating the Asset * delete - (Defaults to 20 minutes), when destroying the Asset

Import

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

$ terraform import oci_cloud_bridge_asset.test_asset "id"