Data Source: oci_network_load_balancer_network_load_balancer_health
This data source provides details about a specific Network Load Balancer Health resource in Oracle Cloud Infrastructure Network Load Balancer service.
Retrieves the health status for the specified network load balancer.
Example Usage
data "oci_network_load_balancer_network_load_balancer_health" "test_network_load_balancer_health" {
#Required
network_load_balancer_id = oci_network_load_balancer_network_load_balancer.test_network_load_balancer.id
}
Argument Reference
The following arguments are supported:
network_load_balancer_id
- (Required) The OCID of the network load balancer to update.
Attributes Reference
The following attributes are exported:
critical_state_backend_set_names
- A list of backend sets that are currently in theCRITICAL
health state. The list identifies each backend set by the user-friendly name you assigned when you created the backend set. Example:example_backend_set
status
- The overall health status of the network load balancer.- OK: All backend sets associated with the network load balancer return a status of
OK
. - WARNING: At least one of the backend sets associated with the network load balancer returns a status of
WARNING
, no backend sets return a status ofCRITICAL
, and the network load balancer life cycle state isACTIVE
. - CRITICAL: One or more of the backend sets associated with the network load balancer return a status of
CRITICAL
. - UNKNOWN: If any one of the following conditions is true:
- The network load balancer life cycle state is not
ACTIVE
. - No backend sets are defined for the network load balancer.
- More than half of the backend sets associated with the network load balancer return a status of
UNKNOWN
, none of the backend sets return a status ofWARNING
orCRITICAL
, and the network load balancer life cycle state isACTIVE
. - The system could not retrieve metrics for any reason.
- OK: All backend sets associated with the network load balancer return a status of
total_backend_set_count
- The total number of backend sets associated with this network load balancer. Example:4
unknown_state_backend_set_names
- A list of backend sets that are currently in theUNKNOWN
health state. The list identifies each backend set by the user-friendly name you assigned when you created the backend set. Example:example_backend_set2
warning_state_backend_set_names
- A list of backend sets that are currently in theWARNING
health state. The list identifies each backend set by the user-friendly name you assigned when you created the backend set. Example:example_backend_set3