UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

96 lines (95 loc) 3.39 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "./types/output"; /** * Gets information about multiple Load Balancer routes. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-routes/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find routes that share the same frontend ID * const byFrontendID = scaleway.loadbalancers.getRoutes({ * frontendId: frt01.id, * }); * // Find routes by frontend ID and zone * const myKey = scaleway.loadbalancers.getRoutes({ * frontendId: "11111111-1111-1111-1111-111111111111", * zone: "fr-par-2", * }); * ``` */ /** @deprecated scaleway.index/getlbroutes.getLbRoutes has been deprecated in favor of scaleway.loadbalancers/getroutes.getRoutes */ export declare function getLbRoutes(args?: GetLbRoutesArgs, opts?: pulumi.InvokeOptions): Promise<GetLbRoutesResult>; /** * A collection of arguments for invoking getLbRoutes. */ export interface GetLbRoutesArgs { /** * The frontend ID (the origin of the redirection), to filter for. Routes with a matching frontend ID are listed. */ frontendId?: string; projectId?: string; /** * `zone`) The zone in which the routes exist. */ zone?: string; } /** * A collection of values returned by getLbRoutes. */ export interface GetLbRoutesResult { readonly frontendId?: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly organizationId: string; readonly projectId: string; /** * List of retrieved routes */ readonly routes: outputs.GetLbRoutesRoute[]; readonly zone: string; } /** * Gets information about multiple Load Balancer routes. * * For more information, see the [main documentation](https://www.scaleway.com/en/docs/load-balancer/how-to/create-manage-routes/) or [API documentation](https://www.scaleway.com/en/developers/api/load-balancer/zoned-api/#path-route). * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumi/scaleway"; * * // Find routes that share the same frontend ID * const byFrontendID = scaleway.loadbalancers.getRoutes({ * frontendId: frt01.id, * }); * // Find routes by frontend ID and zone * const myKey = scaleway.loadbalancers.getRoutes({ * frontendId: "11111111-1111-1111-1111-111111111111", * zone: "fr-par-2", * }); * ``` */ /** @deprecated scaleway.index/getlbroutes.getLbRoutes has been deprecated in favor of scaleway.loadbalancers/getroutes.getRoutes */ export declare function getLbRoutesOutput(args?: GetLbRoutesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetLbRoutesResult>; /** * A collection of arguments for invoking getLbRoutes. */ export interface GetLbRoutesOutputArgs { /** * The frontend ID (the origin of the redirection), to filter for. Routes with a matching frontend ID are listed. */ frontendId?: pulumi.Input<string>; projectId?: pulumi.Input<string>; /** * `zone`) The zone in which the routes exist. */ zone?: pulumi.Input<string>; }