Skip to main content

backend_healths

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

Overview​

Namebackend_healths
TypeResource
Idoci.load_balancer.backend_healths

Fields​

The following fields are returned by SELECT queries:

The health status information was retrieved.

NameDatatypeDescription
healthCheckResultsarrayA list of the most recent health check results returned for the specified backend server.
statusstringThe general health status of the specified backend server as reported by the primary and standby load balancers. * OK: Both health checks returned OK. * WARNING: One health check returned OK and one did not. * CRITICAL: Neither health check returned OK. * UNKNOWN: One or both health checks returned UNKNOWN, or the system was unable to retrieve metrics at this time. (OK, WARNING, CRITICAL, UNKNOWN)

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
getselectloadBalancerId, backendSetName, backendName, regionopc-request-idGets the current health status of the specified backend server.

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
backendNamestringThe IP address and port of the backend server to retrieve the health status for. Example: 10.0.0.3:8080
backendSetNamestringThe name of the backend set associated with the backend server to retrieve the health status for. Example: example_backend_set
loadBalancerIdstringThe [OCID](/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved.
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)
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.

SELECT examples​

Gets the current health status of the specified backend server.

SELECT
healthCheckResults,
status
FROM oci.load_balancer.backend_healths
WHERE loadBalancerId = '{{ loadBalancerId }}' -- required
AND backendSetName = '{{ backendSetName }}' -- required
AND backendName = '{{ backendName }}' -- required
AND region = '{{ region }}' -- required
AND opc-request-id = '{{ opc-request-id }}'
;