published on Wednesday, Apr 29, 2026 by pulumiverse
published on Wednesday, Apr 29, 2026 by pulumiverse
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
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",
});
import pulumi
import pulumi_scaleway as scaleway
# Retrieve an Edge Services route stage by its ID
by_id = scaleway.edgeservices.get_route_stage(route_stage_id="11111111-1111-1111-1111-111111111111")
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/edgeservices"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Retrieve an Edge Services route stage by its ID
_, err := edgeservices.LookupRouteStage(ctx, &edgeservices.LookupRouteStageArgs{
RouteStageId: pulumi.StringRef("11111111-1111-1111-1111-111111111111"),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Retrieve an Edge Services route stage by its ID
var byId = Scaleway.Edgeservices.GetRouteStage.Invoke(new()
{
RouteStageId = "11111111-1111-1111-1111-111111111111",
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.edgeservices.EdgeservicesFunctions;
import com.pulumi.scaleway.edgeservices.inputs.GetRouteStageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Retrieve an Edge Services route stage by its ID
final var byId = EdgeservicesFunctions.getRouteStage(GetRouteStageArgs.builder()
.routeStageId("11111111-1111-1111-1111-111111111111")
.build());
}
}
variables:
# Retrieve an Edge Services route stage by its ID
byId:
fn::invoke:
function: scaleway:edgeservices:getRouteStage
arguments:
routeStageId: 11111111-1111-1111-1111-111111111111
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,
});
import pulumi
import pulumi_scaleway as scaleway
# Retrieve an Edge Services route stage by pipeline ID
by_pipeline = scaleway.edgeservices.get_route_stage(pipeline_id=main["id"])
package main
import (
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/edgeservices"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
// Retrieve an Edge Services route stage by pipeline ID
_, err := edgeservices.LookupRouteStage(ctx, &edgeservices.LookupRouteStageArgs{
PipelineId: pulumi.StringRef(main.Id),
}, nil)
if err != nil {
return err
}
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Scaleway = Pulumiverse.Scaleway;
return await Deployment.RunAsync(() =>
{
// Retrieve an Edge Services route stage by pipeline ID
var byPipeline = Scaleway.Edgeservices.GetRouteStage.Invoke(new()
{
PipelineId = main.Id,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.scaleway.edgeservices.EdgeservicesFunctions;
import com.pulumi.scaleway.edgeservices.inputs.GetRouteStageArgs;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;
public class App {
public static void main(String[] args) {
Pulumi.run(App::stack);
}
public static void stack(Context ctx) {
// Retrieve an Edge Services route stage by pipeline ID
final var byPipeline = EdgeservicesFunctions.getRouteStage(GetRouteStageArgs.builder()
.pipelineId(main.id())
.build());
}
}
variables:
# Retrieve an Edge Services route stage by pipeline ID
byPipeline:
fn::invoke:
function: scaleway:edgeservices:getRouteStage
arguments:
pipelineId: ${main.id}
Using getRouteStage
Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.
function getRouteStage(args: GetRouteStageArgs, opts?: InvokeOptions): Promise<GetRouteStageResult>
function getRouteStageOutput(args: GetRouteStageOutputArgs, opts?: InvokeOptions): Output<GetRouteStageResult>def get_route_stage(pipeline_id: Optional[str] = None,
route_stage_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetRouteStageResult
def get_route_stage_output(pipeline_id: Optional[pulumi.Input[str]] = None,
route_stage_id: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetRouteStageResult]func LookupRouteStage(ctx *Context, args *LookupRouteStageArgs, opts ...InvokeOption) (*LookupRouteStageResult, error)
func LookupRouteStageOutput(ctx *Context, args *LookupRouteStageOutputArgs, opts ...InvokeOption) LookupRouteStageResultOutput> Note: This function is named LookupRouteStage in the Go SDK.
public static class GetRouteStage
{
public static Task<GetRouteStageResult> InvokeAsync(GetRouteStageArgs args, InvokeOptions? opts = null)
public static Output<GetRouteStageResult> Invoke(GetRouteStageInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetRouteStageResult> getRouteStage(GetRouteStageArgs args, InvokeOptions options)
public static Output<GetRouteStageResult> getRouteStage(GetRouteStageArgs args, InvokeOptions options)
fn::invoke:
function: scaleway:edgeservices/getRouteStage:getRouteStage
arguments:
# arguments dictionaryThe following arguments are supported:
- Pipeline
Id string - The ID of the pipeline.
- Route
Stage stringId The ID of the route stage. Conflicts with all filter arguments below.
The following filter arguments are supported (cannot be used with
routeStageId):
- Pipeline
Id string - The ID of the pipeline.
- Route
Stage stringId The ID of the route stage. Conflicts with all filter arguments below.
The following filter arguments are supported (cannot be used with
routeStageId):
- pipeline
Id String - The ID of the pipeline.
- route
Stage StringId The ID of the route stage. Conflicts with all filter arguments below.
The following filter arguments are supported (cannot be used with
routeStageId):
- pipeline
Id string - The ID of the pipeline.
- route
Stage stringId The ID of the route stage. Conflicts with all filter arguments below.
The following filter arguments are supported (cannot be used with
routeStageId):
- pipeline_
id str - The ID of the pipeline.
- route_
stage_ strid The ID of the route stage. Conflicts with all filter arguments below.
The following filter arguments are supported (cannot be used with
routeStageId):
- pipeline
Id String - The ID of the pipeline.
- route
Stage StringId The ID of the route stage. Conflicts with all filter arguments below.
The following filter arguments are supported (cannot be used with
routeStageId):
getRouteStage Result
The following output properties are available:
- Backend
Stage stringId - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Rules
List<Pulumiverse.
Scaleway. Edgeservices. Outputs. Get Route Stage Rule> - Updated
At string - Waf
Stage stringId - Pipeline
Id string - Route
Stage stringId
- Backend
Stage stringId - Created
At string - Id string
- The provider-assigned unique ID for this managed resource.
- Project
Id string - Rules
[]Get
Route Stage Rule - Updated
At string - Waf
Stage stringId - Pipeline
Id string - Route
Stage stringId
- backend
Stage StringId - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - rules
List<Get
Route Stage Rule> - updated
At String - waf
Stage StringId - pipeline
Id String - route
Stage StringId
- backend
Stage stringId - created
At string - id string
- The provider-assigned unique ID for this managed resource.
- project
Id string - rules
Get
Route Stage Rule[] - updated
At string - waf
Stage stringId - pipeline
Id string - route
Stage stringId
- backend_
stage_ strid - created_
at str - id str
- The provider-assigned unique ID for this managed resource.
- project_
id str - rules
Sequence[Get
Route Stage Rule] - updated_
at str - waf_
stage_ strid - pipeline_
id str - route_
stage_ strid
- backend
Stage StringId - created
At String - id String
- The provider-assigned unique ID for this managed resource.
- project
Id String - rules List<Property Map>
- updated
At String - waf
Stage StringId - pipeline
Id String - route
Stage StringId
Supporting Types
GetRouteStageRule
- Backend
Stage stringId - ID of the backend stage that requests matching the rule should be forwarded to
- Rule
Http List<Pulumiverse.Matches Scaleway. Edgeservices. Inputs. Get Route Stage Rule Rule Http Match> - Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the
backendStageIdfield. Requests that do not match will be checked by the next rule's condition - Waf
Stage stringId - ID of the WAF stage that requests matching the rule should be forwarded to
- Backend
Stage stringId - ID of the backend stage that requests matching the rule should be forwarded to
- Rule
Http []GetMatches Route Stage Rule Rule Http Match - Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the
backendStageIdfield. Requests that do not match will be checked by the next rule's condition - Waf
Stage stringId - ID of the WAF stage that requests matching the rule should be forwarded to
- backend
Stage StringId - ID of the backend stage that requests matching the rule should be forwarded to
- rule
Http List<GetMatches Route Stage Rule Rule Http Match> - Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the
backendStageIdfield. Requests that do not match will be checked by the next rule's condition - waf
Stage StringId - ID of the WAF stage that requests matching the rule should be forwarded to
- backend
Stage stringId - ID of the backend stage that requests matching the rule should be forwarded to
- rule
Http GetMatches Route Stage Rule Rule Http Match[] - Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the
backendStageIdfield. Requests that do not match will be checked by the next rule's condition - waf
Stage stringId - ID of the WAF stage that requests matching the rule should be forwarded to
- backend_
stage_ strid - ID of the backend stage that requests matching the rule should be forwarded to
- rule_
http_ Sequence[Getmatches Route Stage Rule Rule Http Match] - Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the
backendStageIdfield. Requests that do not match will be checked by the next rule's condition - waf_
stage_ strid - ID of the WAF stage that requests matching the rule should be forwarded to
- backend
Stage StringId - ID of the backend stage that requests matching the rule should be forwarded to
- rule
Http List<Property Map>Matches - Rule condition to be matched. Requests matching the condition defined here will be directly forwarded to the backend specified by the
backendStageIdfield. Requests that do not match will be checked by the next rule's condition - waf
Stage StringId - ID of the WAF stage that requests matching the rule should be forwarded to
GetRouteStageRuleRuleHttpMatch
- Host
Filters List<Pulumiverse.Scaleway. Edgeservices. Inputs. Get Route Stage Rule Rule Http Match Host Filter> - Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided
- Method
Filters List<string> - HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are
get,post,put,patch,delete,head,options. All methods will match if none is provided - Path
Filters List<Pulumiverse.Scaleway. Edgeservices. Inputs. Get Route Stage Rule Rule Http Match Path Filter> - HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided
- Host
Filters []GetRoute Stage Rule Rule Http Match Host Filter - Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided
- Method
Filters []string - HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are
get,post,put,patch,delete,head,options. All methods will match if none is provided - Path
Filters []GetRoute Stage Rule Rule Http Match Path Filter - HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided
- host
Filters List<GetRoute Stage Rule Rule Http Match Host Filter> - Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided
- method
Filters List<String> - HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are
get,post,put,patch,delete,head,options. All methods will match if none is provided - path
Filters List<GetRoute Stage Rule Rule Http Match Path Filter> - HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided
- host
Filters GetRoute Stage Rule Rule Http Match Host Filter[] - Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided
- method
Filters string[] - HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are
get,post,put,patch,delete,head,options. All methods will match if none is provided - path
Filters GetRoute Stage Rule Rule Http Match Path Filter[] - HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided
- host_
filters Sequence[GetRoute Stage Rule Rule Http Match Host Filter] - Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided
- method_
filters Sequence[str] - HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are
get,post,put,patch,delete,head,options. All methods will match if none is provided - path_
filters Sequence[GetRoute Stage Rule Rule Http Match Path Filter] - HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided
- host
Filters List<Property Map> - Host to filter for. A request whose host matches the given filter will be considered to match the rule. All hosts will match if none is provided
- method
Filters List<String> - HTTP methods to filter for. A request using any of these methods will be considered to match the rule. Possible values are
get,post,put,patch,delete,head,options. All methods will match if none is provided - path
Filters List<Property Map> - HTTP URL path to filter for. A request whose path matches the given filter will be considered to match the rule. All paths will match if none is provided
GetRouteStageRuleRuleHttpMatchHostFilter
- Host
Filter stringType - The type of filter to match for the host path
- Value string
- The value to be matched for the host path
- Host
Filter stringType - The type of filter to match for the host path
- Value string
- The value to be matched for the host path
- host
Filter StringType - The type of filter to match for the host path
- value String
- The value to be matched for the host path
- host
Filter stringType - The type of filter to match for the host path
- value string
- The value to be matched for the host path
- host_
filter_ strtype - The type of filter to match for the host path
- value str
- The value to be matched for the host path
- host
Filter StringType - The type of filter to match for the host path
- value String
- The value to be matched for the host path
GetRouteStageRuleRuleHttpMatchPathFilter
- Path
Filter stringType - The type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the
regextype - Value string
- The value to be matched for the HTTP URL path
- Path
Filter stringType - The type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the
regextype - Value string
- The value to be matched for the HTTP URL path
- path
Filter StringType - The type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the
regextype - value String
- The value to be matched for the HTTP URL path
- path
Filter stringType - The type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the
regextype - value string
- The value to be matched for the HTTP URL path
- path_
filter_ strtype - The type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the
regextype - value str
- The value to be matched for the HTTP URL path
- path
Filter StringType - The type of filter to match for the HTTP URL path. For now, all path filters must be written in regex and use the
regextype - value String
- The value to be matched for the HTTP URL path
Package Details
- Repository
- scaleway pulumiverse/pulumi-scaleway
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
scalewayTerraform Provider.
published on Wednesday, Apr 29, 2026 by pulumiverse
