UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

105 lines (104 loc) 3.67 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about multiple Load Balancer frontends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find frontends that share the same LB ID * const byLBID = scaleway.loadbalancers.getFrontends({ * lbId: lb01.id, * }); * // Find frontends by LB ID and name * const byLBIDAndName = scaleway.loadbalancers.getFrontends({ * lbId: lb01.id, * name: "tf-frontend-datasource", * }); * ``` */ /** @deprecated scaleway.index/getlbfrontends.getLbFrontends has been deprecated in favor of scaleway.loadbalancers/getfrontends.getFrontends */ export declare function getLbFrontends(args: GetLbFrontendsArgs, opts?: pulumi.InvokeOptions): Promise<GetLbFrontendsResult>; /** * A collection of arguments for invoking getLbFrontends. */ export interface GetLbFrontendsArgs { /** * The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed. */ lbId: string; /** * The frontend name to filter for. Frontends with a matching name are listed. */ name?: string; projectId?: string; /** * `zone`) The zone in which the frontends exist. */ zone?: string; } /** * A collection of values returned by getLbFrontends. */ export interface GetLbFrontendsResult { /** * List of retrieved frontends */ readonly frontends: outputs.GetLbFrontendsFrontend[]; /** * 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 frontends. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/reference-content/configuring-frontends/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-frontends). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find frontends that share the same LB ID * const byLBID = scaleway.loadbalancers.getFrontends({ * lbId: lb01.id, * }); * // Find frontends by LB ID and name * const byLBIDAndName = scaleway.loadbalancers.getFrontends({ * lbId: lb01.id, * name: "tf-frontend-datasource", * }); * ``` */ /** @deprecated scaleway.index/getlbfrontends.getLbFrontends has been deprecated in favor of scaleway.loadbalancers/getfrontends.getFrontends */ export declare function getLbFrontendsOutput(args: GetLbFrontendsOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLbFrontendsResult>; /** * A collection of arguments for invoking getLbFrontends. */ export interface GetLbFrontendsOutputArgs { /** * The Load Balancer ID this frontend is attached to. Frontends with a matching ID are listed. */ lbId: pulumi.Input<string>; /** * The frontend name to filter for. Frontends with a matching name are listed. */ name?: pulumi.Input<string>; projectId?: pulumi.Input<string>; /** * `zone`) The zone in which the frontends exist. */ zone?: pulumi.Input<string>; }