outscale.LoadBalancer
Explore with Pulumi AI
Manages a load balancer.
For more information on this resource, see the User Guide.
For more information on this resource actions, see the API documentation.
Example Usage
Create a load balancer in the public Cloud
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const loadBalancer01 = new outscale.LoadBalancer("loadBalancer01", {
    listeners: [{
        backendPort: 8080,
        backendProtocol: "HTTP",
        loadBalancerPort: 8080,
        loadBalancerProtocol: "HTTP",
    }],
    loadBalancerName: "terraform-public-load-balancer",
    subregionNames: [`${_var.region}a`],
    tags: [{
        key: "name",
        value: "terraform-public-load-balancer",
    }],
});
import pulumi
import pulumi_outscale as outscale
load_balancer01 = outscale.LoadBalancer("loadBalancer01",
    listeners=[{
        "backend_port": 8080,
        "backend_protocol": "HTTP",
        "load_balancer_port": 8080,
        "load_balancer_protocol": "HTTP",
    }],
    load_balancer_name="terraform-public-load-balancer",
    subregion_names=[f"{var['region']}a"],
    tags=[{
        "key": "name",
        "value": "terraform-public-load-balancer",
    }])
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 {
		_, err := outscale.NewLoadBalancer(ctx, "loadBalancer01", &outscale.LoadBalancerArgs{
			Listeners: outscale.LoadBalancerListenerArray{
				&outscale.LoadBalancerListenerArgs{
					BackendPort:          pulumi.Float64(8080),
					BackendProtocol:      pulumi.String("HTTP"),
					LoadBalancerPort:     pulumi.Float64(8080),
					LoadBalancerProtocol: pulumi.String("HTTP"),
				},
			},
			LoadBalancerName: pulumi.String("terraform-public-load-balancer"),
			SubregionNames: pulumi.StringArray{
				pulumi.Sprintf("%va", _var.Region),
			},
			Tags: outscale.LoadBalancerTagArray{
				&outscale.LoadBalancerTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-public-load-balancer"),
				},
			},
		})
		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 loadBalancer01 = new Outscale.LoadBalancer("loadBalancer01", new()
    {
        Listeners = new[]
        {
            new Outscale.Inputs.LoadBalancerListenerArgs
            {
                BackendPort = 8080,
                BackendProtocol = "HTTP",
                LoadBalancerPort = 8080,
                LoadBalancerProtocol = "HTTP",
            },
        },
        LoadBalancerName = "terraform-public-load-balancer",
        SubregionNames = new[]
        {
            $"{@var.Region}a",
        },
        Tags = new[]
        {
            new Outscale.Inputs.LoadBalancerTagArgs
            {
                Key = "name",
                Value = "terraform-public-load-balancer",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.LoadBalancer;
import com.pulumi.outscale.LoadBalancerArgs;
import com.pulumi.outscale.inputs.LoadBalancerListenerArgs;
import com.pulumi.outscale.inputs.LoadBalancerTagArgs;
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 loadBalancer01 = new LoadBalancer("loadBalancer01", LoadBalancerArgs.builder()
            .listeners(LoadBalancerListenerArgs.builder()
                .backendPort(8080)
                .backendProtocol("HTTP")
                .loadBalancerPort(8080)
                .loadBalancerProtocol("HTTP")
                .build())
            .loadBalancerName("terraform-public-load-balancer")
            .subregionNames(String.format("%sa", var_.region()))
            .tags(LoadBalancerTagArgs.builder()
                .key("name")
                .value("terraform-public-load-balancer")
                .build())
            .build());
    }
}
resources:
  loadBalancer01:
    type: outscale:LoadBalancer
    properties:
      listeners:
        - backendPort: 8080
          backendProtocol: HTTP
          loadBalancerPort: 8080
          loadBalancerProtocol: HTTP
      loadBalancerName: terraform-public-load-balancer
      subregionNames:
        - ${var.region}a
      tags:
        - key: name
          value: terraform-public-load-balancer
Create a load balancer in a Net
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const net01 = new outscale.Net("net01", {ipRange: "10.0.0.0/16"});
const subnet01 = new outscale.Subnet("subnet01", {
    netId: net01.netId,
    ipRange: "10.0.0.0/24",
    tags: [{
        key: "Name",
        value: "terraform-subnet-for-internal-load-balancer",
    }],
});
const securityGroup01 = new outscale.SecurityGroup("securityGroup01", {
    description: "Terraform security group for internal load balancer",
    securityGroupName: "terraform-security-group-for-internal-load-balancer",
    netId: net01.netId,
    tags: [{
        key: "Name",
        value: "terraform-security-group-for-internal-load-balancer",
    }],
});
const loadBalancer02 = new outscale.LoadBalancer("loadBalancer02", {
    loadBalancerName: "terraform-private-load-balancer",
    listeners: [{
        backendPort: 80,
        backendProtocol: "TCP",
        loadBalancerProtocol: "TCP",
        loadBalancerPort: 80,
    }],
    subnets: [subnet01.subnetId],
    securityGroups: [securityGroup01.securityGroupId],
    loadBalancerType: "internal",
    tags: [{
        key: "name",
        value: "terraform-private-load-balancer",
    }],
});
import pulumi
import pulumi_outscale as outscale
net01 = outscale.Net("net01", ip_range="10.0.0.0/16")
subnet01 = outscale.Subnet("subnet01",
    net_id=net01.net_id,
    ip_range="10.0.0.0/24",
    tags=[{
        "key": "Name",
        "value": "terraform-subnet-for-internal-load-balancer",
    }])
security_group01 = outscale.SecurityGroup("securityGroup01",
    description="Terraform security group for internal load balancer",
    security_group_name="terraform-security-group-for-internal-load-balancer",
    net_id=net01.net_id,
    tags=[{
        "key": "Name",
        "value": "terraform-security-group-for-internal-load-balancer",
    }])
load_balancer02 = outscale.LoadBalancer("loadBalancer02",
    load_balancer_name="terraform-private-load-balancer",
    listeners=[{
        "backend_port": 80,
        "backend_protocol": "TCP",
        "load_balancer_protocol": "TCP",
        "load_balancer_port": 80,
    }],
    subnets=[subnet01.subnet_id],
    security_groups=[security_group01.security_group_id],
    load_balancer_type="internal",
    tags=[{
        "key": "name",
        "value": "terraform-private-load-balancer",
    }])
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 {
		net01, err := outscale.NewNet(ctx, "net01", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		subnet01, err := outscale.NewSubnet(ctx, "subnet01", &outscale.SubnetArgs{
			NetId:   net01.NetId,
			IpRange: pulumi.String("10.0.0.0/24"),
			Tags: outscale.SubnetTagArray{
				&outscale.SubnetTagArgs{
					Key:   pulumi.String("Name"),
					Value: pulumi.String("terraform-subnet-for-internal-load-balancer"),
				},
			},
		})
		if err != nil {
			return err
		}
		securityGroup01, err := outscale.NewSecurityGroup(ctx, "securityGroup01", &outscale.SecurityGroupArgs{
			Description:       pulumi.String("Terraform security group for internal load balancer"),
			SecurityGroupName: pulumi.String("terraform-security-group-for-internal-load-balancer"),
			NetId:             net01.NetId,
			Tags: outscale.SecurityGroupTagArray{
				&outscale.SecurityGroupTagArgs{
					Key:   pulumi.String("Name"),
					Value: pulumi.String("terraform-security-group-for-internal-load-balancer"),
				},
			},
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewLoadBalancer(ctx, "loadBalancer02", &outscale.LoadBalancerArgs{
			LoadBalancerName: pulumi.String("terraform-private-load-balancer"),
			Listeners: outscale.LoadBalancerListenerArray{
				&outscale.LoadBalancerListenerArgs{
					BackendPort:          pulumi.Float64(80),
					BackendProtocol:      pulumi.String("TCP"),
					LoadBalancerProtocol: pulumi.String("TCP"),
					LoadBalancerPort:     pulumi.Float64(80),
				},
			},
			Subnets: pulumi.StringArray{
				subnet01.SubnetId,
			},
			SecurityGroups: pulumi.StringArray{
				securityGroup01.SecurityGroupId,
			},
			LoadBalancerType: pulumi.String("internal"),
			Tags: outscale.LoadBalancerTagArray{
				&outscale.LoadBalancerTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-private-load-balancer"),
				},
			},
		})
		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 net01 = new Outscale.Net("net01", new()
    {
        IpRange = "10.0.0.0/16",
    });
    var subnet01 = new Outscale.Subnet("subnet01", new()
    {
        NetId = net01.NetId,
        IpRange = "10.0.0.0/24",
        Tags = new[]
        {
            new Outscale.Inputs.SubnetTagArgs
            {
                Key = "Name",
                Value = "terraform-subnet-for-internal-load-balancer",
            },
        },
    });
    var securityGroup01 = new Outscale.SecurityGroup("securityGroup01", new()
    {
        Description = "Terraform security group for internal load balancer",
        SecurityGroupName = "terraform-security-group-for-internal-load-balancer",
        NetId = net01.NetId,
        Tags = new[]
        {
            new Outscale.Inputs.SecurityGroupTagArgs
            {
                Key = "Name",
                Value = "terraform-security-group-for-internal-load-balancer",
            },
        },
    });
    var loadBalancer02 = new Outscale.LoadBalancer("loadBalancer02", new()
    {
        LoadBalancerName = "terraform-private-load-balancer",
        Listeners = new[]
        {
            new Outscale.Inputs.LoadBalancerListenerArgs
            {
                BackendPort = 80,
                BackendProtocol = "TCP",
                LoadBalancerProtocol = "TCP",
                LoadBalancerPort = 80,
            },
        },
        Subnets = new[]
        {
            subnet01.SubnetId,
        },
        SecurityGroups = new[]
        {
            securityGroup01.SecurityGroupId,
        },
        LoadBalancerType = "internal",
        Tags = new[]
        {
            new Outscale.Inputs.LoadBalancerTagArgs
            {
                Key = "name",
                Value = "terraform-private-load-balancer",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.Subnet;
import com.pulumi.outscale.SubnetArgs;
import com.pulumi.outscale.inputs.SubnetTagArgs;
import com.pulumi.outscale.SecurityGroup;
import com.pulumi.outscale.SecurityGroupArgs;
import com.pulumi.outscale.inputs.SecurityGroupTagArgs;
import com.pulumi.outscale.LoadBalancer;
import com.pulumi.outscale.LoadBalancerArgs;
import com.pulumi.outscale.inputs.LoadBalancerListenerArgs;
import com.pulumi.outscale.inputs.LoadBalancerTagArgs;
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 net01 = new Net("net01", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .build());
        var subnet01 = new Subnet("subnet01", SubnetArgs.builder()
            .netId(net01.netId())
            .ipRange("10.0.0.0/24")
            .tags(SubnetTagArgs.builder()
                .key("Name")
                .value("terraform-subnet-for-internal-load-balancer")
                .build())
            .build());
        var securityGroup01 = new SecurityGroup("securityGroup01", SecurityGroupArgs.builder()
            .description("Terraform security group for internal load balancer")
            .securityGroupName("terraform-security-group-for-internal-load-balancer")
            .netId(net01.netId())
            .tags(SecurityGroupTagArgs.builder()
                .key("Name")
                .value("terraform-security-group-for-internal-load-balancer")
                .build())
            .build());
        var loadBalancer02 = new LoadBalancer("loadBalancer02", LoadBalancerArgs.builder()
            .loadBalancerName("terraform-private-load-balancer")
            .listeners(LoadBalancerListenerArgs.builder()
                .backendPort(80)
                .backendProtocol("TCP")
                .loadBalancerProtocol("TCP")
                .loadBalancerPort(80)
                .build())
            .subnets(subnet01.subnetId())
            .securityGroups(securityGroup01.securityGroupId())
            .loadBalancerType("internal")
            .tags(LoadBalancerTagArgs.builder()
                .key("name")
                .value("terraform-private-load-balancer")
                .build())
            .build());
    }
}
resources:
  net01:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
  subnet01:
    type: outscale:Subnet
    properties:
      netId: ${net01.netId}
      ipRange: 10.0.0.0/24
      tags:
        - key: Name
          value: terraform-subnet-for-internal-load-balancer
  securityGroup01:
    type: outscale:SecurityGroup
    properties:
      description: Terraform security group for internal load balancer
      securityGroupName: terraform-security-group-for-internal-load-balancer
      netId: ${net01.netId}
      tags:
        - key: Name
          value: terraform-security-group-for-internal-load-balancer
  loadBalancer02:
    type: outscale:LoadBalancer
    properties:
      loadBalancerName: terraform-private-load-balancer
      listeners:
        - backendPort: 80
          backendProtocol: TCP
          loadBalancerProtocol: TCP
          loadBalancerPort: 80
      subnets:
        - ${subnet01.subnetId}
      securityGroups:
        - ${securityGroup01.securityGroupId}
      loadBalancerType: internal
      tags:
        - key: name
          value: terraform-private-load-balancer
Create an internet-facing load balancer in a Net
import * as pulumi from "@pulumi/pulumi";
import * as outscale from "@pulumi/outscale";
const net02 = new outscale.Net("net02", {ipRange: "10.0.0.0/16"});
const subnet02 = new outscale.Subnet("subnet02", {
    netId: net02.netId,
    ipRange: "10.0.0.0/24",
    tags: [{
        key: "Name",
        value: "terraform-security-group-for-load-balancer",
    }],
});
const internetService01 = new outscale.InternetService("internetService01", {}, {
    dependsOn: [net02],
});
const internetServiceLink01 = new outscale.InternetServiceLink("internetServiceLink01", {
    internetServiceId: internetService01.internetServiceId,
    netId: net02.netId,
});
const routeTable01 = new outscale.RouteTable("routeTable01", {
    netId: net02.netId,
    tags: [{
        key: "name",
        value: "terraform-route-table-for-load-balancer",
    }],
});
const route01 = new outscale.Route("route01", {
    gatewayId: internetService01.outscaleInternetServiceId,
    destinationIpRange: "10.0.0.0/0",
    routeTableId: routeTable01.routeTableId,
});
const routeTableLink01 = new outscale.RouteTableLink("routeTableLink01", {
    routeTableId: routeTable01.routeTableId,
    subnetId: subnet02.subnetId,
});
const loadBalancer03 = new outscale.LoadBalancer("loadBalancer03", {
    loadBalancerName: "terraform-internet-private-lb",
    listeners: [
        {
            backendPort: 80,
            backendProtocol: "TCP",
            loadBalancerProtocol: "TCP",
            loadBalancerPort: 80,
        },
        {
            backendPort: 8080,
            backendProtocol: "HTTP",
            loadBalancerProtocol: "HTTP",
            loadBalancerPort: 8080,
        },
    ],
    subnets: [subnet02.subnetId],
    loadBalancerType: "internet-facing",
    publicIp: "192.0.2.0",
    tags: [{
        key: "name",
        value: "terraform-internet-private-lb",
    }],
}, {
    dependsOn: [
        route01,
        routeTableLink01,
    ],
});
import pulumi
import pulumi_outscale as outscale
net02 = outscale.Net("net02", ip_range="10.0.0.0/16")
subnet02 = outscale.Subnet("subnet02",
    net_id=net02.net_id,
    ip_range="10.0.0.0/24",
    tags=[{
        "key": "Name",
        "value": "terraform-security-group-for-load-balancer",
    }])
internet_service01 = outscale.InternetService("internetService01", opts = pulumi.ResourceOptions(depends_on=[net02]))
internet_service_link01 = outscale.InternetServiceLink("internetServiceLink01",
    internet_service_id=internet_service01.internet_service_id,
    net_id=net02.net_id)
route_table01 = outscale.RouteTable("routeTable01",
    net_id=net02.net_id,
    tags=[{
        "key": "name",
        "value": "terraform-route-table-for-load-balancer",
    }])
route01 = outscale.Route("route01",
    gateway_id=internet_service01.outscale_internet_service_id,
    destination_ip_range="10.0.0.0/0",
    route_table_id=route_table01.route_table_id)
route_table_link01 = outscale.RouteTableLink("routeTableLink01",
    route_table_id=route_table01.route_table_id,
    subnet_id=subnet02.subnet_id)
load_balancer03 = outscale.LoadBalancer("loadBalancer03",
    load_balancer_name="terraform-internet-private-lb",
    listeners=[
        {
            "backend_port": 80,
            "backend_protocol": "TCP",
            "load_balancer_protocol": "TCP",
            "load_balancer_port": 80,
        },
        {
            "backend_port": 8080,
            "backend_protocol": "HTTP",
            "load_balancer_protocol": "HTTP",
            "load_balancer_port": 8080,
        },
    ],
    subnets=[subnet02.subnet_id],
    load_balancer_type="internet-facing",
    public_ip="192.0.2.0",
    tags=[{
        "key": "name",
        "value": "terraform-internet-private-lb",
    }],
    opts = pulumi.ResourceOptions(depends_on=[
            route01,
            route_table_link01,
        ]))
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 {
		net02, err := outscale.NewNet(ctx, "net02", &outscale.NetArgs{
			IpRange: pulumi.String("10.0.0.0/16"),
		})
		if err != nil {
			return err
		}
		subnet02, err := outscale.NewSubnet(ctx, "subnet02", &outscale.SubnetArgs{
			NetId:   net02.NetId,
			IpRange: pulumi.String("10.0.0.0/24"),
			Tags: outscale.SubnetTagArray{
				&outscale.SubnetTagArgs{
					Key:   pulumi.String("Name"),
					Value: pulumi.String("terraform-security-group-for-load-balancer"),
				},
			},
		})
		if err != nil {
			return err
		}
		internetService01, err := outscale.NewInternetService(ctx, "internetService01", nil, pulumi.DependsOn([]pulumi.Resource{
			net02,
		}))
		if err != nil {
			return err
		}
		_, err = outscale.NewInternetServiceLink(ctx, "internetServiceLink01", &outscale.InternetServiceLinkArgs{
			InternetServiceId: internetService01.InternetServiceId,
			NetId:             net02.NetId,
		})
		if err != nil {
			return err
		}
		routeTable01, err := outscale.NewRouteTable(ctx, "routeTable01", &outscale.RouteTableArgs{
			NetId: net02.NetId,
			Tags: outscale.RouteTableTagArray{
				&outscale.RouteTableTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-route-table-for-load-balancer"),
				},
			},
		})
		if err != nil {
			return err
		}
		route01, err := outscale.NewRoute(ctx, "route01", &outscale.RouteArgs{
			GatewayId:          internetService01.OutscaleInternetServiceId,
			DestinationIpRange: pulumi.String("10.0.0.0/0"),
			RouteTableId:       routeTable01.RouteTableId,
		})
		if err != nil {
			return err
		}
		routeTableLink01, err := outscale.NewRouteTableLink(ctx, "routeTableLink01", &outscale.RouteTableLinkArgs{
			RouteTableId: routeTable01.RouteTableId,
			SubnetId:     subnet02.SubnetId,
		})
		if err != nil {
			return err
		}
		_, err = outscale.NewLoadBalancer(ctx, "loadBalancer03", &outscale.LoadBalancerArgs{
			LoadBalancerName: pulumi.String("terraform-internet-private-lb"),
			Listeners: outscale.LoadBalancerListenerArray{
				&outscale.LoadBalancerListenerArgs{
					BackendPort:          pulumi.Float64(80),
					BackendProtocol:      pulumi.String("TCP"),
					LoadBalancerProtocol: pulumi.String("TCP"),
					LoadBalancerPort:     pulumi.Float64(80),
				},
				&outscale.LoadBalancerListenerArgs{
					BackendPort:          pulumi.Float64(8080),
					BackendProtocol:      pulumi.String("HTTP"),
					LoadBalancerProtocol: pulumi.String("HTTP"),
					LoadBalancerPort:     pulumi.Float64(8080),
				},
			},
			Subnets: pulumi.StringArray{
				subnet02.SubnetId,
			},
			LoadBalancerType: pulumi.String("internet-facing"),
			PublicIp:         pulumi.String("192.0.2.0"),
			Tags: outscale.LoadBalancerTagArray{
				&outscale.LoadBalancerTagArgs{
					Key:   pulumi.String("name"),
					Value: pulumi.String("terraform-internet-private-lb"),
				},
			},
		}, pulumi.DependsOn([]pulumi.Resource{
			route01,
			routeTableLink01,
		}))
		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 net02 = new Outscale.Net("net02", new()
    {
        IpRange = "10.0.0.0/16",
    });
    var subnet02 = new Outscale.Subnet("subnet02", new()
    {
        NetId = net02.NetId,
        IpRange = "10.0.0.0/24",
        Tags = new[]
        {
            new Outscale.Inputs.SubnetTagArgs
            {
                Key = "Name",
                Value = "terraform-security-group-for-load-balancer",
            },
        },
    });
    var internetService01 = new Outscale.InternetService("internetService01", new()
    {
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            net02,
        },
    });
    var internetServiceLink01 = new Outscale.InternetServiceLink("internetServiceLink01", new()
    {
        InternetServiceId = internetService01.InternetServiceId,
        NetId = net02.NetId,
    });
    var routeTable01 = new Outscale.RouteTable("routeTable01", new()
    {
        NetId = net02.NetId,
        Tags = new[]
        {
            new Outscale.Inputs.RouteTableTagArgs
            {
                Key = "name",
                Value = "terraform-route-table-for-load-balancer",
            },
        },
    });
    var route01 = new Outscale.Route("route01", new()
    {
        GatewayId = internetService01.OutscaleInternetServiceId,
        DestinationIpRange = "10.0.0.0/0",
        RouteTableId = routeTable01.RouteTableId,
    });
    var routeTableLink01 = new Outscale.RouteTableLink("routeTableLink01", new()
    {
        RouteTableId = routeTable01.RouteTableId,
        SubnetId = subnet02.SubnetId,
    });
    var loadBalancer03 = new Outscale.LoadBalancer("loadBalancer03", new()
    {
        LoadBalancerName = "terraform-internet-private-lb",
        Listeners = new[]
        {
            new Outscale.Inputs.LoadBalancerListenerArgs
            {
                BackendPort = 80,
                BackendProtocol = "TCP",
                LoadBalancerProtocol = "TCP",
                LoadBalancerPort = 80,
            },
            new Outscale.Inputs.LoadBalancerListenerArgs
            {
                BackendPort = 8080,
                BackendProtocol = "HTTP",
                LoadBalancerProtocol = "HTTP",
                LoadBalancerPort = 8080,
            },
        },
        Subnets = new[]
        {
            subnet02.SubnetId,
        },
        LoadBalancerType = "internet-facing",
        PublicIp = "192.0.2.0",
        Tags = new[]
        {
            new Outscale.Inputs.LoadBalancerTagArgs
            {
                Key = "name",
                Value = "terraform-internet-private-lb",
            },
        },
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            route01,
            routeTableLink01,
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.outscale.Net;
import com.pulumi.outscale.NetArgs;
import com.pulumi.outscale.Subnet;
import com.pulumi.outscale.SubnetArgs;
import com.pulumi.outscale.inputs.SubnetTagArgs;
import com.pulumi.outscale.InternetService;
import com.pulumi.outscale.InternetServiceArgs;
import com.pulumi.outscale.InternetServiceLink;
import com.pulumi.outscale.InternetServiceLinkArgs;
import com.pulumi.outscale.RouteTable;
import com.pulumi.outscale.RouteTableArgs;
import com.pulumi.outscale.inputs.RouteTableTagArgs;
import com.pulumi.outscale.Route;
import com.pulumi.outscale.RouteArgs;
import com.pulumi.outscale.RouteTableLink;
import com.pulumi.outscale.RouteTableLinkArgs;
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.resources.CustomResourceOptions;
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 net02 = new Net("net02", NetArgs.builder()
            .ipRange("10.0.0.0/16")
            .build());
        var subnet02 = new Subnet("subnet02", SubnetArgs.builder()
            .netId(net02.netId())
            .ipRange("10.0.0.0/24")
            .tags(SubnetTagArgs.builder()
                .key("Name")
                .value("terraform-security-group-for-load-balancer")
                .build())
            .build());
        var internetService01 = new InternetService("internetService01", InternetServiceArgs.Empty, CustomResourceOptions.builder()
            .dependsOn(net02)
            .build());
        var internetServiceLink01 = new InternetServiceLink("internetServiceLink01", InternetServiceLinkArgs.builder()
            .internetServiceId(internetService01.internetServiceId())
            .netId(net02.netId())
            .build());
        var routeTable01 = new RouteTable("routeTable01", RouteTableArgs.builder()
            .netId(net02.netId())
            .tags(RouteTableTagArgs.builder()
                .key("name")
                .value("terraform-route-table-for-load-balancer")
                .build())
            .build());
        var route01 = new Route("route01", RouteArgs.builder()
            .gatewayId(internetService01.outscaleInternetServiceId())
            .destinationIpRange("10.0.0.0/0")
            .routeTableId(routeTable01.routeTableId())
            .build());
        var routeTableLink01 = new RouteTableLink("routeTableLink01", RouteTableLinkArgs.builder()
            .routeTableId(routeTable01.routeTableId())
            .subnetId(subnet02.subnetId())
            .build());
        var loadBalancer03 = new LoadBalancer("loadBalancer03", LoadBalancerArgs.builder()
            .loadBalancerName("terraform-internet-private-lb")
            .listeners(            
                LoadBalancerListenerArgs.builder()
                    .backendPort(80)
                    .backendProtocol("TCP")
                    .loadBalancerProtocol("TCP")
                    .loadBalancerPort(80)
                    .build(),
                LoadBalancerListenerArgs.builder()
                    .backendPort(8080)
                    .backendProtocol("HTTP")
                    .loadBalancerProtocol("HTTP")
                    .loadBalancerPort(8080)
                    .build())
            .subnets(subnet02.subnetId())
            .loadBalancerType("internet-facing")
            .publicIp("192.0.2.0")
            .tags(LoadBalancerTagArgs.builder()
                .key("name")
                .value("terraform-internet-private-lb")
                .build())
            .build(), CustomResourceOptions.builder()
                .dependsOn(                
                    route01,
                    routeTableLink01)
                .build());
    }
}
resources:
  net02:
    type: outscale:Net
    properties:
      ipRange: 10.0.0.0/16
  subnet02:
    type: outscale:Subnet
    properties:
      netId: ${net02.netId}
      ipRange: 10.0.0.0/24
      tags:
        - key: Name
          value: terraform-security-group-for-load-balancer
  internetService01:
    type: outscale:InternetService
    options:
      dependsOn:
        - ${net02}
  internetServiceLink01:
    type: outscale:InternetServiceLink
    properties:
      internetServiceId: ${internetService01.internetServiceId}
      netId: ${net02.netId}
  routeTable01:
    type: outscale:RouteTable
    properties:
      netId: ${net02.netId}
      tags:
        - key: name
          value: terraform-route-table-for-load-balancer
  route01:
    type: outscale:Route
    properties:
      gatewayId: ${internetService01.outscaleInternetServiceId}
      destinationIpRange: 10.0.0.0/0
      routeTableId: ${routeTable01.routeTableId}
  routeTableLink01:
    type: outscale:RouteTableLink
    properties:
      routeTableId: ${routeTable01.routeTableId}
      subnetId: ${subnet02.subnetId}
  loadBalancer03:
    type: outscale:LoadBalancer
    properties:
      loadBalancerName: terraform-internet-private-lb
      listeners:
        - backendPort: 80
          backendProtocol: TCP
          loadBalancerProtocol: TCP
          loadBalancerPort: 80
        - backendPort: 8080
          backendProtocol: HTTP
          loadBalancerProtocol: HTTP
          loadBalancerPort: 8080
      subnets:
        - ${subnet02.subnetId}
      loadBalancerType: internet-facing
      publicIp: 192.0.2.0
      tags:
        - key: name
          value: terraform-internet-private-lb
    options:
      dependsOn:
        - ${route01}
        - ${routeTableLink01}
Create LoadBalancer Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new LoadBalancer(name: string, args: LoadBalancerArgs, opts?: CustomResourceOptions);@overload
def LoadBalancer(resource_name: str,
                 args: LoadBalancerArgs,
                 opts: Optional[ResourceOptions] = None)
@overload
def LoadBalancer(resource_name: str,
                 opts: Optional[ResourceOptions] = None,
                 listeners: Optional[Sequence[LoadBalancerListenerArgs]] = None,
                 load_balancer_name: Optional[str] = None,
                 access_logs: Optional[Sequence[LoadBalancerAccessLogArgs]] = None,
                 backend_vm_ids: Optional[Sequence[str]] = None,
                 load_balancer_id: Optional[str] = None,
                 load_balancer_type: Optional[str] = None,
                 public_ip: Optional[str] = None,
                 secured_cookies: Optional[bool] = None,
                 security_groups: Optional[Sequence[str]] = None,
                 subnets: Optional[Sequence[str]] = None,
                 subregion_names: Optional[Sequence[str]] = None,
                 tags: Optional[Sequence[LoadBalancerTagArgs]] = None)func NewLoadBalancer(ctx *Context, name string, args LoadBalancerArgs, opts ...ResourceOption) (*LoadBalancer, error)public LoadBalancer(string name, LoadBalancerArgs args, CustomResourceOptions? opts = null)
public LoadBalancer(String name, LoadBalancerArgs args)
public LoadBalancer(String name, LoadBalancerArgs args, CustomResourceOptions options)
type: outscale:LoadBalancer
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 LoadBalancerArgs
- 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 LoadBalancerArgs
- 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 LoadBalancerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args LoadBalancerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args LoadBalancerArgs
- 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 loadBalancerResource = new Outscale.LoadBalancer("loadBalancerResource", new()
{
    Listeners = new[]
    {
        new Outscale.Inputs.LoadBalancerListenerArgs
        {
            BackendPort = 0,
            BackendProtocol = "string",
            LoadBalancerPort = 0,
            LoadBalancerProtocol = "string",
            PolicyNames = new[]
            {
                "string",
            },
            ServerCertificateId = "string",
        },
    },
    LoadBalancerName = "string",
    AccessLogs = new[]
    {
        new Outscale.Inputs.LoadBalancerAccessLogArgs
        {
            IsEnabled = false,
            OsuBucketName = "string",
            OsuBucketPrefix = "string",
            PublicationInterval = 0,
        },
    },
    BackendVmIds = new[]
    {
        "string",
    },
    LoadBalancerId = "string",
    LoadBalancerType = "string",
    PublicIp = "string",
    SecuredCookies = false,
    SecurityGroups = new[]
    {
        "string",
    },
    Subnets = new[]
    {
        "string",
    },
    SubregionNames = new[]
    {
        "string",
    },
    Tags = new[]
    {
        new Outscale.Inputs.LoadBalancerTagArgs
        {
            Key = "string",
            Value = "string",
        },
    },
});
example, err := outscale.NewLoadBalancer(ctx, "loadBalancerResource", &outscale.LoadBalancerArgs{
Listeners: .LoadBalancerListenerArray{
&.LoadBalancerListenerArgs{
BackendPort: pulumi.Float64(0),
BackendProtocol: pulumi.String("string"),
LoadBalancerPort: pulumi.Float64(0),
LoadBalancerProtocol: pulumi.String("string"),
PolicyNames: pulumi.StringArray{
pulumi.String("string"),
},
ServerCertificateId: pulumi.String("string"),
},
},
LoadBalancerName: pulumi.String("string"),
AccessLogs: .LoadBalancerAccessLogArray{
&.LoadBalancerAccessLogArgs{
IsEnabled: pulumi.Bool(false),
OsuBucketName: pulumi.String("string"),
OsuBucketPrefix: pulumi.String("string"),
PublicationInterval: pulumi.Float64(0),
},
},
BackendVmIds: pulumi.StringArray{
pulumi.String("string"),
},
LoadBalancerId: pulumi.String("string"),
LoadBalancerType: pulumi.String("string"),
PublicIp: pulumi.String("string"),
SecuredCookies: pulumi.Bool(false),
SecurityGroups: pulumi.StringArray{
pulumi.String("string"),
},
Subnets: pulumi.StringArray{
pulumi.String("string"),
},
SubregionNames: pulumi.StringArray{
pulumi.String("string"),
},
Tags: .LoadBalancerTagArray{
&.LoadBalancerTagArgs{
Key: pulumi.String("string"),
Value: pulumi.String("string"),
},
},
})
var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
    .listeners(LoadBalancerListenerArgs.builder()
        .backendPort(0)
        .backendProtocol("string")
        .loadBalancerPort(0)
        .loadBalancerProtocol("string")
        .policyNames("string")
        .serverCertificateId("string")
        .build())
    .loadBalancerName("string")
    .accessLogs(LoadBalancerAccessLogArgs.builder()
        .isEnabled(false)
        .osuBucketName("string")
        .osuBucketPrefix("string")
        .publicationInterval(0)
        .build())
    .backendVmIds("string")
    .loadBalancerId("string")
    .loadBalancerType("string")
    .publicIp("string")
    .securedCookies(false)
    .securityGroups("string")
    .subnets("string")
    .subregionNames("string")
    .tags(LoadBalancerTagArgs.builder()
        .key("string")
        .value("string")
        .build())
    .build());
load_balancer_resource = outscale.LoadBalancer("loadBalancerResource",
    listeners=[{
        "backend_port": 0,
        "backend_protocol": "string",
        "load_balancer_port": 0,
        "load_balancer_protocol": "string",
        "policy_names": ["string"],
        "server_certificate_id": "string",
    }],
    load_balancer_name="string",
    access_logs=[{
        "is_enabled": False,
        "osu_bucket_name": "string",
        "osu_bucket_prefix": "string",
        "publication_interval": 0,
    }],
    backend_vm_ids=["string"],
    load_balancer_id="string",
    load_balancer_type="string",
    public_ip="string",
    secured_cookies=False,
    security_groups=["string"],
    subnets=["string"],
    subregion_names=["string"],
    tags=[{
        "key": "string",
        "value": "string",
    }])
const loadBalancerResource = new outscale.LoadBalancer("loadBalancerResource", {
    listeners: [{
        backendPort: 0,
        backendProtocol: "string",
        loadBalancerPort: 0,
        loadBalancerProtocol: "string",
        policyNames: ["string"],
        serverCertificateId: "string",
    }],
    loadBalancerName: "string",
    accessLogs: [{
        isEnabled: false,
        osuBucketName: "string",
        osuBucketPrefix: "string",
        publicationInterval: 0,
    }],
    backendVmIds: ["string"],
    loadBalancerId: "string",
    loadBalancerType: "string",
    publicIp: "string",
    securedCookies: false,
    securityGroups: ["string"],
    subnets: ["string"],
    subregionNames: ["string"],
    tags: [{
        key: "string",
        value: "string",
    }],
});
type: outscale:LoadBalancer
properties:
    accessLogs:
        - isEnabled: false
          osuBucketName: string
          osuBucketPrefix: string
          publicationInterval: 0
    backendVmIds:
        - string
    listeners:
        - backendPort: 0
          backendProtocol: string
          loadBalancerPort: 0
          loadBalancerProtocol: string
          policyNames:
            - string
          serverCertificateId: string
    loadBalancerId: string
    loadBalancerName: string
    loadBalancerType: string
    publicIp: string
    securedCookies: false
    securityGroups:
        - string
    subnets:
        - string
    subregionNames:
        - string
    tags:
        - key: string
          value: string
LoadBalancer 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 LoadBalancer resource accepts the following input properties:
- Listeners
List<LoadBalancer Listener> 
- One or more listeners to create.
- LoadBalancer stringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- AccessLogs List<LoadBalancer Access Log> 
- Information about access logs.
- BackendVm List<string>Ids 
- One or more IDs of backend VMs for the load balancer.
- LoadBalancer stringId 
- LoadBalancer stringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- PublicIp string
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- bool
- Whether secure cookies are enabled for the load balancer.
- SecurityGroups List<string>
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- Subnets List<string>
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- SubregionNames List<string>
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
List<LoadBalancer Tag> 
- A tag to add to this resource. You can specify this argument several times.
- Listeners
[]LoadBalancer Listener Args 
- One or more listeners to create.
- LoadBalancer stringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- AccessLogs []LoadBalancer Access Log Args 
- Information about access logs.
- BackendVm []stringIds 
- One or more IDs of backend VMs for the load balancer.
- LoadBalancer stringId 
- LoadBalancer stringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- PublicIp string
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- bool
- Whether secure cookies are enabled for the load balancer.
- SecurityGroups []string
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- Subnets []string
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- SubregionNames []string
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
[]LoadBalancer Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- listeners
List<LoadBalancer Listener> 
- One or more listeners to create.
- loadBalancer StringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- accessLogs List<LoadBalancer Access Log> 
- Information about access logs.
- backendVm List<String>Ids 
- One or more IDs of backend VMs for the load balancer.
- loadBalancer StringId 
- loadBalancer StringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- publicIp String
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- Boolean
- Whether secure cookies are enabled for the load balancer.
- securityGroups List<String>
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- subnets List<String>
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregionNames List<String>
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
List<LoadBalancer Tag> 
- A tag to add to this resource. You can specify this argument several times.
- listeners
LoadBalancer Listener[] 
- One or more listeners to create.
- loadBalancer stringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- accessLogs LoadBalancer Access Log[] 
- Information about access logs.
- backendVm string[]Ids 
- One or more IDs of backend VMs for the load balancer.
- loadBalancer stringId 
- loadBalancer stringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- publicIp string
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- boolean
- Whether secure cookies are enabled for the load balancer.
- securityGroups string[]
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- subnets string[]
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregionNames string[]
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
LoadBalancer Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- listeners
Sequence[LoadBalancer Listener Args] 
- One or more listeners to create.
- load_balancer_ strname 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- access_logs Sequence[LoadBalancer Access Log Args] 
- Information about access logs.
- backend_vm_ Sequence[str]ids 
- One or more IDs of backend VMs for the load balancer.
- load_balancer_ strid 
- load_balancer_ strtype 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- public_ip str
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- bool
- Whether secure cookies are enabled for the load balancer.
- security_groups Sequence[str]
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- subnets Sequence[str]
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregion_names Sequence[str]
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
Sequence[LoadBalancer Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- listeners List<Property Map>
- One or more listeners to create.
- loadBalancer StringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- accessLogs List<Property Map>
- Information about access logs.
- backendVm List<String>Ids 
- One or more IDs of backend VMs for the load balancer.
- loadBalancer StringId 
- loadBalancer StringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- publicIp String
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- Boolean
- Whether secure cookies are enabled for the load balancer.
- securityGroups List<String>
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- subnets List<String>
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregionNames List<String>
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
- 
List<LoadBalancer Application Sticky Cookie Policy> 
- The stickiness policies defined for the load balancer.
- DnsName string
- The DNS name of the load balancer.
- HealthChecks List<LoadBalancer Health Check> 
- Information about the health check configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- 
List<LoadBalancer Load Balancer Sticky Cookie Policy> 
- The policies defined for the load balancer.
- NetId string
- The ID of the Net for the load balancer.
- RequestId string
- SourceSecurity List<LoadGroups Balancer Source Security Group> 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- 
[]LoadBalancer Application Sticky Cookie Policy 
- The stickiness policies defined for the load balancer.
- DnsName string
- The DNS name of the load balancer.
- HealthChecks []LoadBalancer Health Check 
- Information about the health check configuration.
- Id string
- The provider-assigned unique ID for this managed resource.
- 
[]LoadBalancer Load Balancer Sticky Cookie Policy 
- The policies defined for the load balancer.
- NetId string
- The ID of the Net for the load balancer.
- RequestId string
- SourceSecurity []LoadGroups Balancer Source Security Group 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- 
List<LoadBalancer Application Sticky Cookie Policy> 
- The stickiness policies defined for the load balancer.
- dnsName String
- The DNS name of the load balancer.
- healthChecks List<LoadBalancer Health Check> 
- Information about the health check configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- 
List<LoadBalancer Load Balancer Sticky Cookie Policy> 
- The policies defined for the load balancer.
- netId String
- The ID of the Net for the load balancer.
- requestId String
- sourceSecurity List<LoadGroups Balancer Source Security Group> 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- 
LoadBalancer Application Sticky Cookie Policy[] 
- The stickiness policies defined for the load balancer.
- dnsName string
- The DNS name of the load balancer.
- healthChecks LoadBalancer Health Check[] 
- Information about the health check configuration.
- id string
- The provider-assigned unique ID for this managed resource.
- 
LoadBalancer Load Balancer Sticky Cookie Policy[] 
- The policies defined for the load balancer.
- netId string
- The ID of the Net for the load balancer.
- requestId string
- sourceSecurity LoadGroups Balancer Source Security Group[] 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- 
Sequence[LoadBalancer Application Sticky Cookie Policy] 
- The stickiness policies defined for the load balancer.
- dns_name str
- The DNS name of the load balancer.
- health_checks Sequence[LoadBalancer Health Check] 
- Information about the health check configuration.
- id str
- The provider-assigned unique ID for this managed resource.
- 
Sequence[LoadBalancer Load Balancer Sticky Cookie Policy] 
- The policies defined for the load balancer.
- net_id str
- The ID of the Net for the load balancer.
- request_id str
- source_security_ Sequence[Loadgroups Balancer Source Security Group] 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- List<Property Map>
- The stickiness policies defined for the load balancer.
- dnsName String
- The DNS name of the load balancer.
- healthChecks List<Property Map>
- Information about the health check configuration.
- id String
- The provider-assigned unique ID for this managed resource.
- List<Property Map>
- The policies defined for the load balancer.
- netId String
- The ID of the Net for the load balancer.
- requestId String
- sourceSecurity List<Property Map>Groups 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
Look up Existing LoadBalancer Resource
Get an existing LoadBalancer 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?: LoadBalancerState, opts?: CustomResourceOptions): LoadBalancer@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        access_logs: Optional[Sequence[LoadBalancerAccessLogArgs]] = None,
        application_sticky_cookie_policies: Optional[Sequence[LoadBalancerApplicationStickyCookiePolicyArgs]] = None,
        backend_vm_ids: Optional[Sequence[str]] = None,
        dns_name: Optional[str] = None,
        health_checks: Optional[Sequence[LoadBalancerHealthCheckArgs]] = None,
        listeners: Optional[Sequence[LoadBalancerListenerArgs]] = None,
        load_balancer_id: Optional[str] = None,
        load_balancer_name: Optional[str] = None,
        load_balancer_sticky_cookie_policies: Optional[Sequence[LoadBalancerLoadBalancerStickyCookiePolicyArgs]] = None,
        load_balancer_type: Optional[str] = None,
        net_id: Optional[str] = None,
        public_ip: Optional[str] = None,
        request_id: Optional[str] = None,
        secured_cookies: Optional[bool] = None,
        security_groups: Optional[Sequence[str]] = None,
        source_security_groups: Optional[Sequence[LoadBalancerSourceSecurityGroupArgs]] = None,
        subnets: Optional[Sequence[str]] = None,
        subregion_names: Optional[Sequence[str]] = None,
        tags: Optional[Sequence[LoadBalancerTagArgs]] = None) -> LoadBalancerfunc GetLoadBalancer(ctx *Context, name string, id IDInput, state *LoadBalancerState, opts ...ResourceOption) (*LoadBalancer, error)public static LoadBalancer Get(string name, Input<string> id, LoadBalancerState? state, CustomResourceOptions? opts = null)public static LoadBalancer get(String name, Output<String> id, LoadBalancerState state, CustomResourceOptions options)resources:  _:    type: outscale:LoadBalancer    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.
- AccessLogs List<LoadBalancer Access Log> 
- Information about access logs.
- 
List<LoadBalancer Application Sticky Cookie Policy> 
- The stickiness policies defined for the load balancer.
- BackendVm List<string>Ids 
- One or more IDs of backend VMs for the load balancer.
- DnsName string
- The DNS name of the load balancer.
- HealthChecks List<LoadBalancer Health Check> 
- Information about the health check configuration.
- Listeners
List<LoadBalancer Listener> 
- One or more listeners to create.
- LoadBalancer stringId 
- LoadBalancer stringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- 
List<LoadBalancer Load Balancer Sticky Cookie Policy> 
- The policies defined for the load balancer.
- LoadBalancer stringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- NetId string
- The ID of the Net for the load balancer.
- PublicIp string
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- RequestId string
- bool
- Whether secure cookies are enabled for the load balancer.
- SecurityGroups List<string>
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- SourceSecurity List<LoadGroups Balancer Source Security Group> 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- Subnets List<string>
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- SubregionNames List<string>
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
List<LoadBalancer Tag> 
- A tag to add to this resource. You can specify this argument several times.
- AccessLogs []LoadBalancer Access Log Args 
- Information about access logs.
- 
[]LoadBalancer Application Sticky Cookie Policy Args 
- The stickiness policies defined for the load balancer.
- BackendVm []stringIds 
- One or more IDs of backend VMs for the load balancer.
- DnsName string
- The DNS name of the load balancer.
- HealthChecks []LoadBalancer Health Check Args 
- Information about the health check configuration.
- Listeners
[]LoadBalancer Listener Args 
- One or more listeners to create.
- LoadBalancer stringId 
- LoadBalancer stringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- 
[]LoadBalancer Load Balancer Sticky Cookie Policy Args 
- The policies defined for the load balancer.
- LoadBalancer stringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- NetId string
- The ID of the Net for the load balancer.
- PublicIp string
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- RequestId string
- bool
- Whether secure cookies are enabled for the load balancer.
- SecurityGroups []string
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- SourceSecurity []LoadGroups Balancer Source Security Group Args 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- Subnets []string
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- SubregionNames []string
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
[]LoadBalancer Tag Args 
- A tag to add to this resource. You can specify this argument several times.
- accessLogs List<LoadBalancer Access Log> 
- Information about access logs.
- 
List<LoadBalancer Application Sticky Cookie Policy> 
- The stickiness policies defined for the load balancer.
- backendVm List<String>Ids 
- One or more IDs of backend VMs for the load balancer.
- dnsName String
- The DNS name of the load balancer.
- healthChecks List<LoadBalancer Health Check> 
- Information about the health check configuration.
- listeners
List<LoadBalancer Listener> 
- One or more listeners to create.
- loadBalancer StringId 
- loadBalancer StringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- 
List<LoadBalancer Load Balancer Sticky Cookie Policy> 
- The policies defined for the load balancer.
- loadBalancer StringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- netId String
- The ID of the Net for the load balancer.
- publicIp String
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- requestId String
- Boolean
- Whether secure cookies are enabled for the load balancer.
- securityGroups List<String>
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- sourceSecurity List<LoadGroups Balancer Source Security Group> 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- subnets List<String>
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregionNames List<String>
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
List<LoadBalancer Tag> 
- A tag to add to this resource. You can specify this argument several times.
- accessLogs LoadBalancer Access Log[] 
- Information about access logs.
- 
LoadBalancer Application Sticky Cookie Policy[] 
- The stickiness policies defined for the load balancer.
- backendVm string[]Ids 
- One or more IDs of backend VMs for the load balancer.
- dnsName string
- The DNS name of the load balancer.
- healthChecks LoadBalancer Health Check[] 
- Information about the health check configuration.
- listeners
LoadBalancer Listener[] 
- One or more listeners to create.
- loadBalancer stringId 
- loadBalancer stringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- 
LoadBalancer Load Balancer Sticky Cookie Policy[] 
- The policies defined for the load balancer.
- loadBalancer stringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- netId string
- The ID of the Net for the load balancer.
- publicIp string
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- requestId string
- boolean
- Whether secure cookies are enabled for the load balancer.
- securityGroups string[]
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- sourceSecurity LoadGroups Balancer Source Security Group[] 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- subnets string[]
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregionNames string[]
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
LoadBalancer Tag[] 
- A tag to add to this resource. You can specify this argument several times.
- access_logs Sequence[LoadBalancer Access Log Args] 
- Information about access logs.
- 
Sequence[LoadBalancer Application Sticky Cookie Policy Args] 
- The stickiness policies defined for the load balancer.
- backend_vm_ Sequence[str]ids 
- One or more IDs of backend VMs for the load balancer.
- dns_name str
- The DNS name of the load balancer.
- health_checks Sequence[LoadBalancer Health Check Args] 
- Information about the health check configuration.
- listeners
Sequence[LoadBalancer Listener Args] 
- One or more listeners to create.
- load_balancer_ strid 
- load_balancer_ strname 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- 
Sequence[LoadBalancer Load Balancer Sticky Cookie Policy Args] 
- The policies defined for the load balancer.
- load_balancer_ strtype 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- net_id str
- The ID of the Net for the load balancer.
- public_ip str
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- request_id str
- bool
- Whether secure cookies are enabled for the load balancer.
- security_groups Sequence[str]
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- source_security_ Sequence[Loadgroups Balancer Source Security Group Args] 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- subnets Sequence[str]
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregion_names Sequence[str]
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- 
Sequence[LoadBalancer Tag Args] 
- A tag to add to this resource. You can specify this argument several times.
- accessLogs List<Property Map>
- Information about access logs.
- List<Property Map>
- The stickiness policies defined for the load balancer.
- backendVm List<String>Ids 
- One or more IDs of backend VMs for the load balancer.
- dnsName String
- The DNS name of the load balancer.
- healthChecks List<Property Map>
- Information about the health check configuration.
- listeners List<Property Map>
- One or more listeners to create.
- loadBalancer StringId 
- loadBalancer StringName 
- The unique name of the load balancer, with a maximum length of 32 alphanumeric characters and dashes (-). This name must not start or end with a dash.
- List<Property Map>
- The policies defined for the load balancer.
- loadBalancer StringType 
- The type of load balancer: internet-facingorinternal. Use this parameter only for load balancers in a Net.
- netId String
- The ID of the Net for the load balancer.
- publicIp String
- (internet-facing only) The public IP you want to associate with the load balancer. If not specified, a public IP owned by 3DS OUTSCALE is associated.
- requestId String
- Boolean
- Whether secure cookies are enabled for the load balancer.
- securityGroups List<String>
- (Net only) One or more IDs of security groups you want to assign to the load balancer. If not specified, the default security group of the Net is assigned to the load balancer.
- sourceSecurity List<Property Map>Groups 
- Information about the source security group of the load balancer, which you can use as part of your inbound rules for your registered VMs. To only allow traffic from load balancers, add a security group rule that specifies this source security group as the inbound source.
- subnets List<String>
- (Net only) The ID of the Subnet in which you want to create the load balancer. Regardless of this Subnet, the load balancer can distribute traffic to all Subnets. This parameter is required in a Net.
- subregionNames List<String>
- (public Cloud only) The Subregion in which you want to create the load balancer. Regardless of this Subregion, the load balancer can distribute traffic to all Subregions. This parameter is required in the public Cloud.
- List<Property Map>
- A tag to add to this resource. You can specify this argument several times.
Supporting Types
LoadBalancerAccessLog, LoadBalancerAccessLogArgs        
- IsEnabled bool
- If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the osu_bucket_nameparameter is required.
- OsuBucket stringName 
- The name of the OOS bucket for the access logs.
- OsuBucket stringPrefix 
- The path to the folder of the access logs in your OOS bucket (by default, the rootlevel of your bucket).
- PublicationInterval double
- The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5or60(by default,60).
- IsEnabled bool
- If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the osu_bucket_nameparameter is required.
- OsuBucket stringName 
- The name of the OOS bucket for the access logs.
- OsuBucket stringPrefix 
- The path to the folder of the access logs in your OOS bucket (by default, the rootlevel of your bucket).
- PublicationInterval float64
- The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5or60(by default,60).
- isEnabled Boolean
- If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the osu_bucket_nameparameter is required.
- osuBucket StringName 
- The name of the OOS bucket for the access logs.
- osuBucket StringPrefix 
- The path to the folder of the access logs in your OOS bucket (by default, the rootlevel of your bucket).
- publicationInterval Double
- The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5or60(by default,60).
- isEnabled boolean
- If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the osu_bucket_nameparameter is required.
- osuBucket stringName 
- The name of the OOS bucket for the access logs.
- osuBucket stringPrefix 
- The path to the folder of the access logs in your OOS bucket (by default, the rootlevel of your bucket).
- publicationInterval number
- The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5or60(by default,60).
- is_enabled bool
- If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the osu_bucket_nameparameter is required.
- osu_bucket_ strname 
- The name of the OOS bucket for the access logs.
- osu_bucket_ strprefix 
- The path to the folder of the access logs in your OOS bucket (by default, the rootlevel of your bucket).
- publication_interval float
- The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5or60(by default,60).
- isEnabled Boolean
- If true, access logs are enabled for your load balancer. If false, they are not. If you set this to true in your request, the osu_bucket_nameparameter is required.
- osuBucket StringName 
- The name of the OOS bucket for the access logs.
- osuBucket StringPrefix 
- The path to the folder of the access logs in your OOS bucket (by default, the rootlevel of your bucket).
- publicationInterval Number
- The time interval for the publication of access logs in the OOS bucket, in minutes. This value can be either 5or60(by default,60).
LoadBalancerApplicationStickyCookiePolicy, LoadBalancerApplicationStickyCookiePolicyArgs            
- string
- The name of the application cookie used for stickiness.
- PolicyName string
- The name of the stickiness policy.
- string
- The name of the application cookie used for stickiness.
- PolicyName string
- The name of the stickiness policy.
- String
- The name of the application cookie used for stickiness.
- policyName String
- The name of the stickiness policy.
- string
- The name of the application cookie used for stickiness.
- policyName string
- The name of the stickiness policy.
- str
- The name of the application cookie used for stickiness.
- policy_name str
- The name of the stickiness policy.
- String
- The name of the application cookie used for stickiness.
- policyName String
- The name of the stickiness policy.
LoadBalancerHealthCheck, LoadBalancerHealthCheckArgs        
- CheckInterval double
- The number of seconds between two requests (between 5and600both included).
- HealthyThreshold double
- The number of consecutive successful requests before considering the VM as healthy (between 2and10both included).
- Path string
- If you use the HTTP or HTTPS protocols, the request URL path.
- Port double
- The port number (between 1and65535, both included).
- Protocol string
- The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL).
- Timeout double
- The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between 2and60both included).
- UnhealthyThreshold double
- The number of consecutive failed requests before considering the VM as unhealthy (between 2and10both included).
- CheckInterval float64
- The number of seconds between two requests (between 5and600both included).
- HealthyThreshold float64
- The number of consecutive successful requests before considering the VM as healthy (between 2and10both included).
- Path string
- If you use the HTTP or HTTPS protocols, the request URL path.
- Port float64
- The port number (between 1and65535, both included).
- Protocol string
- The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL).
- Timeout float64
- The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between 2and60both included).
- UnhealthyThreshold float64
- The number of consecutive failed requests before considering the VM as unhealthy (between 2and10both included).
- checkInterval Double
- The number of seconds between two requests (between 5and600both included).
- healthyThreshold Double
- The number of consecutive successful requests before considering the VM as healthy (between 2and10both included).
- path String
- If you use the HTTP or HTTPS protocols, the request URL path.
- port Double
- The port number (between 1and65535, both included).
- protocol String
- The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL).
- timeout Double
- The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between 2and60both included).
- unhealthyThreshold Double
- The number of consecutive failed requests before considering the VM as unhealthy (between 2and10both included).
- checkInterval number
- The number of seconds between two requests (between 5and600both included).
- healthyThreshold number
- The number of consecutive successful requests before considering the VM as healthy (between 2and10both included).
- path string
- If you use the HTTP or HTTPS protocols, the request URL path.
- port number
- The port number (between 1and65535, both included).
- protocol string
- The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL).
- timeout number
- The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between 2and60both included).
- unhealthyThreshold number
- The number of consecutive failed requests before considering the VM as unhealthy (between 2and10both included).
- check_interval float
- The number of seconds between two requests (between 5and600both included).
- healthy_threshold float
- The number of consecutive successful requests before considering the VM as healthy (between 2and10both included).
- path str
- If you use the HTTP or HTTPS protocols, the request URL path.
- port float
- The port number (between 1and65535, both included).
- protocol str
- The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL).
- timeout float
- The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between 2and60both included).
- unhealthy_threshold float
- The number of consecutive failed requests before considering the VM as unhealthy (between 2and10both included).
- checkInterval Number
- The number of seconds between two requests (between 5and600both included).
- healthyThreshold Number
- The number of consecutive successful requests before considering the VM as healthy (between 2and10both included).
- path String
- If you use the HTTP or HTTPS protocols, the request URL path.
- port Number
- The port number (between 1and65535, both included).
- protocol String
- The protocol for the URL of the VM (HTTP|HTTPS|TCP|SSL).
- timeout Number
- The maximum waiting time for a response before considering the VM as unhealthy, in seconds (between 2and60both included).
- unhealthyThreshold Number
- The number of consecutive failed requests before considering the VM as unhealthy (between 2and10both included).
LoadBalancerListener, LoadBalancerListenerArgs      
- BackendPort double
- The port on which the backend VM is listening (between 1and65535, both included).
- BackendProtocol string
- The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL).
- LoadBalancer doublePort 
- The port on which the load balancer is listening (between 1and65535, both included).
- LoadBalancer stringProtocol 
- The routing protocol (HTTP|HTTPS|TCP|SSL).
- PolicyNames List<string>
- The names of the policies. If there are no policies enabled, the list is empty.
- ServerCertificate stringId 
- The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
- BackendPort float64
- The port on which the backend VM is listening (between 1and65535, both included).
- BackendProtocol string
- The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL).
- LoadBalancer float64Port 
- The port on which the load balancer is listening (between 1and65535, both included).
- LoadBalancer stringProtocol 
- The routing protocol (HTTP|HTTPS|TCP|SSL).
- PolicyNames []string
- The names of the policies. If there are no policies enabled, the list is empty.
- ServerCertificate stringId 
- The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
- backendPort Double
- The port on which the backend VM is listening (between 1and65535, both included).
- backendProtocol String
- The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL).
- loadBalancer DoublePort 
- The port on which the load balancer is listening (between 1and65535, both included).
- loadBalancer StringProtocol 
- The routing protocol (HTTP|HTTPS|TCP|SSL).
- policyNames List<String>
- The names of the policies. If there are no policies enabled, the list is empty.
- serverCertificate StringId 
- The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
- backendPort number
- The port on which the backend VM is listening (between 1and65535, both included).
- backendProtocol string
- The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL).
- loadBalancer numberPort 
- The port on which the load balancer is listening (between 1and65535, both included).
- loadBalancer stringProtocol 
- The routing protocol (HTTP|HTTPS|TCP|SSL).
- policyNames string[]
- The names of the policies. If there are no policies enabled, the list is empty.
- serverCertificate stringId 
- The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
- backend_port float
- The port on which the backend VM is listening (between 1and65535, both included).
- backend_protocol str
- The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL).
- load_balancer_ floatport 
- The port on which the load balancer is listening (between 1and65535, both included).
- load_balancer_ strprotocol 
- The routing protocol (HTTP|HTTPS|TCP|SSL).
- policy_names Sequence[str]
- The names of the policies. If there are no policies enabled, the list is empty.
- server_certificate_ strid 
- The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
- backendPort Number
- The port on which the backend VM is listening (between 1and65535, both included).
- backendProtocol String
- The protocol for routing traffic to backend VMs (HTTP|HTTPS|TCP|SSL).
- loadBalancer NumberPort 
- The port on which the load balancer is listening (between 1and65535, both included).
- loadBalancer StringProtocol 
- The routing protocol (HTTP|HTTPS|TCP|SSL).
- policyNames List<String>
- The names of the policies. If there are no policies enabled, the list is empty.
- serverCertificate StringId 
- The OUTSCALE Resource Name (ORN) of the server certificate. For more information, see Resource Identifiers > OUTSCALE Resource Names (ORNs).
LoadBalancerLoadBalancerStickyCookiePolicy, LoadBalancerLoadBalancerStickyCookiePolicyArgs              
- PolicyName string
- The name of the stickiness policy.
- PolicyName string
- The name of the stickiness policy.
- policyName String
- The name of the stickiness policy.
- policyName string
- The name of the stickiness policy.
- policy_name str
- The name of the stickiness policy.
- policyName String
- The name of the stickiness policy.
LoadBalancerSourceSecurityGroup, LoadBalancerSourceSecurityGroupArgs          
- SecurityGroup stringAccount Id 
- The account ID of the owner of the security group.
- SecurityGroup stringName 
- The name of the security group.
- SecurityGroup stringAccount Id 
- The account ID of the owner of the security group.
- SecurityGroup stringName 
- The name of the security group.
- securityGroup StringAccount Id 
- The account ID of the owner of the security group.
- securityGroup StringName 
- The name of the security group.
- securityGroup stringAccount Id 
- The account ID of the owner of the security group.
- securityGroup stringName 
- The name of the security group.
- security_group_ straccount_ id 
- The account ID of the owner of the security group.
- security_group_ strname 
- The name of the security group.
- securityGroup StringAccount Id 
- The account ID of the owner of the security group.
- securityGroup StringName 
- The name of the security group.
LoadBalancerTag, LoadBalancerTagArgs      
Import
A load balancer can be imported using its name. For example:
console
$ pulumi import outscale:index/loadBalancer:LoadBalancer ImportedLbu Name-of-the-Lbu
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- outscale outscale/terraform-provider-outscale
- License
- Notes
- This Pulumi package is based on the outscaleTerraform Provider.