UNPKG

@pulumiverse/scaleway

Version:

A Pulumi package for creating and managing Scaleway cloud resources.

106 lines 3.38 kB
import * as pulumi from "@pulumi/pulumi"; import * as outputs from "../types/output"; /** * Gets information about an Edge Services route stage. * * A route stage defines HTTP request routing rules that forward requests to different backend stages based on method and path matching. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Retrieve an Edge Services route stage by its ID * const byId = scaleway.edgeservices.getRouteStage({ * routeStageId: "11111111-1111-1111-1111-111111111111", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Retrieve an Edge Services route stage by pipeline ID * const byPipeline = scaleway.edgeservices.getRouteStage({ * pipelineId: main.id, * }); * ``` */ export declare function getRouteStage(args?: GetRouteStageArgs, opts?: pulumi.InvokeOptions): Promise<GetRouteStageResult>; /** * A collection of arguments for invoking getRouteStage. */ export interface GetRouteStageArgs { /** * The ID of the pipeline. */ pipelineId?: string; /** * The ID of the route stage. Conflicts with all filter arguments below. * * The following filter arguments are supported (cannot be used with `routeStageId`): */ routeStageId?: string; } /** * A collection of values returned by getRouteStage. */ export interface GetRouteStageResult { readonly backendStageId: string; readonly createdAt: string; /** * The provider-assigned unique ID for this managed resource. */ readonly id: string; readonly pipelineId?: string; readonly projectId: string; readonly routeStageId?: string; readonly rules: outputs.edgeservices.GetRouteStageRule[]; readonly updatedAt: string; readonly wafStageId: string; } /** * Gets information about an Edge Services route stage. * * A route stage defines HTTP request routing rules that forward requests to different backend stages based on method and path matching. * * ## Example Usage * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Retrieve an Edge Services route stage by its ID * const byId = scaleway.edgeservices.getRouteStage({ * routeStageId: "11111111-1111-1111-1111-111111111111", * }); * ``` * * ```typescript * import * as pulumi from "@pulumi/pulumi"; * import * as scaleway from "@pulumiverse/scaleway"; * * // Retrieve an Edge Services route stage by pipeline ID * const byPipeline = scaleway.edgeservices.getRouteStage({ * pipelineId: main.id, * }); * ``` */ export declare function getRouteStageOutput(args?: GetRouteStageOutputArgs, opts?: pulumi.InvokeOutputOptions): pulumi.Output<GetRouteStageResult>; /** * A collection of arguments for invoking getRouteStage. */ export interface GetRouteStageOutputArgs { /** * The ID of the pipeline. */ pipelineId?: pulumi.Input<string | undefined>; /** * The ID of the route stage. Conflicts with all filter arguments below. * * The following filter arguments are supported (cannot be used with `routeStageId`): */ routeStageId?: pulumi.Input<string | undefined>; } //# sourceMappingURL=getRouteStage.d.ts.map