oci_health_checks_http_monitor

This resource provides the Http Monitor resource in Oracle Cloud Infrastructure Health Checks service.

Creates an HTTP monitor. Vantage points will be automatically selected if not specified, and probes will be initiated from each vantage point to each of the targets at the frequency specified by intervalInSeconds.

Example Usage

resource "oci_health_checks_http_monitor" "test_http_monitor" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.http_monitor_display_name
	interval_in_seconds = var.http_monitor_interval_in_seconds
	protocol = var.http_monitor_protocol
	targets = var.http_monitor_targets

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	freeform_tags = {"Department"= "Finance"}
	headers = var.http_monitor_headers
	is_enabled = var.http_monitor_is_enabled
	method = var.http_monitor_method
	path = var.http_monitor_path
	port = var.http_monitor_port
	timeout_in_seconds = var.http_monitor_timeout_in_seconds
	vantage_point_names = var.http_monitor_vantage_point_names
}

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

Import

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

$ terraform import oci_health_checks_http_monitor.test_http_monitor "id"