oci_health_checks_ping_monitor

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

Creates a ping 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_ping_monitor" "test_ping_monitor" {
	#Required
	compartment_id = var.compartment_id
	display_name = var.ping_monitor_display_name
	interval_in_seconds = var.ping_monitor_interval_in_seconds
	protocol = var.ping_monitor_protocol
	targets = var.ping_monitor_targets

	#Optional
	defined_tags = {"Operations.CostCenter"= "42"}
	freeform_tags = {"Department"= "Finance"}
	is_enabled = var.ping_monitor_is_enabled
	port = var.ping_monitor_port
	timeout_in_seconds = var.ping_monitor_timeout_in_seconds
	vantage_point_names = var.ping_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 Ping Monitor * update - (Defaults to 20 minutes), when updating the Ping Monitor * delete - (Defaults to 20 minutes), when destroying the Ping Monitor

Import

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

$ terraform import oci_health_checks_ping_monitor.test_ping_monitor "id"