UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

103 lines 3.4 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets information about multiple Load Balancer Backends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Find backends that share the same LB ID * const byLBID = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * }); * // Find backends by LB ID and name * const byLBIDAndName = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * name: "tf-backend-datasource", * }); * ``` */ export declare function getBackends(args: GetBackendsArgs, opts?: pulumi.InvokeOptions): Promise<GetBackendsResult>; /** * A collection of arguments for invoking getBackends. */ export interface GetBackendsArgs { /** * The Load Balancer ID this backend is attached to. Backends with a matching ID are listed. */ lbId: string; /** * The backend name to filter for. Backends with a matching name are listed. */ name?: string; projectId?: string; /** * `zone`) The zone in which backends exist. */ zone?: string; } /** * A collection of values returned by getBackends. */ export interface GetBackendsResult { /** * List of retrieved backends */ readonly backends: outputs.loadbalancers.GetBackendsBackend[]; /** * 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. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-backends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-backends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Find backends that share the same LB ID * const byLBID = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * }); * // Find backends by LB ID and name * const byLBIDAndName = scaleway.loadbalancers.getBackends({ * lbId: lb01.id, * name: "tf-backend-datasource", * }); * ``` */ export declare function getBackendsOutput(args: GetBackendsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetBackendsResult>; /** * A collection of arguments for invoking getBackends. */ export interface GetBackendsOutputArgs { /** * The Load Balancer ID this backend is attached to. Backends with a matching ID are listed. */ lbId: pulumi.Input<string>; /** * The backend name to filter for. Backends with a matching name are listed. */ name?: pulumi.Input<string | undefined>; projectId?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which backends exist. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getBackends.d.ts.map