Skip to main content

load_balancer_healths

Creates, updates, deletes, gets or lists a load_balancer_healths resource.

Overview​

Nameload_balancer_healths
TypeResource
Idoci.load_balancer.load_balancer_healths

Fields​

The following fields are returned by SELECT queries:

The health status information was retrieved.

NameDatatypeDescription
criticalStateBackendSetNamesarrayA list of backend sets that are currently in the CRITICAL health state. The list identifies each backend set by the friendly name you assigned when you created it. Example: example_backend_set
statusstringThe overall health status of the load balancer. * OK: All backend sets associated with the load balancer return a status of OK. * WARNING: At least one of the backend sets associated with the load balancer returns a status of WARNING, no backend sets return a status of CRITICAL, and the load balancer life cycle state is ACTIVE. * CRITICAL: One or more of the backend sets associated with the load balancer return a status of CRITICAL. * UNKNOWN: If any one of the following conditions is true: * The load balancer life cycle state is not ACTIVE. * No backend sets are defined for the load balancer. * More than half of the backend sets associated with the load balancer return a status of UNKNOWN, none of the backend sets return a status of WARNING or CRITICAL, and the load balancer life cycle state is ACTIVE. * The system could not retrieve metrics for any reason. (OK, WARNING, CRITICAL, UNKNOWN)
totalBackendSetCountintegerThe total number of backend sets associated with this load balancer. Example: 4
unknownStateBackendSetNamesarrayA list of backend sets that are currently in the UNKNOWN health state. The list identifies each backend set by the friendly name you assigned when you created it. Example: example_backend_set2
warningStateBackendSetNamesarrayA list of backend sets that are currently in the WARNING health state. The list identifies each backend set by the friendly name you assigned when you created it. Example: example_backend_set3

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectloadBalancerId, regionopc-request-idGets the health status for the specified load balancer.
listselectcompartmentId, regionopc-request-id, limit, pageLists the summary health statuses for all load balancers in the specified compartment.

Parameters​

Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.

NameDatatypeDescription
compartmentIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the compartment containing the load balancers to return health status information for.
loadBalancerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer to return health status for.
regionstringOCI region identifier (e.g. us-ashburn-1, ap-sydney-1); resolves from OCI_REGION when not supplied in the query. (default: us-ashburn-1, x-stackQL-envVar: OCI_REGION)
limitinteger (int64)For list pagination. The maximum number of results per page, or items to return in a paginated "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 50
opc-request-idstringThe unique Oracle-assigned identifier for the request. If you need to contact Oracle about a particular request, please provide the request ID.
pagestringFor list pagination. The value of the opc-next-page response header from the previous "List" call. For important details about how pagination works, see [List Pagination](/iaas/Content/API/Concepts/usingapi.htm#nine). Example: 3

SELECT examples​

Gets the health status for the specified load balancer.

SELECT
criticalStateBackendSetNames,
status,
totalBackendSetCount,
unknownStateBackendSetNames,
warningStateBackendSetNames
FROM oci.load_balancer.load_balancer_healths
WHERE loadBalancerId = '{{ loadBalancerId }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;