UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

94 lines 3.2 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 "@pulumiverse/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", * }); * ``` */ export declare function getRoutes(args?: GetRoutesArgs, opts?: pulumi.InvokeOptions): Promise<GetRoutesResult>; /** * A collection of arguments for invoking getRoutes. */ export interface GetRoutesArgs { /** * 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 getRoutes. */ export interface GetRoutesResult { 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.loadbalancers.GetRoutesRoute[]; 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 "@pulumiverse/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", * }); * ``` */ export declare function getRoutesOutput(args?: GetRoutesOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRoutesResult>; /** * A collection of arguments for invoking getRoutes. */ export interface GetRoutesOutputArgs { /** * The frontend ID (the origin of the redirection), to filter for. Routes with a matching frontend ID are listed. */ frontendId?: pulumi.Input<string | undefined>; projectId?: pulumi.Input<string | undefined>; /** * `zone`) The zone in which the routes exist. */ zone?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getRoutes.d.ts.map