This data source provides details about a specific Backend Health resource in Oracle Cloud Infrastructure Network Load Balancer service.
Retrieves the current health status of the specified backend server.
data "oci_network_load_balancer_backend_health" "test_backend_health" {
#Required
backend_name = oci_network_load_balancer_backend.test_backend.name
backend_set_name = oci_network_load_balancer_backend_set.test_backend_set.name
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
}
The following arguments are supported:
backend_name
- (Required) The name of the backend server to retrieve health status for. If the backend was created with an explicitly specified name, that name should be used here. If the backend was created without explicitly specifying the name, but was created using ipAddress, this is specified as 10.0.0.3:8080
or ocid1.privateip..oc1.<var><unique_ID></var>:8080
backend_set_name
- (Required) The name of the backend set associated with the backend server for which to retrieve the health status. Example: example_backend_set
network_load_balancer_id
- (Required) The OCID of the network load balancer to update.The following attributes are exported:
health_check_results
- A list of the most recent health check results returned for the specified backend server.
health_check_status
- The result of the most recent health check. timestamp
- The date and time the data was retrieved, in the format defined by RFC3339. Example: 2020-05-01T18:28:11+00:00
status
- The general health status of the specified backend server.
OK
OK
OK
. *UNKNOWN
,