oci_vn_monitoring_path_analyzer_test

This resource provides the Path Analyzer Test resource in Oracle Cloud Infrastructure Vn Monitoring service.

Creates a new PathAnalyzerTest resource.

Example Usage

resource "oci_vn_monitoring_path_analyzer_test" "test_path_analyzer_test" {
	#Required
	compartment_id = var.compartment_id
	destination_endpoint {
		#Required
		type = var.path_analyzer_test_destination_endpoint_type

		#Optional
		address = var.path_analyzer_test_destination_endpoint_address
		instance_id = oci_core_instance.test_instance.id
		listener_id = oci_load_balancer_listener.test_listener.id
		load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
		network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
		subnet_id = oci_core_subnet.test_subnet.id
		vlan_id = oci_core_vlan.test_vlan.id
		vnic_id = oci_core_vnic_attachment.test_vnic_attachment.id
	}
	protocol = var.path_analyzer_test_protocol
	source_endpoint {
		#Required
		type = var.path_analyzer_test_source_endpoint_type

		#Optional
		address = var.path_analyzer_test_source_endpoint_address
		instance_id = oci_core_instance.test_instance.id
		listener_id = oci_load_balancer_listener.test_listener.id
		load_balancer_id = oci_load_balancer_load_balancer.test_load_balancer.id
		network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
		subnet_id = oci_core_subnet.test_subnet.id
		vlan_id = oci_core_vlan.test_vlan.id
		vnic_id = oci_core_vnic_attachment.test_vnic_attachment.id
	}

	#Optional
	defined_tags = {"foo-namespace.bar-key"= "value"}
	display_name = var.path_analyzer_test_display_name
	freeform_tags = {"bar-key"= "value"}
	protocol_parameters {
		#Required
		type = var.path_analyzer_test_protocol_parameters_type

		#Optional
		destination_port = var.path_analyzer_test_protocol_parameters_destination_port
		icmp_code = var.path_analyzer_test_protocol_parameters_icmp_code
		icmp_type = var.path_analyzer_test_protocol_parameters_icmp_type
		source_port = var.path_analyzer_test_protocol_parameters_source_port
	}
	query_options {

		#Optional
		is_bi_directional_analysis = var.path_analyzer_test_query_options_is_bi_directional_analysis
	}
}

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

Import

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

$ terraform import oci_vn_monitoring_path_analyzer_test.test_path_analyzer_test "id"