1. Packages
  2. Scaleway
  3. API Docs
  4. LoadbalancerRoute
Scaleway v1.28.0 published on Friday, May 16, 2025 by pulumiverse

scaleway.LoadbalancerRoute

Explore with Pulumi AI

scaleway logo
Scaleway v1.28.0 published on Friday, May 16, 2025 by pulumiverse
    Deprecated: scaleway.index/loadbalancerroute.LoadbalancerRoute has been deprecated in favor of scaleway.loadbalancers/route.Route

    Creates and manages Scaleway Load Balancer routes.

    For more information, see the main documentation or API documentation.

    Example Usage

    With SNI for direction to TCP backends

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const ip01 = new scaleway.loadbalancers.Ip("ip01", {});
    const lb01 = new scaleway.loadbalancers.LoadBalancer("lb01", {
        ipId: ip01.id,
        name: "test-lb",
        type: "lb-s",
    });
    const bkd01 = new scaleway.loadbalancers.Backend("bkd01", {
        lbId: lb01.id,
        forwardProtocol: "tcp",
        forwardPort: 80,
        proxyProtocol: "none",
    });
    const frt01 = new scaleway.loadbalancers.Frontend("frt01", {
        lbId: lb01.id,
        backendId: bkd01.id,
        inboundPort: 80,
    });
    const rt01 = new scaleway.loadbalancers.Route("rt01", {
        frontendId: frt01.id,
        backendId: bkd01.id,
        matchSni: "sni.scaleway.com",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    ip01 = scaleway.loadbalancers.Ip("ip01")
    lb01 = scaleway.loadbalancers.LoadBalancer("lb01",
        ip_id=ip01.id,
        name="test-lb",
        type="lb-s")
    bkd01 = scaleway.loadbalancers.Backend("bkd01",
        lb_id=lb01.id,
        forward_protocol="tcp",
        forward_port=80,
        proxy_protocol="none")
    frt01 = scaleway.loadbalancers.Frontend("frt01",
        lb_id=lb01.id,
        backend_id=bkd01.id,
        inbound_port=80)
    rt01 = scaleway.loadbalancers.Route("rt01",
        frontend_id=frt01.id,
        backend_id=bkd01.id,
        match_sni="sni.scaleway.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/loadbalancers"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ip01, err := loadbalancers.NewIp(ctx, "ip01", nil)
    		if err != nil {
    			return err
    		}
    		lb01, err := loadbalancers.NewLoadBalancer(ctx, "lb01", &loadbalancers.LoadBalancerArgs{
    			IpId: ip01.ID(),
    			Name: pulumi.String("test-lb"),
    			Type: pulumi.String("lb-s"),
    		})
    		if err != nil {
    			return err
    		}
    		bkd01, err := loadbalancers.NewBackend(ctx, "bkd01", &loadbalancers.BackendArgs{
    			LbId:            lb01.ID(),
    			ForwardProtocol: pulumi.String("tcp"),
    			ForwardPort:     pulumi.Int(80),
    			ProxyProtocol:   pulumi.String("none"),
    		})
    		if err != nil {
    			return err
    		}
    		frt01, err := loadbalancers.NewFrontend(ctx, "frt01", &loadbalancers.FrontendArgs{
    			LbId:        lb01.ID(),
    			BackendId:   bkd01.ID(),
    			InboundPort: pulumi.Int(80),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loadbalancers.NewRoute(ctx, "rt01", &loadbalancers.RouteArgs{
    			FrontendId: frt01.ID(),
    			BackendId:  bkd01.ID(),
    			MatchSni:   pulumi.String("sni.scaleway.com"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var ip01 = new Scaleway.Loadbalancers.Ip("ip01");
    
        var lb01 = new Scaleway.Loadbalancers.LoadBalancer("lb01", new()
        {
            IpId = ip01.Id,
            Name = "test-lb",
            Type = "lb-s",
        });
    
        var bkd01 = new Scaleway.Loadbalancers.Backend("bkd01", new()
        {
            LbId = lb01.Id,
            ForwardProtocol = "tcp",
            ForwardPort = 80,
            ProxyProtocol = "none",
        });
    
        var frt01 = new Scaleway.Loadbalancers.Frontend("frt01", new()
        {
            LbId = lb01.Id,
            BackendId = bkd01.Id,
            InboundPort = 80,
        });
    
        var rt01 = new Scaleway.Loadbalancers.Route("rt01", new()
        {
            FrontendId = frt01.Id,
            BackendId = bkd01.Id,
            MatchSni = "sni.scaleway.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.loadbalancers.Ip;
    import com.pulumi.scaleway.loadbalancers.LoadBalancer;
    import com.pulumi.scaleway.loadbalancers.LoadBalancerArgs;
    import com.pulumi.scaleway.loadbalancers.Backend;
    import com.pulumi.scaleway.loadbalancers.BackendArgs;
    import com.pulumi.scaleway.loadbalancers.Frontend;
    import com.pulumi.scaleway.loadbalancers.FrontendArgs;
    import com.pulumi.scaleway.loadbalancers.Route;
    import com.pulumi.scaleway.loadbalancers.RouteArgs;
    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) {
            var ip01 = new Ip("ip01");
    
            var lb01 = new LoadBalancer("lb01", LoadBalancerArgs.builder()
                .ipId(ip01.id())
                .name("test-lb")
                .type("lb-s")
                .build());
    
            var bkd01 = new Backend("bkd01", BackendArgs.builder()
                .lbId(lb01.id())
                .forwardProtocol("tcp")
                .forwardPort(80)
                .proxyProtocol("none")
                .build());
    
            var frt01 = new Frontend("frt01", FrontendArgs.builder()
                .lbId(lb01.id())
                .backendId(bkd01.id())
                .inboundPort(80)
                .build());
    
            var rt01 = new Route("rt01", RouteArgs.builder()
                .frontendId(frt01.id())
                .backendId(bkd01.id())
                .matchSni("sni.scaleway.com")
                .build());
    
        }
    }
    
    resources:
      ip01:
        type: scaleway:loadbalancers:Ip
      lb01:
        type: scaleway:loadbalancers:LoadBalancer
        properties:
          ipId: ${ip01.id}
          name: test-lb
          type: lb-s
      bkd01:
        type: scaleway:loadbalancers:Backend
        properties:
          lbId: ${lb01.id}
          forwardProtocol: tcp
          forwardPort: 80
          proxyProtocol: none
      frt01:
        type: scaleway:loadbalancers:Frontend
        properties:
          lbId: ${lb01.id}
          backendId: ${bkd01.id}
          inboundPort: 80
      rt01:
        type: scaleway:loadbalancers:Route
        properties:
          frontendId: ${frt01.id}
          backendId: ${bkd01.id}
          matchSni: sni.scaleway.com
    

    With host-header for direction to HTTP backends

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const ip01 = new scaleway.loadbalancers.Ip("ip01", {});
    const lb01 = new scaleway.loadbalancers.LoadBalancer("lb01", {
        ipId: ip01.id,
        name: "test-lb",
        type: "lb-s",
    });
    const bkd01 = new scaleway.loadbalancers.Backend("bkd01", {
        lbId: lb01.id,
        forwardProtocol: "http",
        forwardPort: 80,
        proxyProtocol: "none",
    });
    const frt01 = new scaleway.loadbalancers.Frontend("frt01", {
        lbId: lb01.id,
        backendId: bkd01.id,
        inboundPort: 80,
    });
    const rt01 = new scaleway.loadbalancers.Route("rt01", {
        frontendId: frt01.id,
        backendId: bkd01.id,
        matchHostHeader: "host.scaleway.com",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    ip01 = scaleway.loadbalancers.Ip("ip01")
    lb01 = scaleway.loadbalancers.LoadBalancer("lb01",
        ip_id=ip01.id,
        name="test-lb",
        type="lb-s")
    bkd01 = scaleway.loadbalancers.Backend("bkd01",
        lb_id=lb01.id,
        forward_protocol="http",
        forward_port=80,
        proxy_protocol="none")
    frt01 = scaleway.loadbalancers.Frontend("frt01",
        lb_id=lb01.id,
        backend_id=bkd01.id,
        inbound_port=80)
    rt01 = scaleway.loadbalancers.Route("rt01",
        frontend_id=frt01.id,
        backend_id=bkd01.id,
        match_host_header="host.scaleway.com")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/loadbalancers"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ip01, err := loadbalancers.NewIp(ctx, "ip01", nil)
    		if err != nil {
    			return err
    		}
    		lb01, err := loadbalancers.NewLoadBalancer(ctx, "lb01", &loadbalancers.LoadBalancerArgs{
    			IpId: ip01.ID(),
    			Name: pulumi.String("test-lb"),
    			Type: pulumi.String("lb-s"),
    		})
    		if err != nil {
    			return err
    		}
    		bkd01, err := loadbalancers.NewBackend(ctx, "bkd01", &loadbalancers.BackendArgs{
    			LbId:            lb01.ID(),
    			ForwardProtocol: pulumi.String("http"),
    			ForwardPort:     pulumi.Int(80),
    			ProxyProtocol:   pulumi.String("none"),
    		})
    		if err != nil {
    			return err
    		}
    		frt01, err := loadbalancers.NewFrontend(ctx, "frt01", &loadbalancers.FrontendArgs{
    			LbId:        lb01.ID(),
    			BackendId:   bkd01.ID(),
    			InboundPort: pulumi.Int(80),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loadbalancers.NewRoute(ctx, "rt01", &loadbalancers.RouteArgs{
    			FrontendId:      frt01.ID(),
    			BackendId:       bkd01.ID(),
    			MatchHostHeader: pulumi.String("host.scaleway.com"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var ip01 = new Scaleway.Loadbalancers.Ip("ip01");
    
        var lb01 = new Scaleway.Loadbalancers.LoadBalancer("lb01", new()
        {
            IpId = ip01.Id,
            Name = "test-lb",
            Type = "lb-s",
        });
    
        var bkd01 = new Scaleway.Loadbalancers.Backend("bkd01", new()
        {
            LbId = lb01.Id,
            ForwardProtocol = "http",
            ForwardPort = 80,
            ProxyProtocol = "none",
        });
    
        var frt01 = new Scaleway.Loadbalancers.Frontend("frt01", new()
        {
            LbId = lb01.Id,
            BackendId = bkd01.Id,
            InboundPort = 80,
        });
    
        var rt01 = new Scaleway.Loadbalancers.Route("rt01", new()
        {
            FrontendId = frt01.Id,
            BackendId = bkd01.Id,
            MatchHostHeader = "host.scaleway.com",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.loadbalancers.Ip;
    import com.pulumi.scaleway.loadbalancers.LoadBalancer;
    import com.pulumi.scaleway.loadbalancers.LoadBalancerArgs;
    import com.pulumi.scaleway.loadbalancers.Backend;
    import com.pulumi.scaleway.loadbalancers.BackendArgs;
    import com.pulumi.scaleway.loadbalancers.Frontend;
    import com.pulumi.scaleway.loadbalancers.FrontendArgs;
    import com.pulumi.scaleway.loadbalancers.Route;
    import com.pulumi.scaleway.loadbalancers.RouteArgs;
    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) {
            var ip01 = new Ip("ip01");
    
            var lb01 = new LoadBalancer("lb01", LoadBalancerArgs.builder()
                .ipId(ip01.id())
                .name("test-lb")
                .type("lb-s")
                .build());
    
            var bkd01 = new Backend("bkd01", BackendArgs.builder()
                .lbId(lb01.id())
                .forwardProtocol("http")
                .forwardPort(80)
                .proxyProtocol("none")
                .build());
    
            var frt01 = new Frontend("frt01", FrontendArgs.builder()
                .lbId(lb01.id())
                .backendId(bkd01.id())
                .inboundPort(80)
                .build());
    
            var rt01 = new Route("rt01", RouteArgs.builder()
                .frontendId(frt01.id())
                .backendId(bkd01.id())
                .matchHostHeader("host.scaleway.com")
                .build());
    
        }
    }
    
    resources:
      ip01:
        type: scaleway:loadbalancers:Ip
      lb01:
        type: scaleway:loadbalancers:LoadBalancer
        properties:
          ipId: ${ip01.id}
          name: test-lb
          type: lb-s
      bkd01:
        type: scaleway:loadbalancers:Backend
        properties:
          lbId: ${lb01.id}
          forwardProtocol: http
          forwardPort: 80
          proxyProtocol: none
      frt01:
        type: scaleway:loadbalancers:Frontend
        properties:
          lbId: ${lb01.id}
          backendId: ${bkd01.id}
          inboundPort: 80
      rt01:
        type: scaleway:loadbalancers:Route
        properties:
          frontendId: ${frt01.id}
          backendId: ${bkd01.id}
          matchHostHeader: host.scaleway.com
    

    With path-begin matching for HTTP backends

    import * as pulumi from "@pulumi/pulumi";
    import * as scaleway from "@pulumiverse/scaleway";
    
    const ip = new scaleway.loadbalancers.Ip("ip", {});
    const lb = new scaleway.loadbalancers.LoadBalancer("lb", {
        ipId: ip.id,
        name: "my-lb",
        type: "lb-s",
    });
    const app = new scaleway.loadbalancers.Backend("app", {
        lbId: lb.id,
        forwardProtocol: "http",
        forwardPort: 80,
        proxyProtocol: "none",
    });
    const admin = new scaleway.loadbalancers.Backend("admin", {
        lbId: lb.id,
        forwardProtocol: "http",
        forwardPort: 8080,
        proxyProtocol: "none",
    });
    const frontend = new scaleway.loadbalancers.Frontend("frontend", {
        lbId: lb.id,
        backendId: app.id,
        inboundPort: 80,
    });
    const adminRoute = new scaleway.loadbalancers.Route("admin_route", {
        frontendId: frontend.id,
        backendId: admin.id,
        matchPathBegin: "/admin",
    });
    const defaultRoute = new scaleway.loadbalancers.Route("default_route", {
        frontendId: frontend.id,
        backendId: app.id,
        matchPathBegin: "/",
    });
    
    import pulumi
    import pulumiverse_scaleway as scaleway
    
    ip = scaleway.loadbalancers.Ip("ip")
    lb = scaleway.loadbalancers.LoadBalancer("lb",
        ip_id=ip.id,
        name="my-lb",
        type="lb-s")
    app = scaleway.loadbalancers.Backend("app",
        lb_id=lb.id,
        forward_protocol="http",
        forward_port=80,
        proxy_protocol="none")
    admin = scaleway.loadbalancers.Backend("admin",
        lb_id=lb.id,
        forward_protocol="http",
        forward_port=8080,
        proxy_protocol="none")
    frontend = scaleway.loadbalancers.Frontend("frontend",
        lb_id=lb.id,
        backend_id=app.id,
        inbound_port=80)
    admin_route = scaleway.loadbalancers.Route("admin_route",
        frontend_id=frontend.id,
        backend_id=admin.id,
        match_path_begin="/admin")
    default_route = scaleway.loadbalancers.Route("default_route",
        frontend_id=frontend.id,
        backend_id=app.id,
        match_path_begin="/")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    	"github.com/pulumiverse/pulumi-scaleway/sdk/go/scaleway/loadbalancers"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		ip, err := loadbalancers.NewIp(ctx, "ip", nil)
    		if err != nil {
    			return err
    		}
    		lb, err := loadbalancers.NewLoadBalancer(ctx, "lb", &loadbalancers.LoadBalancerArgs{
    			IpId: ip.ID(),
    			Name: pulumi.String("my-lb"),
    			Type: pulumi.String("lb-s"),
    		})
    		if err != nil {
    			return err
    		}
    		app, err := loadbalancers.NewBackend(ctx, "app", &loadbalancers.BackendArgs{
    			LbId:            lb.ID(),
    			ForwardProtocol: pulumi.String("http"),
    			ForwardPort:     pulumi.Int(80),
    			ProxyProtocol:   pulumi.String("none"),
    		})
    		if err != nil {
    			return err
    		}
    		admin, err := loadbalancers.NewBackend(ctx, "admin", &loadbalancers.BackendArgs{
    			LbId:            lb.ID(),
    			ForwardProtocol: pulumi.String("http"),
    			ForwardPort:     pulumi.Int(8080),
    			ProxyProtocol:   pulumi.String("none"),
    		})
    		if err != nil {
    			return err
    		}
    		frontend, err := loadbalancers.NewFrontend(ctx, "frontend", &loadbalancers.FrontendArgs{
    			LbId:        lb.ID(),
    			BackendId:   app.ID(),
    			InboundPort: pulumi.Int(80),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loadbalancers.NewRoute(ctx, "admin_route", &loadbalancers.RouteArgs{
    			FrontendId:     frontend.ID(),
    			BackendId:      admin.ID(),
    			MatchPathBegin: pulumi.String("/admin"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = loadbalancers.NewRoute(ctx, "default_route", &loadbalancers.RouteArgs{
    			FrontendId:     frontend.ID(),
    			BackendId:      app.ID(),
    			MatchPathBegin: pulumi.String("/"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Scaleway = Pulumiverse.Scaleway;
    
    return await Deployment.RunAsync(() => 
    {
        var ip = new Scaleway.Loadbalancers.Ip("ip");
    
        var lb = new Scaleway.Loadbalancers.LoadBalancer("lb", new()
        {
            IpId = ip.Id,
            Name = "my-lb",
            Type = "lb-s",
        });
    
        var app = new Scaleway.Loadbalancers.Backend("app", new()
        {
            LbId = lb.Id,
            ForwardProtocol = "http",
            ForwardPort = 80,
            ProxyProtocol = "none",
        });
    
        var admin = new Scaleway.Loadbalancers.Backend("admin", new()
        {
            LbId = lb.Id,
            ForwardProtocol = "http",
            ForwardPort = 8080,
            ProxyProtocol = "none",
        });
    
        var frontend = new Scaleway.Loadbalancers.Frontend("frontend", new()
        {
            LbId = lb.Id,
            BackendId = app.Id,
            InboundPort = 80,
        });
    
        var adminRoute = new Scaleway.Loadbalancers.Route("admin_route", new()
        {
            FrontendId = frontend.Id,
            BackendId = admin.Id,
            MatchPathBegin = "/admin",
        });
    
        var defaultRoute = new Scaleway.Loadbalancers.Route("default_route", new()
        {
            FrontendId = frontend.Id,
            BackendId = app.Id,
            MatchPathBegin = "/",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.scaleway.loadbalancers.Ip;
    import com.pulumi.scaleway.loadbalancers.LoadBalancer;
    import com.pulumi.scaleway.loadbalancers.LoadBalancerArgs;
    import com.pulumi.scaleway.loadbalancers.Backend;
    import com.pulumi.scaleway.loadbalancers.BackendArgs;
    import com.pulumi.scaleway.loadbalancers.Frontend;
    import com.pulumi.scaleway.loadbalancers.FrontendArgs;
    import com.pulumi.scaleway.loadbalancers.Route;
    import com.pulumi.scaleway.loadbalancers.RouteArgs;
    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) {
            var ip = new Ip("ip");
    
            var lb = new LoadBalancer("lb", LoadBalancerArgs.builder()
                .ipId(ip.id())
                .name("my-lb")
                .type("lb-s")
                .build());
    
            var app = new Backend("app", BackendArgs.builder()
                .lbId(lb.id())
                .forwardProtocol("http")
                .forwardPort(80)
                .proxyProtocol("none")
                .build());
    
            var admin = new Backend("admin", BackendArgs.builder()
                .lbId(lb.id())
                .forwardProtocol("http")
                .forwardPort(8080)
                .proxyProtocol("none")
                .build());
    
            var frontend = new Frontend("frontend", FrontendArgs.builder()
                .lbId(lb.id())
                .backendId(app.id())
                .inboundPort(80)
                .build());
    
            var adminRoute = new Route("adminRoute", RouteArgs.builder()
                .frontendId(frontend.id())
                .backendId(admin.id())
                .matchPathBegin("/admin")
                .build());
    
            var defaultRoute = new Route("defaultRoute", RouteArgs.builder()
                .frontendId(frontend.id())
                .backendId(app.id())
                .matchPathBegin("/")
                .build());
    
        }
    }
    
    resources:
      ip:
        type: scaleway:loadbalancers:Ip
      lb:
        type: scaleway:loadbalancers:LoadBalancer
        properties:
          ipId: ${ip.id}
          name: my-lb
          type: lb-s
      app:
        type: scaleway:loadbalancers:Backend
        properties:
          lbId: ${lb.id}
          forwardProtocol: http
          forwardPort: 80
          proxyProtocol: none
      admin:
        type: scaleway:loadbalancers:Backend
        properties:
          lbId: ${lb.id}
          forwardProtocol: http
          forwardPort: 8080
          proxyProtocol: none
      frontend:
        type: scaleway:loadbalancers:Frontend
        properties:
          lbId: ${lb.id}
          backendId: ${app.id}
          inboundPort: 80
      adminRoute:
        type: scaleway:loadbalancers:Route
        name: admin_route
        properties:
          frontendId: ${frontend.id}
          backendId: ${admin.id}
          matchPathBegin: /admin
      defaultRoute:
        type: scaleway:loadbalancers:Route
        name: default_route
        properties:
          frontendId: ${frontend.id}
          backendId: ${app.id}
          matchPathBegin: /
    

    Create LoadbalancerRoute Resource

    Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

    Constructor syntax

    new LoadbalancerRoute(name: string, args: LoadbalancerRouteArgs, opts?: CustomResourceOptions);
    @overload
    def LoadbalancerRoute(resource_name: str,
                          args: LoadbalancerRouteArgs,
                          opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadbalancerRoute(resource_name: str,
                          opts: Optional[ResourceOptions] = None,
                          backend_id: Optional[str] = None,
                          frontend_id: Optional[str] = None,
                          match_host_header: Optional[str] = None,
                          match_path_begin: Optional[str] = None,
                          match_sni: Optional[str] = None,
                          match_subdomains: Optional[bool] = None)
    func NewLoadbalancerRoute(ctx *Context, name string, args LoadbalancerRouteArgs, opts ...ResourceOption) (*LoadbalancerRoute, error)
    public LoadbalancerRoute(string name, LoadbalancerRouteArgs args, CustomResourceOptions? opts = null)
    public LoadbalancerRoute(String name, LoadbalancerRouteArgs args)
    public LoadbalancerRoute(String name, LoadbalancerRouteArgs args, CustomResourceOptions options)
    
    type: scaleway:LoadbalancerRoute
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args LoadbalancerRouteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args LoadbalancerRouteArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args LoadbalancerRouteArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadbalancerRouteArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadbalancerRouteArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    LoadbalancerRoute Resource Properties

    To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

    Inputs

    In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

    The LoadbalancerRoute resource accepts the following input properties:

    BackendId string
    The ID of the backend the route is associated with.
    FrontendId string
    The ID of the frontend the route is associated with.
    MatchHostHeader string

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    MatchPathBegin string
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    MatchSni string

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    MatchSubdomains bool
    If true, all subdomains will match.
    BackendId string
    The ID of the backend the route is associated with.
    FrontendId string
    The ID of the frontend the route is associated with.
    MatchHostHeader string

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    MatchPathBegin string
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    MatchSni string

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    MatchSubdomains bool
    If true, all subdomains will match.
    backendId String
    The ID of the backend the route is associated with.
    frontendId String
    The ID of the frontend the route is associated with.
    matchHostHeader String

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    matchPathBegin String
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    matchSni String

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    matchSubdomains Boolean
    If true, all subdomains will match.
    backendId string
    The ID of the backend the route is associated with.
    frontendId string
    The ID of the frontend the route is associated with.
    matchHostHeader string

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    matchPathBegin string
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    matchSni string

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    matchSubdomains boolean
    If true, all subdomains will match.
    backend_id str
    The ID of the backend the route is associated with.
    frontend_id str
    The ID of the frontend the route is associated with.
    match_host_header str

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    match_path_begin str
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    match_sni str

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    match_subdomains bool
    If true, all subdomains will match.
    backendId String
    The ID of the backend the route is associated with.
    frontendId String
    The ID of the frontend the route is associated with.
    matchHostHeader String

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    matchPathBegin String
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    matchSni String

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    matchSubdomains Boolean
    If true, all subdomains will match.

    Outputs

    All input properties are implicitly available as output properties. Additionally, the LoadbalancerRoute resource produces the following output properties:

    CreatedAt string
    The date on which the route was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The date on which the route was last updated.
    CreatedAt string
    The date on which the route was created.
    Id string
    The provider-assigned unique ID for this managed resource.
    UpdatedAt string
    The date on which the route was last updated.
    createdAt String
    The date on which the route was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The date on which the route was last updated.
    createdAt string
    The date on which the route was created.
    id string
    The provider-assigned unique ID for this managed resource.
    updatedAt string
    The date on which the route was last updated.
    created_at str
    The date on which the route was created.
    id str
    The provider-assigned unique ID for this managed resource.
    updated_at str
    The date on which the route was last updated.
    createdAt String
    The date on which the route was created.
    id String
    The provider-assigned unique ID for this managed resource.
    updatedAt String
    The date on which the route was last updated.

    Look up Existing LoadbalancerRoute Resource

    Get an existing LoadbalancerRoute resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

    public static get(name: string, id: Input<ID>, state?: LoadbalancerRouteState, opts?: CustomResourceOptions): LoadbalancerRoute
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            backend_id: Optional[str] = None,
            created_at: Optional[str] = None,
            frontend_id: Optional[str] = None,
            match_host_header: Optional[str] = None,
            match_path_begin: Optional[str] = None,
            match_sni: Optional[str] = None,
            match_subdomains: Optional[bool] = None,
            updated_at: Optional[str] = None) -> LoadbalancerRoute
    func GetLoadbalancerRoute(ctx *Context, name string, id IDInput, state *LoadbalancerRouteState, opts ...ResourceOption) (*LoadbalancerRoute, error)
    public static LoadbalancerRoute Get(string name, Input<string> id, LoadbalancerRouteState? state, CustomResourceOptions? opts = null)
    public static LoadbalancerRoute get(String name, Output<String> id, LoadbalancerRouteState state, CustomResourceOptions options)
    resources:  _:    type: scaleway:LoadbalancerRoute    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    BackendId string
    The ID of the backend the route is associated with.
    CreatedAt string
    The date on which the route was created.
    FrontendId string
    The ID of the frontend the route is associated with.
    MatchHostHeader string

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    MatchPathBegin string
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    MatchSni string

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    MatchSubdomains bool
    If true, all subdomains will match.
    UpdatedAt string
    The date on which the route was last updated.
    BackendId string
    The ID of the backend the route is associated with.
    CreatedAt string
    The date on which the route was created.
    FrontendId string
    The ID of the frontend the route is associated with.
    MatchHostHeader string

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    MatchPathBegin string
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    MatchSni string

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    MatchSubdomains bool
    If true, all subdomains will match.
    UpdatedAt string
    The date on which the route was last updated.
    backendId String
    The ID of the backend the route is associated with.
    createdAt String
    The date on which the route was created.
    frontendId String
    The ID of the frontend the route is associated with.
    matchHostHeader String

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    matchPathBegin String
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    matchSni String

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    matchSubdomains Boolean
    If true, all subdomains will match.
    updatedAt String
    The date on which the route was last updated.
    backendId string
    The ID of the backend the route is associated with.
    createdAt string
    The date on which the route was created.
    frontendId string
    The ID of the frontend the route is associated with.
    matchHostHeader string

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    matchPathBegin string
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    matchSni string

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    matchSubdomains boolean
    If true, all subdomains will match.
    updatedAt string
    The date on which the route was last updated.
    backend_id str
    The ID of the backend the route is associated with.
    created_at str
    The date on which the route was created.
    frontend_id str
    The ID of the frontend the route is associated with.
    match_host_header str

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    match_path_begin str
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    match_sni str

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    match_subdomains bool
    If true, all subdomains will match.
    updated_at str
    The date on which the route was last updated.
    backendId String
    The ID of the backend the route is associated with.
    createdAt String
    The date on which the route was created.
    frontendId String
    The ID of the frontend the route is associated with.
    matchHostHeader String

    The HTTP host header to match. Value to match in the HTTP Host request header from an incoming connection. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on HTTP Load Balancers.

    matchPathBegin String
    The value to match in the URL beginning path from an incoming request. Only one of match_sni, match_host_header and match_path_begin should be specified.
    matchSni String

    The Server Name Indication (SNI) value to match. Value to match in the Server Name Indication TLS extension (SNI) field from an incoming connection made via an SSL/TLS transport layer. Only one of match_sni, match_host_header and match_path_begin should be specified.

    Important: This field should be set for routes on TCP Load Balancers.

    matchSubdomains Boolean
    If true, all subdomains will match.
    updatedAt String
    The date on which the route was last updated.

    Import

    Load Balancer frontends can be imported using {zone}/{id}, e.g.

    bash

    $ pulumi import scaleway:index/loadbalancerRoute:LoadbalancerRoute main fr-par-1/11111111-1111-1111-1111-111111111111
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    scaleway pulumiverse/pulumi-scaleway
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the scaleway Terraform Provider.
    scaleway logo
    Scaleway v1.28.0 published on Friday, May 16, 2025 by pulumiverse