oci_vn_monitoring_path_analysi

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

Use this method to initiate a Network Path Analyzer analysis. This method returns an opc-work-request-id, and you can poll the status of the work request until it either fails or succeeds.

If the work request status is successful, use ListWorkRequestResults with the work request ID to ask for the successful analysis results. If the work request status is failed, use ListWorkRequestErrors with the work request ID to ask for the analysis failure information. The information returned from either of these methods can be used to build a final report.

Example Usage

resource "oci_vn_monitoring_path_analysi" "test_path_analysi" {
	#Required
	type = var.path_analysi_type

	#Optional
	cache_control = var.path_analysi_cache_control
	compartment_id = var.compartment_id
	destination_endpoint {
		#Required
		type = var.path_analysi_destination_endpoint_type

		#Optional
		address = var.path_analysi_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
	}
	path_analyzer_test_id = oci_vn_monitoring_path_analyzer_test.test_path_analyzer_test.id
	protocol = var.path_analysi_protocol
	protocol_parameters {
		#Required
		type = var.path_analysi_protocol_parameters_type

		#Optional
		destination_port = var.path_analysi_protocol_parameters_destination_port
		icmp_code = var.path_analysi_protocol_parameters_icmp_code
		icmp_type = var.path_analysi_protocol_parameters_icmp_type
		source_port = var.path_analysi_protocol_parameters_source_port
	}
	query_options {

		#Optional
		is_bi_directional_analysis = var.path_analysi_query_options_is_bi_directional_analysis
	}
	source_endpoint {
		#Required
		type = var.path_analysi_source_endpoint_type

		#Optional
		address = var.path_analysi_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
	}
}

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

Import

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

$ terraform import oci_vn_monitoring_path_analysi.test_path_analysi "id"