UNPKG

@lbrlabs/pulumi-scaleway

Version:

A Pulumi package for creating and managing scaleway cloud resources.

95 lines (94 loc) 2.65 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about multiple Load Balancer Backends. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byLBID = scaleway.getLbBackends({ * lbId: scaleway_lb.lb01.id, * }); * const byLBIDAndName = scaleway.getLbBackends({ * lbId: scaleway_lb.lb01.id, * name: "tf-backend-datasource", * }); * ``` */ export declare function getLbBackends(args: GetLbBackendsArgs, opts?: pulumi.InvokeOptions): Promise<GetLbBackendsResult>; /** * A collection of arguments for invoking getLbBackends. */ export interface GetLbBackendsArgs { /** * The load-balancer ID this backend is attached to. backends with a LB ID like it are listed. */ lbId: string; /** * The backend name used as filter. Backends with a name like it are listed. */ name?: string; projectId?: string; /** * `zone`) The zone in which backends exist. */ zone?: string; } /** * A collection of values returned by getLbBackends. */ export interface GetLbBackendsResult { /** * List of found backends */ readonly backends: outputs.GetLbBackendsBackend[]; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly lbId: string; readonly name?: string; readonly organizationId: string; readonly projectId: string; readonly zone: string; } /** * Gets information about multiple Load Balancer Backends. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * const byLBID = scaleway.getLbBackends({ * lbId: scaleway_lb.lb01.id, * }); * const byLBIDAndName = scaleway.getLbBackends({ * lbId: scaleway_lb.lb01.id, * name: "tf-backend-datasource", * }); * ``` */ export declare function getLbBackendsOutput(args: GetLbBackendsOutputArgs, opts?: pulumi.InvokeOptions): pulumi.Output<GetLbBackendsResult>; /** * A collection of arguments for invoking getLbBackends. */ export interface GetLbBackendsOutputArgs { /** * The load-balancer ID this backend is attached to. backends with a LB ID like it are listed. */ lbId: pulumi.Input<string>; /** * The backend name used as filter. Backends with a name like it are listed. */ name?: pulumi.Input<string>; projectId?: pulumi.Input<string>; /** * `zone`) The zone in which backends exist. */ zone?: pulumi.Input<string>; }