@volcengine/pulumi
Version:
A Pulumi package for creating and managing volcengine cloud resources.
87 lines (86 loc) • 2.67 kB
TypeScript
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*****",
* });
* ```
*/
/** @deprecated volcengine.clb.ListenerHealths has been deprecated in favor of volcengine.clb.getListenerHealths */
export declare function listenerHealths(args: ListenerHealthsArgs, opts?: pulumi.InvokeOptions): Promise<ListenerHealthsResult>;
/**
* A collection of arguments for invoking ListenerHealths.
*/
export interface ListenerHealthsArgs {
/**
* 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 ListenerHealths.
*/
export interface ListenerHealthsResult {
/**
* The health info of backend servers.
*/
readonly healthInfos: outputs.clb.ListenerHealthsHealthInfo[];
/**
* 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*****",
* });
* ```
*/
/** @deprecated volcengine.clb.ListenerHealths has been deprecated in favor of volcengine.clb.getListenerHealths */
export declare function listenerHealthsOutput(args: ListenerHealthsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<ListenerHealthsResult>;
/**
* A collection of arguments for invoking ListenerHealths.
*/
export interface ListenerHealthsOutputArgs {
/**
* 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>;
}