oci_opsi_host_insight

This resource provides the Host Insight resource in Oracle Cloud Infrastructure Opsi service.

Create a Host Insight resource for a host in Ops Insights. The host will be enabled in Ops Insights. Host metric collection and analysis will be started.

Example Usage

resource "oci_opsi_host_insight" "test_host_insight" {
	#Required
	compartment_id = var.compartment_id
	entity_source = var.host_insight_entity_source
	management_agent_id = oci_management_agent_management_agent.test_management_agent.id

	#Optional
	compute_id = oci_opsi_compute.test_compute.id
	defined_tags = {"foo-namespace.bar-key"= "value"}
	enterprise_manager_bridge_id = oci_opsi_enterprise_manager_bridge.test_enterprise_manager_bridge.id
	enterprise_manager_entity_identifier = var.host_insight_enterprise_manager_entity_identifier
	enterprise_manager_identifier = var.host_insight_enterprise_manager_identifier
	exadata_insight_id = oci_opsi_exadata_insight.test_exadata_insight.id
	freeform_tags = {"bar-key"= "value"}
	management_agent_id = oci_management_agent_management_agent.test_management_agent.id
	status = "DISABLED"
}

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. The resource destruction here is basically a soft delete. User cannot create resource using the same Management agent OCID. If resource is in enabled state during destruction, the resource will be disabled automatically before performing delete operation.

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 Host Insight * update - (Defaults to 20 minutes), when updating the Host Insight * delete - (Defaults to 20 minutes), when destroying the Host Insight

Import

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

$ terraform import oci_opsi_host_insight.test_host_insight "id"