UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

104 lines (103 loc) 2.96 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Use this data source to query detailed information of alb listener healths * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.alb.getListenerHealths({ * listenerIds: [ * "lsn-xoetdjk3dzwg54ov5ewpam7c", * "lsn-bdcxfof3fy808dv40ofappua", * ], * onlyUnHealthy: true, * projectName: "default", * }); * ``` */ export declare function getListenerHealths(args: GetListenerHealthsArgs, opts?: pulumi.InvokeOptions): Promise<GetListenerHealthsResult>; /** * A collection of arguments for invoking getListenerHealths. */ export interface GetListenerHealthsArgs { /** * A list of Listener IDs. */ listenerIds: string[]; /** * Whether to return only backend servers with abnormal health check status. */ onlyUnHealthy?: boolean; /** * File name where to save data source results. */ outputFile?: string; /** * The project name of the listener. */ projectName?: string; } /** * A collection of values returned by getListenerHealths. */ export interface GetListenerHealthsResult { /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly listenerIds: string[]; /** * The collection of listener health query. */ readonly listeners: outputs.alb.GetListenerHealthsListener[]; readonly onlyUnHealthy?: boolean; readonly outputFile?: string; readonly projectName?: string; /** * The total count of query. */ readonly totalCount: number; } /** * Use this data source to query detailed information of alb listener healths * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as volcengine from "@pulumi/volcengine"; * * const example = volcengine.alb.getListenerHealths({ * listenerIds: [ * "lsn-xoetdjk3dzwg54ov5ewpam7c", * "lsn-bdcxfof3fy808dv40ofappua", * ], * onlyUnHealthy: true, * projectName: "default", * }); * ``` */ export declare function getListenerHealthsOutput(args: GetListenerHealthsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetListenerHealthsResult>; /** * A collection of arguments for invoking getListenerHealths. */ export interface GetListenerHealthsOutputArgs { /** * A list of Listener IDs. */ listenerIds: pulumi.Input<pulumi.Input<string>[]>; /** * Whether to return only backend servers with abnormal health check status. */ onlyUnHealthy?: pulumi.Input<boolean>; /** * File name where to save data source results. */ outputFile?: pulumi.Input<string>; /** * The project name of the listener. */ projectName?: pulumi.Input<string>; }