UNPKG

@volcengine/pulumi

Version:

A Pulumi package for creating and managing volcengine cloud resources.

106 lines (105 loc) 3.15 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", * }); * ``` */ /** @deprecated volcengine.alb.ListenerHealths has been deprecated in favor of volcengine.alb.getListenerHealths */ export declare function listenerHealths(args: ListenerHealthsArgs, opts?: pulumi.InvokeOptions): Promise<ListenerHealthsResult>; /** * A collection of arguments for invoking ListenerHealths. */ export interface ListenerHealthsArgs { /** * 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 ListenerHealths. */ export interface ListenerHealthsResult { /** * 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.ListenerHealthsListener[]; 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", * }); * ``` */ /** @deprecated volcengine.alb.ListenerHealths has been deprecated in favor of volcengine.alb.getListenerHealths */ export declare function listenerHealthsOutput(args: ListenerHealthsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ListenerHealthsResult>; /** * A collection of arguments for invoking ListenerHealths. */ export interface ListenerHealthsOutputArgs { /** * 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>; }