UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

85 lines (84 loc) 2.47 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of listener healths * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.clb.getListenerHealths({ * listenerId: "lsn-mjkyvug6pwxs5smt1b9*****", * }); * ``` */ export declare function getListenerHealths(args: GetListenerHealthsArgs, opts?: pulumi.InvokeOptions): Promise<GetListenerHealthsResult>; /** * A collection of arguments for invoking getListenerHealths. */ export interface GetListenerHealthsArgs { /** * The ID of the listener. */ listenerId: string; /** * Whether to return only unhealthy backend servers. Valid values: `true`, `false`. */ onlyUnHealthy?: boolean; /** * File name where to save data source results. */ outputFile?: string; } /** * A collection of values returned by getListenerHealths. */ export interface GetListenerHealthsResult { /** * The health info of backend servers. */ readonly healthInfos: outputs.clb.GetListenerHealthsHealthInfo[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly listenerId: string; readonly onlyUnHealthy?: boolean; readonly outputFile?: string; /** * The total count of backend servers. */ readonly totalCount: number; } /** * Use this data source to query detailed information of listener healths * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const foo = volcengine.clb.getListenerHealths({ * listenerId: "lsn-mjkyvug6pwxs5smt1b9*****", * }); * ``` */ export declare function getListenerHealthsOutput(args: GetListenerHealthsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetListenerHealthsResult>; /** * A collection of arguments for invoking getListenerHealths. */ export interface GetListenerHealthsOutputArgs { /** * The ID of the listener. */ listenerId: pulumi.Input<string>; /** * Whether to return only unhealthy backend servers. Valid values: `true`, `false`. */ onlyUnHealthy?: pulumi.Input<boolean>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; }