1. Registry
  2. Packages
  3. Outscale Provider
  4. API Docs
  5. LoadBalancerListenerRule
Viewing docs for outscale 1.8.1
published on Wednesday, Sep 30, 2026 by outscale
outscale
Viewing docs for outscale 1.8.1
published on Wednesday, Sep 30, 2026 by outscale

    Manages a load balancer listener rule.

    For more information on this resource, see the User Guide.
    For more information on this resource actions, see the API documentation.

    Example Usage

    Required resources

    import * as pulumi from "@pulumi/pulumi";
    import * as outscale from "@pulumi/outscale";
    
    const vm01 = new outscale.Vm("vm01", {
        imageId: imageId,
        vmType: vmType,
        keypairName: keypairName,
    });
    const loadBalancer01 = new outscale.LoadBalancer("load_balancer01", {
        loadBalancerName: "terraform-public-load-balancer",
        subregionNames: [`${region}a`],
        listeners: [{
            backendPort: 80,
            backendProtocol: "TCP",
            loadBalancerProtocol: "TCP",
            loadBalancerPort: 80,
        }],
        tags: [{
            key: "name",
            value: "terraform-public-load-balancer",
        }],
    });
    const outscaleLoadBalancerVms01 = new outscale.LoadBalancerVms("outscale_load_balancer_vms01", {
        loadBalancerName: loadBalancer01.id,
        backendVmIds: [vm01.vmId],
    });
    
    import pulumi
    import pulumi_outscale as outscale
    
    vm01 = outscale.Vm("vm01",
        image_id=image_id,
        vm_type=vm_type,
        keypair_name=keypair_name)
    load_balancer01 = outscale.LoadBalancer("load_balancer01",
        load_balancer_name="terraform-public-load-balancer",
        subregion_names=[f"{region}a"],
        listeners=[{
            "backend_port": 80,
            "backend_protocol": "TCP",
            "load_balancer_protocol": "TCP",
            "load_balancer_port": 80,
        }],
        tags=[{
            "key": "name",
            "value": "terraform-public-load-balancer",
        }])
    outscale_load_balancer_vms01 = outscale.LoadBalancerVms("outscale_load_balancer_vms01",
        load_balancer_name=load_balancer01.id,
        backend_vm_ids=[vm01.vm_id])
    
    package main
    
    import (
    	"fmt"
    
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		vm01, err := outscale.NewVm(ctx, "vm01", &outscale.VmArgs{
    			ImageId:     pulumi.Any(imageId),
    			VmType:      pulumi.Any(vmType),
    			KeypairName: pulumi.Any(keypairName),
    		})
    		if err != nil {
    			return err
    		}
    		loadBalancer01, err := outscale.NewLoadBalancer(ctx, "load_balancer01", &outscale.LoadBalancerArgs{
    			LoadBalancerName: pulumi.String("terraform-public-load-balancer"),
    			SubregionNames: pulumi.StringArray{
    				pulumi.Sprintf("%va", region),
    			},
    			Listeners: outscale.LoadBalancerListenerArray{
    				&outscale.LoadBalancerListenerArgs{
    					BackendPort:          pulumi.Float64(80),
    					BackendProtocol:      pulumi.String("TCP"),
    					LoadBalancerProtocol: pulumi.String("TCP"),
    					LoadBalancerPort:     pulumi.Float64(80),
    				},
    			},
    			Tags: outscale.LoadBalancerTagArray{
    				&outscale.LoadBalancerTagArgs{
    					Key:   pulumi.String("name"),
    					Value: pulumi.String("terraform-public-load-balancer"),
    				},
    			},
    		})
    		if err != nil {
    			return err
    		}
    		_, err = outscale.NewLoadBalancerVms(ctx, "outscale_load_balancer_vms01", &outscale.LoadBalancerVmsArgs{
    			LoadBalancerName: loadBalancer01.ID(),
    			BackendVmIds: pulumi.StringArray{
    				vm01.VmId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Outscale = Pulumi.Outscale;
    
    return await Deployment.RunAsync(() => 
    {
        var vm01 = new Outscale.Vm("vm01", new()
        {
            ImageId = imageId,
            VmType = vmType,
            KeypairName = keypairName,
        });
    
        var loadBalancer01 = new Outscale.LoadBalancer("load_balancer01", new()
        {
            LoadBalancerName = "terraform-public-load-balancer",
            SubregionNames = new[]
            {
                $"{region}a",
            },
            Listeners = new[]
            {
                new Outscale.Inputs.LoadBalancerListenerArgs
                {
                    BackendPort = 80,
                    BackendProtocol = "TCP",
                    LoadBalancerProtocol = "TCP",
                    LoadBalancerPort = 80,
                },
            },
            Tags = new[]
            {
                new Outscale.Inputs.LoadBalancerTagArgs
                {
                    Key = "name",
                    Value = "terraform-public-load-balancer",
                },
            },
        });
    
        var outscaleLoadBalancerVms01 = new Outscale.LoadBalancerVms("outscale_load_balancer_vms01", new()
        {
            LoadBalancerName = loadBalancer01.Id,
            BackendVmIds = new[]
            {
                vm01.VmId,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.outscale.Vm;
    import com.pulumi.outscale.VmArgs;
    import com.pulumi.outscale.LoadBalancer;
    import com.pulumi.outscale.LoadBalancerArgs;
    import com.pulumi.outscale.inputs.LoadBalancerListenerArgs;
    import com.pulumi.outscale.inputs.LoadBalancerTagArgs;
    import com.pulumi.outscale.LoadBalancerVms;
    import com.pulumi.outscale.LoadBalancerVmsArgs;
    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 vm01 = new Vm("vm01", VmArgs.builder()
                .imageId(imageId)
                .vmType(vmType)
                .keypairName(keypairName)
                .build());
    
            var loadBalancer01 = new LoadBalancer("loadBalancer01", LoadBalancerArgs.builder()
                .loadBalancerName("terraform-public-load-balancer")
                .subregionNames(String.format("%sa", region))
                .listeners(LoadBalancerListenerArgs.builder()
                    .backendPort(80.0)
                    .backendProtocol("TCP")
                    .loadBalancerProtocol("TCP")
                    .loadBalancerPort(80.0)
                    .build())
                .tags(LoadBalancerTagArgs.builder()
                    .key("name")
                    .value("terraform-public-load-balancer")
                    .build())
                .build());
    
            var outscaleLoadBalancerVms01 = new LoadBalancerVms("outscaleLoadBalancerVms01", LoadBalancerVmsArgs.builder()
                .loadBalancerName(loadBalancer01.id())
                .backendVmIds(vm01.vmId())
                .build());
    
        }
    }
    
    resources:
      vm01:
        type: outscale:Vm
        properties:
          imageId: ${imageId}
          vmType: ${vmType}
          keypairName: ${keypairName}
      loadBalancer01:
        type: outscale:LoadBalancer
        name: load_balancer01
        properties:
          loadBalancerName: terraform-public-load-balancer
          subregionNames:
            - ${region}a
          listeners:
            - backendPort: 80
              backendProtocol: TCP
              loadBalancerProtocol: TCP
              loadBalancerPort: 80
          tags:
            - key: name
              value: terraform-public-load-balancer
      outscaleLoadBalancerVms01:
        type: outscale:LoadBalancerVms
        name: outscale_load_balancer_vms01
        properties:
          loadBalancerName: ${loadBalancer01.id}
          backendVmIds:
            - ${vm01.vmId}
    
    Example coming soon!
    

    Create a listener rule based on path pattern

    import * as pulumi from "@pulumi/pulumi";
    import * as outscale from "@pulumi/outscale";
    
    const rule01 = new outscale.LoadBalancerListenerRule("rule01", {
        listeners: [{
            loadBalancerName: loadBalancer01.id,
            loadBalancerPort: 80,
        }],
        listenerRules: [{
            action: "forward",
            listenerRuleName: "terraform-listener-rule01",
            pathPattern: "*.abc.*.abc.*.com",
            priority: 10,
        }],
        vmIds: [vm01.vmId],
    });
    
    import pulumi
    import pulumi_outscale as outscale
    
    rule01 = outscale.LoadBalancerListenerRule("rule01",
        listeners=[{
            "load_balancer_name": load_balancer01["id"],
            "load_balancer_port": 80,
        }],
        listener_rules=[{
            "action": "forward",
            "listener_rule_name": "terraform-listener-rule01",
            "path_pattern": "*.abc.*.abc.*.com",
            "priority": 10,
        }],
        vm_ids=[vm01["vmId"]])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := outscale.NewLoadBalancerListenerRule(ctx, "rule01", &outscale.LoadBalancerListenerRuleArgs{
    			Listeners: outscale.LoadBalancerListenerRuleListenerArray{
    				&outscale.LoadBalancerListenerRuleListenerArgs{
    					LoadBalancerName: pulumi.Any(loadBalancer01.Id),
    					LoadBalancerPort: pulumi.Float64(80),
    				},
    			},
    			ListenerRules: outscale.LoadBalancerListenerRuleListenerRuleArray{
    				&outscale.LoadBalancerListenerRuleListenerRuleArgs{
    					Action:           pulumi.String("forward"),
    					ListenerRuleName: pulumi.String("terraform-listener-rule01"),
    					PathPattern:      pulumi.String("*.abc.*.abc.*.com"),
    					Priority:         pulumi.Float64(10),
    				},
    			},
    			VmIds: pulumi.StringArray{
    				vm01.VmId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Outscale = Pulumi.Outscale;
    
    return await Deployment.RunAsync(() => 
    {
        var rule01 = new Outscale.LoadBalancerListenerRule("rule01", new()
        {
            Listeners = new[]
            {
                new Outscale.Inputs.LoadBalancerListenerRuleListenerArgs
                {
                    LoadBalancerName = loadBalancer01.Id,
                    LoadBalancerPort = 80,
                },
            },
            ListenerRules = new[]
            {
                new Outscale.Inputs.LoadBalancerListenerRuleListenerRuleArgs
                {
                    Action = "forward",
                    ListenerRuleName = "terraform-listener-rule01",
                    PathPattern = "*.abc.*.abc.*.com",
                    Priority = 10,
                },
            },
            VmIds = new[]
            {
                vm01.VmId,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.outscale.LoadBalancerListenerRule;
    import com.pulumi.outscale.LoadBalancerListenerRuleArgs;
    import com.pulumi.outscale.inputs.LoadBalancerListenerRuleListenerArgs;
    import com.pulumi.outscale.inputs.LoadBalancerListenerRuleListenerRuleArgs;
    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 rule01 = new LoadBalancerListenerRule("rule01", LoadBalancerListenerRuleArgs.builder()
                .listeners(LoadBalancerListenerRuleListenerArgs.builder()
                    .loadBalancerName(loadBalancer01.id())
                    .loadBalancerPort(80.0)
                    .build())
                .listenerRules(LoadBalancerListenerRuleListenerRuleArgs.builder()
                    .action("forward")
                    .listenerRuleName("terraform-listener-rule01")
                    .pathPattern("*.abc.*.abc.*.com")
                    .priority(10.0)
                    .build())
                .vmIds(vm01.vmId())
                .build());
    
        }
    }
    
    resources:
      rule01:
        type: outscale:LoadBalancerListenerRule
        properties:
          listeners:
            - loadBalancerName: ${loadBalancer01.id}
              loadBalancerPort: 80
          listenerRules:
            - action: forward
              listenerRuleName: terraform-listener-rule01
              pathPattern: '*.abc.*.abc.*.com'
              priority: 10
          vmIds:
            - ${vm01.vmId}
    
    Example coming soon!
    

    Create a listener rule based on host pattern

    import * as pulumi from "@pulumi/pulumi";
    import * as outscale from "@pulumi/outscale";
    
    const rule02 = new outscale.LoadBalancerListenerRule("rule02", {
        listeners: [{
            loadBalancerName: loadBalancer01.id,
            loadBalancerPort: 80,
        }],
        listenerRules: [{
            action: "forward",
            listenerRuleName: "terraform-listener-rule02",
            hostNamePattern: "*.abc.-.abc.*.com",
            priority: 1,
        }],
        vmIds: [vm01.vmId],
    });
    
    import pulumi
    import pulumi_outscale as outscale
    
    rule02 = outscale.LoadBalancerListenerRule("rule02",
        listeners=[{
            "load_balancer_name": load_balancer01["id"],
            "load_balancer_port": 80,
        }],
        listener_rules=[{
            "action": "forward",
            "listener_rule_name": "terraform-listener-rule02",
            "host_name_pattern": "*.abc.-.abc.*.com",
            "priority": 1,
        }],
        vm_ids=[vm01["vmId"]])
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/outscale/outscale"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := outscale.NewLoadBalancerListenerRule(ctx, "rule02", &outscale.LoadBalancerListenerRuleArgs{
    			Listeners: outscale.LoadBalancerListenerRuleListenerArray{
    				&outscale.LoadBalancerListenerRuleListenerArgs{
    					LoadBalancerName: pulumi.Any(loadBalancer01.Id),
    					LoadBalancerPort: pulumi.Float64(80),
    				},
    			},
    			ListenerRules: outscale.LoadBalancerListenerRuleListenerRuleArray{
    				&outscale.LoadBalancerListenerRuleListenerRuleArgs{
    					Action:           pulumi.String("forward"),
    					ListenerRuleName: pulumi.String("terraform-listener-rule02"),
    					HostNamePattern:  pulumi.String("*.abc.-.abc.*.com"),
    					Priority:         pulumi.Float64(1),
    				},
    			},
    			VmIds: pulumi.StringArray{
    				vm01.VmId,
    			},
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Outscale = Pulumi.Outscale;
    
    return await Deployment.RunAsync(() => 
    {
        var rule02 = new Outscale.LoadBalancerListenerRule("rule02", new()
        {
            Listeners = new[]
            {
                new Outscale.Inputs.LoadBalancerListenerRuleListenerArgs
                {
                    LoadBalancerName = loadBalancer01.Id,
                    LoadBalancerPort = 80,
                },
            },
            ListenerRules = new[]
            {
                new Outscale.Inputs.LoadBalancerListenerRuleListenerRuleArgs
                {
                    Action = "forward",
                    ListenerRuleName = "terraform-listener-rule02",
                    HostNamePattern = "*.abc.-.abc.*.com",
                    Priority = 1,
                },
            },
            VmIds = new[]
            {
                vm01.VmId,
            },
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.outscale.LoadBalancerListenerRule;
    import com.pulumi.outscale.LoadBalancerListenerRuleArgs;
    import com.pulumi.outscale.inputs.LoadBalancerListenerRuleListenerArgs;
    import com.pulumi.outscale.inputs.LoadBalancerListenerRuleListenerRuleArgs;
    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 rule02 = new LoadBalancerListenerRule("rule02", LoadBalancerListenerRuleArgs.builder()
                .listeners(LoadBalancerListenerRuleListenerArgs.builder()
                    .loadBalancerName(loadBalancer01.id())
                    .loadBalancerPort(80.0)
                    .build())
                .listenerRules(LoadBalancerListenerRuleListenerRuleArgs.builder()
                    .action("forward")
                    .listenerRuleName("terraform-listener-rule02")
                    .hostNamePattern("*.abc.-.abc.*.com")
                    .priority(1.0)
                    .build())
                .vmIds(vm01.vmId())
                .build());
    
        }
    }
    
    resources:
      rule02:
        type: outscale:LoadBalancerListenerRule
        properties:
          listeners:
            - loadBalancerName: ${loadBalancer01.id}
              loadBalancerPort: 80
          listenerRules:
            - action: forward
              listenerRuleName: terraform-listener-rule02
              hostNamePattern: '*.abc.-.abc.*.com'
              priority: 1
          vmIds:
            - ${vm01.vmId}
    
    Example coming soon!
    

    Create LoadBalancerListenerRule Resource

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

    Constructor syntax

    new LoadBalancerListenerRule(name: string, args: LoadBalancerListenerRuleArgs, opts?: CustomResourceOptions);
    @overload
    def LoadBalancerListenerRule(resource_name: str,
                                 args: LoadBalancerListenerRuleArgs,
                                 opts: Optional[ResourceOptions] = None)
    
    @overload
    def LoadBalancerListenerRule(resource_name: str,
                                 opts: Optional[ResourceOptions] = None,
                                 vm_ids: Optional[Sequence[str]] = None,
                                 listener_rules: Optional[Sequence[LoadBalancerListenerRuleListenerRuleArgs]] = None,
                                 listeners: Optional[Sequence[LoadBalancerListenerRuleListenerArgs]] = None,
                                 timeouts: Optional[LoadBalancerListenerRuleTimeoutsArgs] = None)
    func NewLoadBalancerListenerRule(ctx *Context, name string, args LoadBalancerListenerRuleArgs, opts ...ResourceOption) (*LoadBalancerListenerRule, error)
    public LoadBalancerListenerRule(string name, LoadBalancerListenerRuleArgs args, CustomResourceOptions? opts = null)
    public LoadBalancerListenerRule(String name, LoadBalancerListenerRuleArgs args)
    public LoadBalancerListenerRule(String name, LoadBalancerListenerRuleArgs args, CustomResourceOptions options)
    
    type: outscale:LoadBalancerListenerRule
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    
    resource "outscale_load_balancer_listener_rule" "name" {
        # resource properties
    }

    Parameters

    name string
    The unique name of the resource.
    args LoadBalancerListenerRuleArgs
    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 LoadBalancerListenerRuleArgs
    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 LoadBalancerListenerRuleArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LoadBalancerListenerRuleArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LoadBalancerListenerRuleArgs
    The arguments to resource properties.
    options CustomResourceOptions
    Bag of options to control resource's behavior.

    Constructor example

    The following reference example uses placeholder values for all input properties.

    var loadBalancerListenerRuleResource = new Outscale.LoadBalancerListenerRule("loadBalancerListenerRuleResource", new()
    {
        VmIds = new[]
        {
            "string",
        },
        ListenerRules = new[]
        {
            new Outscale.Inputs.LoadBalancerListenerRuleListenerRuleArgs
            {
                ListenerRuleName = "string",
                Priority = 0.0,
                Action = "string",
                HostNamePattern = "string",
                ListenerId = 0.0,
                ListenerRuleId = 0.0,
                PathPattern = "string",
            },
        },
        Listeners = new[]
        {
            new Outscale.Inputs.LoadBalancerListenerRuleListenerArgs
            {
                LoadBalancerName = "string",
                LoadBalancerPort = 0.0,
            },
        },
        Timeouts = new Outscale.Inputs.LoadBalancerListenerRuleTimeoutsArgs
        {
            Create = "string",
            Delete = "string",
            Read = "string",
            Update = "string",
        },
    });
    
    example, err := outscale.NewLoadBalancerListenerRule(ctx, "loadBalancerListenerRuleResource", &outscale.LoadBalancerListenerRuleArgs{
    	VmIds: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	ListenerRules: outscale.LoadBalancerListenerRuleListenerRuleArray{
    		&outscale.LoadBalancerListenerRuleListenerRuleArgs{
    			ListenerRuleName: pulumi.String("string"),
    			Priority:         pulumi.Float64(0),
    			Action:           pulumi.String("string"),
    			HostNamePattern:  pulumi.String("string"),
    			ListenerId:       pulumi.Float64(0),
    			ListenerRuleId:   pulumi.Float64(0),
    			PathPattern:      pulumi.String("string"),
    		},
    	},
    	Listeners: outscale.LoadBalancerListenerRuleListenerArray{
    		&outscale.LoadBalancerListenerRuleListenerArgs{
    			LoadBalancerName: pulumi.String("string"),
    			LoadBalancerPort: pulumi.Float64(0),
    		},
    	},
    	Timeouts: &outscale.LoadBalancerListenerRuleTimeoutsArgs{
    		Create: pulumi.String("string"),
    		Delete: pulumi.String("string"),
    		Read:   pulumi.String("string"),
    		Update: pulumi.String("string"),
    	},
    })
    
    resource "outscale_load_balancer_listener_rule" "loadBalancerListenerRuleResource" {
      lifecycle {
        create_before_destroy = true
      }
      vm_ids = ["string"]
      listener_rules {
        listener_rule_name = "string"
        priority           = 0
        action             = "string"
        host_name_pattern  = "string"
        listener_id        = 0
        listener_rule_id   = 0
        path_pattern       = "string"
      }
      listeners {
        load_balancer_name = "string"
        load_balancer_port = 0
      }
      _ {
        timeouts = {
          create = "string"
          delete = "string"
          read   = "string"
          update = "string"
        }
      }
    }
    
    var loadBalancerListenerRuleResource = new LoadBalancerListenerRule("loadBalancerListenerRuleResource", LoadBalancerListenerRuleArgs.builder()
        .vmIds("string")
        .listenerRules(LoadBalancerListenerRuleListenerRuleArgs.builder()
            .listenerRuleName("string")
            .priority(0.0)
            .action("string")
            .hostNamePattern("string")
            .listenerId(0.0)
            .listenerRuleId(0.0)
            .pathPattern("string")
            .build())
        .listeners(LoadBalancerListenerRuleListenerArgs.builder()
            .loadBalancerName("string")
            .loadBalancerPort(0.0)
            .build())
        .timeouts(LoadBalancerListenerRuleTimeoutsArgs.builder()
            .create("string")
            .delete("string")
            .read("string")
            .update("string")
            .build())
        .build());
    
    load_balancer_listener_rule_resource = outscale.LoadBalancerListenerRule("loadBalancerListenerRuleResource",
        vm_ids=["string"],
        listener_rules=[{
            "listener_rule_name": "string",
            "priority": float(0),
            "action": "string",
            "host_name_pattern": "string",
            "listener_id": float(0),
            "listener_rule_id": float(0),
            "path_pattern": "string",
        }],
        listeners=[{
            "load_balancer_name": "string",
            "load_balancer_port": float(0),
        }],
        timeouts={
            "create": "string",
            "delete": "string",
            "read": "string",
            "update": "string",
        })
    
    const loadBalancerListenerRuleResource = new outscale.LoadBalancerListenerRule("loadBalancerListenerRuleResource", {
        vmIds: ["string"],
        listenerRules: [{
            listenerRuleName: "string",
            priority: 0,
            action: "string",
            hostNamePattern: "string",
            listenerId: 0,
            listenerRuleId: 0,
            pathPattern: "string",
        }],
        listeners: [{
            loadBalancerName: "string",
            loadBalancerPort: 0,
        }],
        timeouts: {
            create: "string",
            "delete": "string",
            read: "string",
            update: "string",
        },
    });
    
    type: outscale:LoadBalancerListenerRule
    properties:
        listenerRules:
            - action: string
              hostNamePattern: string
              listenerId: 0
              listenerRuleId: 0
              listenerRuleName: string
              pathPattern: string
              priority: 0
        listeners:
            - loadBalancerName: string
              loadBalancerPort: 0
        timeouts:
            create: string
            delete: string
            read: string
            update: string
        vmIds:
            - string
    

    LoadBalancerListenerRule 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 LoadBalancerListenerRule resource accepts the following input properties:

    VmIds List<string>
    The IDs of the backend VMs.
    ListenerRules List<LoadBalancerListenerRuleListenerRule>
    Information about the listener rule.
    Listeners List<LoadBalancerListenerRuleListener>
    Information about the load balancer.
    Timeouts LoadBalancerListenerRuleTimeouts
    VmIds []string
    The IDs of the backend VMs.
    ListenerRules []LoadBalancerListenerRuleListenerRuleArgs
    Information about the listener rule.
    Listeners []LoadBalancerListenerRuleListenerArgs
    Information about the load balancer.
    Timeouts LoadBalancerListenerRuleTimeoutsArgs
    vm_ids list(string)
    The IDs of the backend VMs.
    listener_rules list(object)
    Information about the listener rule.
    listeners list(object)
    Information about the load balancer.
    timeouts object
    vmIds List<String>
    The IDs of the backend VMs.
    listenerRules List<LoadBalancerListenerRuleListenerRule>
    Information about the listener rule.
    listeners List<LoadBalancerListenerRuleListener>
    Information about the load balancer.
    timeouts LoadBalancerListenerRuleTimeouts
    vmIds string[]
    The IDs of the backend VMs.
    listenerRules LoadBalancerListenerRuleListenerRule[]
    Information about the listener rule.
    listeners LoadBalancerListenerRuleListener[]
    Information about the load balancer.
    timeouts LoadBalancerListenerRuleTimeouts
    vm_ids Sequence[str]
    The IDs of the backend VMs.
    listener_rules Sequence[LoadBalancerListenerRuleListenerRuleArgs]
    Information about the listener rule.
    listeners Sequence[LoadBalancerListenerRuleListenerArgs]
    Information about the load balancer.
    timeouts LoadBalancerListenerRuleTimeoutsArgs
    vmIds List<String>
    The IDs of the backend VMs.
    listenerRules List<Property Map>
    Information about the listener rule.
    listeners List<Property Map>
    Information about the load balancer.
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    RequestId string
    Id string
    The provider-assigned unique ID for this managed resource.
    RequestId string
    id string
    The provider-assigned unique ID for this managed resource.
    request_id string
    id String
    The provider-assigned unique ID for this managed resource.
    requestId String
    id string
    The provider-assigned unique ID for this managed resource.
    requestId string
    id str
    The provider-assigned unique ID for this managed resource.
    request_id str
    id String
    The provider-assigned unique ID for this managed resource.
    requestId String

    Look up Existing LoadBalancerListenerRule Resource

    Get an existing LoadBalancerListenerRule 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?: LoadBalancerListenerRuleState, opts?: CustomResourceOptions): LoadBalancerListenerRule
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            listener_rules: Optional[Sequence[LoadBalancerListenerRuleListenerRuleArgs]] = None,
            listeners: Optional[Sequence[LoadBalancerListenerRuleListenerArgs]] = None,
            request_id: Optional[str] = None,
            timeouts: Optional[LoadBalancerListenerRuleTimeoutsArgs] = None,
            vm_ids: Optional[Sequence[str]] = None) -> LoadBalancerListenerRule
    func GetLoadBalancerListenerRule(ctx *Context, name string, id IDInput, state *LoadBalancerListenerRuleState, opts ...ResourceOption) (*LoadBalancerListenerRule, error)
    public static LoadBalancerListenerRule Get(string name, Input<string> id, LoadBalancerListenerRuleState? state, CustomResourceOptions? opts = null)
    public static LoadBalancerListenerRule get(String name, Output<String> id, LoadBalancerListenerRuleState state, CustomResourceOptions options)
    resources:  existingLoadBalancerListenerRule:    type: outscale:LoadBalancerListenerRule    get:      id: ${id}
    import {
      to = outscale_load_balancer_listener_rule.example
      id = "${id}"
    }
    
    name string
    The unique name of the resulting resource.
    id Input<ID>
    The unique provider ID of the resource to look up.
    state LoadBalancerListenerRuleState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resulting resource.
    id str
    The unique provider ID of the resource to look up.
    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 resulting resource.
    id IDInput
    The unique provider ID of the resource to look up.
    state LoadBalancerListenerRuleState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resulting resource.
    id Input<string>
    The unique provider ID of the resource to look up.
    state LoadBalancerListenerRuleState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resulting resource.
    id Output<String>
    The unique provider ID of the resource to look up.
    state LoadBalancerListenerRuleState
    Known property values the provider needs, along with the ID, to find the resource. Usually not required.
    options CustomResourceOptions
    Bag of options to control resource's behavior.
    The following state arguments are supported:
    ListenerRules List<LoadBalancerListenerRuleListenerRule>
    Information about the listener rule.
    Listeners List<LoadBalancerListenerRuleListener>
    Information about the load balancer.
    RequestId string
    Timeouts LoadBalancerListenerRuleTimeouts
    VmIds List<string>
    The IDs of the backend VMs.
    ListenerRules []LoadBalancerListenerRuleListenerRuleArgs
    Information about the listener rule.
    Listeners []LoadBalancerListenerRuleListenerArgs
    Information about the load balancer.
    RequestId string
    Timeouts LoadBalancerListenerRuleTimeoutsArgs
    VmIds []string
    The IDs of the backend VMs.
    listener_rules list(object)
    Information about the listener rule.
    listeners list(object)
    Information about the load balancer.
    request_id string
    timeouts object
    vm_ids list(string)
    The IDs of the backend VMs.
    listenerRules List<LoadBalancerListenerRuleListenerRule>
    Information about the listener rule.
    listeners List<LoadBalancerListenerRuleListener>
    Information about the load balancer.
    requestId String
    timeouts LoadBalancerListenerRuleTimeouts
    vmIds List<String>
    The IDs of the backend VMs.
    listenerRules LoadBalancerListenerRuleListenerRule[]
    Information about the listener rule.
    listeners LoadBalancerListenerRuleListener[]
    Information about the load balancer.
    requestId string
    timeouts LoadBalancerListenerRuleTimeouts
    vmIds string[]
    The IDs of the backend VMs.
    listener_rules Sequence[LoadBalancerListenerRuleListenerRuleArgs]
    Information about the listener rule.
    listeners Sequence[LoadBalancerListenerRuleListenerArgs]
    Information about the load balancer.
    request_id str
    timeouts LoadBalancerListenerRuleTimeoutsArgs
    vm_ids Sequence[str]
    The IDs of the backend VMs.
    listenerRules List<Property Map>
    Information about the listener rule.
    listeners List<Property Map>
    Information about the load balancer.
    requestId String
    timeouts Property Map
    vmIds List<String>
    The IDs of the backend VMs.

    Supporting Types

    LoadBalancerListenerRuleListener, LoadBalancerListenerRuleListenerArgs

    LoadBalancerName string
    The name of the load balancer to which the listener is attached.
    LoadBalancerPort double
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).
    LoadBalancerName string
    The name of the load balancer to which the listener is attached.
    LoadBalancerPort float64
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).
    load_balancer_name string
    The name of the load balancer to which the listener is attached.
    load_balancer_port number
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).
    loadBalancerName String
    The name of the load balancer to which the listener is attached.
    loadBalancerPort Double
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).
    loadBalancerName string
    The name of the load balancer to which the listener is attached.
    loadBalancerPort number
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).
    load_balancer_name str
    The name of the load balancer to which the listener is attached.
    load_balancer_port float
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).
    loadBalancerName String
    The name of the load balancer to which the listener is attached.
    loadBalancerPort Number
    The port of load balancer on which the load balancer is listening (between 1 and 65535 both included).

    LoadBalancerListenerRuleListenerRule, LoadBalancerListenerRuleListenerRuleArgs

    ListenerRuleName string
    A human-readable name for the listener rule.
    Priority double
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    Action string
    The type of action for the rule (always forward).
    HostNamePattern string
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    ListenerId double
    The ID of the listener.
    ListenerRuleId double
    The ID of the listener rule.
    PathPattern string
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.
    ListenerRuleName string
    A human-readable name for the listener rule.
    Priority float64
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    Action string
    The type of action for the rule (always forward).
    HostNamePattern string
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    ListenerId float64
    The ID of the listener.
    ListenerRuleId float64
    The ID of the listener rule.
    PathPattern string
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.
    listener_rule_name string
    A human-readable name for the listener rule.
    priority number
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    action string
    The type of action for the rule (always forward).
    host_name_pattern string
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    listener_id number
    The ID of the listener.
    listener_rule_id number
    The ID of the listener rule.
    path_pattern string
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.
    listenerRuleName String
    A human-readable name for the listener rule.
    priority Double
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    action String
    The type of action for the rule (always forward).
    hostNamePattern String
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    listenerId Double
    The ID of the listener.
    listenerRuleId Double
    The ID of the listener rule.
    pathPattern String
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.
    listenerRuleName string
    A human-readable name for the listener rule.
    priority number
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    action string
    The type of action for the rule (always forward).
    hostNamePattern string
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    listenerId number
    The ID of the listener.
    listenerRuleId number
    The ID of the listener rule.
    pathPattern string
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.
    listener_rule_name str
    A human-readable name for the listener rule.
    priority float
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    action str
    The type of action for the rule (always forward).
    host_name_pattern str
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    listener_id float
    The ID of the listener.
    listener_rule_id float
    The ID of the listener rule.
    path_pattern str
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.
    listenerRuleName String
    A human-readable name for the listener rule.
    priority Number
    The priority level of the listener rule, between 1 and 19999 both included. Each rule must have a unique priority level. Otherwise, an error is returned.
    action String
    The type of action for the rule (always forward).
    hostNamePattern String
    A host-name pattern for the rule, with a maximum length of 128 characters. This host-name pattern supports maximum three wildcards, and must not contain any special characters except -.?.
    listenerId Number
    The ID of the listener.
    listenerRuleId Number
    The ID of the listener rule.
    pathPattern String
    A path pattern for the rule, with a maximum length of 128 characters. This path pattern supports maximum three wildcards, and must not contain any special characters except _-.$/~&quot;'@:+?.

    LoadBalancerListenerRuleTimeouts, LoadBalancerListenerRuleTimeoutsArgs

    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    Delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    Read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    Update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update string
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update str
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    create String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).
    delete String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Setting a timeout for a Delete operation is only applicable if changes are saved into state before the destroy operation occurs.
    read String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
    update String
    A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours).

    Package Details

    Repository
    outscale outscale/terraform-provider-outscale
    License
    Notes
    This Pulumi package is based on the outscale Terraform Provider.
    outscale
    Viewing docs for outscale 1.8.1
    published on Wednesday, Sep 30, 2026 by outscale

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial