import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * This data source provides details about a specific Backend Health resource in Oracle Cloud Infrastructure Load Balancer service. * * Gets the current health status of the specified backend server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackendHealth = oci.loadbalancer.getBackendHealth({ * backendName: testBackend.name, * backendSetName: testBackendSet.name, * loadBalancerId: testLoadBalancer.id, * }); * ``` */ export declare function getBackendHealth(args: GetBackendHealthArgs, opts?: pulumi.InvokeOptions): Promise; /** * A collection of arguments for invoking getBackendHealth. */ export interface GetBackendHealthArgs { /** * The IP address and port of the backend server to retrieve the health status for. Example: `10.0.0.3:8080` */ backendName: string; /** * The name of the backend set associated with the backend server to retrieve the health status for. Example: `exampleBackendSet` */ backendSetName: string; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved. */ loadBalancerId: string; } /** * A collection of values returned by getBackendHealth. */ export interface GetBackendHealthResult { readonly backendName: string; readonly backendSetName: string; /** * A list of the most recent health check results returned for the specified backend server. */ readonly healthCheckResults: outputs.LoadBalancer.GetBackendHealthHealthCheckResult[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly loadBalancerId: string; /** * The 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. */ readonly status: string; } /** * This data source provides details about a specific Backend Health resource in Oracle Cloud Infrastructure Load Balancer service. * * Gets the current health status of the specified backend server. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as oci from "@pulumi/oci"; * * const testBackendHealth = oci.loadbalancer.getBackendHealth({ * backendName: testBackend.name, * backendSetName: testBackendSet.name, * loadBalancerId: testLoadBalancer.id, * }); * ``` */ export declare function getBackendHealthOutput(args: GetBackendHealthOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output; /** * A collection of arguments for invoking getBackendHealth. */ export interface GetBackendHealthOutputArgs { /** * The IP address and port of the backend server to retrieve the health status for. Example: `10.0.0.3:8080` */ backendName: pulumi.Input; /** * The name of the backend set associated with the backend server to retrieve the health status for. Example: `exampleBackendSet` */ backendSetName: pulumi.Input; /** * The [OCID](https://docs.cloud.oracle.com/iaas/Content/General/Concepts/identifiers.htm) of the load balancer associated with the backend server health status to be retrieved. */ loadBalancerId: pulumi.Input; } //# sourceMappingURL=getBackendHealth.d.ts.map