» oci_health_checks_ping_probe
This resource provides the Ping Probe resource in Oracle Cloud Infrastructure Health Checks service.
Creates an on-demand ping probe. The location response header contains the URL for fetching probe results.
Note: The on-demand probe configuration is not saved.
» Example Usage
resource "oci_health_checks_ping_probe" "test_ping_probe" {
#Required
compartment_id = "${var.compartment_id}"
protocol = "${var.ping_probe_protocol}"
targets = "${var.ping_probe_targets}"
#Optional
port = "${var.ping_probe_port}"
timeout_in_seconds = "${var.ping_probe_timeout_in_seconds}"
vantage_point_names = "${var.ping_probe_vantage_point_names}"
}
» Argument Reference
The following arguments are supported:
-
compartment_id
- (Required) The OCID of the compartment. -
port
- (Optional) The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. -
protocol
- (Required) The protocols for ping probes. -
targets
- (Required) An array of A target hostname or IP address of the probe. -
timeout_in_seconds
- (Optional) The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal tointervalInSeconds
for monitors. -
vantage_point_names
- (Optional) An array of The name of a vantage point from which to execute the probe.
** 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:
-
compartment_id
- The OCID of the compartment. -
id
- The OCID of the resource. -
port
- The port on which to probe endpoints. If unspecified, probes will use the default port of their protocol. -
protocol
- The protocols for ping probes. -
results_url
- A URL for fetching the probe results. -
targets
- An array of A target hostname or IP address of the probe. -
timeout_in_seconds
- The probe timeout in seconds. Valid values: 10, 20, 30, and 60. The probe timeout must be less than or equal tointervalInSeconds
for monitors. -
vantage_point_names
- An array of The name of a vantage point from which to execute the probe.
» Import
PingProbes can be imported using the id
, e.g.
$ terraform import oci_health_checks_ping_probe.test_ping_probe "id"