ovh.CloudProject.LoadBalancer
Explore with Pulumi AI
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const lb = new ovh.cloudproject.LoadBalancer("lb", {
    serviceName: "<public cloud project ID>",
    regionName: "GRA9",
    flavorId: "<loadbalancer flavor ID>",
    network: {
        "private": {
            network: {
                id: .filter(region => region.region == "GRA9").map(region => (region))[0].openstackid,
                subnetId: ovh_cloud_project_network_private_subnet.myprivsub.id,
            },
        },
    },
    description: "My new LB",
    listeners: [
        {
            port: 34568,
            protocol: "tcp",
        },
        {
            port: 34569,
            protocol: "udp",
        },
    ],
});
import pulumi
import pulumi_ovh as ovh
lb = ovh.cloud_project.LoadBalancer("lb",
    service_name="<public cloud project ID>",
    region_name="GRA9",
    flavor_id="<loadbalancer flavor ID>",
    network={
        "private": {
            "network": {
                "id": [region for region in ovh_cloud_project_network_private["mypriv"]["regions_attributes"] if region["region"] == "GRA9"][0]["openstackid"],
                "subnet_id": ovh_cloud_project_network_private_subnet["myprivsub"]["id"],
            },
        },
    },
    description="My new LB",
    listeners=[
        {
            "port": 34568,
            "protocol": "tcp",
        },
        {
            "port": 34569,
            "protocol": "udp",
        },
    ])
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := cloudproject.NewLoadBalancer(ctx, "lb", &cloudproject.LoadBalancerArgs{
			ServiceName: pulumi.String("<public cloud project ID>"),
			RegionName:  pulumi.String("GRA9"),
			FlavorId:    pulumi.String("<loadbalancer flavor ID>"),
			Network: &cloudproject.LoadBalancerNetworkArgs{
				Private: &cloudproject.LoadBalancerNetworkPrivateArgs{
					Network: &cloudproject.LoadBalancerNetworkPrivateNetworkArgs{
						Id:       "TODO: call element".Openstackid,
						SubnetId: pulumi.Any(ovh_cloud_project_network_private_subnet.Myprivsub.Id),
					},
				},
			},
			Description: pulumi.String("My new LB"),
			Listeners: cloudproject.LoadBalancerListenerArray{
				&cloudproject.LoadBalancerListenerArgs{
					Port:     pulumi.Float64(34568),
					Protocol: pulumi.String("tcp"),
				},
				&cloudproject.LoadBalancerListenerArgs{
					Port:     pulumi.Float64(34569),
					Protocol: pulumi.String("udp"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var lb = new Ovh.CloudProject.LoadBalancer("lb", new()
    {
        ServiceName = "<public cloud project ID>",
        RegionName = "GRA9",
        FlavorId = "<loadbalancer flavor ID>",
        Network = new Ovh.CloudProject.Inputs.LoadBalancerNetworkArgs
        {
            Private = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateArgs
            {
                Network = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateNetworkArgs
                {
                    Id = .Where(region => region.Region == "GRA9").Select(region => 
                    {
                        return region;
                    }).ToList()[0].Openstackid,
                    SubnetId = ovh_cloud_project_network_private_subnet.Myprivsub.Id,
                },
            },
        },
        Description = "My new LB",
        Listeners = new[]
        {
            new Ovh.CloudProject.Inputs.LoadBalancerListenerArgs
            {
                Port = 34568,
                Protocol = "tcp",
            },
            new Ovh.CloudProject.Inputs.LoadBalancerListenerArgs
            {
                Port = 34569,
                Protocol = "udp",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.LoadBalancer;
import com.pulumi.ovh.CloudProject.LoadBalancerArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerNetworkArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerNetworkPrivateArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerNetworkPrivateNetworkArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerListenerArgs;
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 lb = new LoadBalancer("lb", LoadBalancerArgs.builder()
            .serviceName("<public cloud project ID>")
            .regionName("GRA9")
            .flavorId("<loadbalancer flavor ID>")
            .network(LoadBalancerNetworkArgs.builder()
                .private_(LoadBalancerNetworkPrivateArgs.builder()
                    .network(LoadBalancerNetworkPrivateNetworkArgs.builder()
                        .id("TODO: ForExpression"[0].openstackid())
                        .subnetId(ovh_cloud_project_network_private_subnet.myprivsub().id())
                        .build())
                    .build())
                .build())
            .description("My new LB")
            .listeners(            
                LoadBalancerListenerArgs.builder()
                    .port("34568")
                    .protocol("tcp")
                    .build(),
                LoadBalancerListenerArgs.builder()
                    .port("34569")
                    .protocol("udp")
                    .build())
            .build());
    }
}
Coming soon!
Example usage with network and subnet creation
import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
const priv = new ovh.cloudproject.NetworkPrivate("priv", {
    serviceName: "<public cloud project ID>",
    vlanId: 10,
    regions: ["GRA9"],
});
const privsub = new ovh.cloudproject.NetworkPrivateSubnet("privsub", {
    serviceName: priv.serviceName,
    networkId: priv.id,
    region: "GRA9",
    start: "10.0.0.2",
    end: "10.0.255.254",
    network: "10.0.0.0/16",
    dhcp: true,
});
const lb = new ovh.cloudproject.LoadBalancer("lb", {
    serviceName: privsub.serviceName,
    regionName: privsub.region,
    flavorId: "<loadbalancer flavor ID>",
    network: {
        "private": {
            network: {
                id: priv.regionsAttributes.apply(regionsAttributes => regionsAttributes.filter(region => region.region == "GRA9").map(region => (region)))[0].apply(regions => regions.openstackid),
                subnetId: privsub.id,
            },
        },
    },
    description: "My new LB",
    listeners: [
        {
            port: 34568,
            protocol: "tcp",
        },
        {
            port: 34569,
            protocol: "udp",
        },
    ],
});
import pulumi
import pulumi_ovh as ovh
priv = ovh.cloud_project.NetworkPrivate("priv",
    service_name="<public cloud project ID>",
    vlan_id=10,
    regions=["GRA9"])
privsub = ovh.cloud_project.NetworkPrivateSubnet("privsub",
    service_name=priv.service_name,
    network_id=priv.id,
    region="GRA9",
    start="10.0.0.2",
    end="10.0.255.254",
    network="10.0.0.0/16",
    dhcp=True)
lb = ovh.cloud_project.LoadBalancer("lb",
    service_name=privsub.service_name,
    region_name=privsub.region,
    flavor_id="<loadbalancer flavor ID>",
    network={
        "private": {
            "network": {
                "id": priv.regions_attributes.apply(lambda regions_attributes: [region for region in regions_attributes if region.region == "GRA9"])[0].apply(lambda regions: regions.openstackid),
                "subnet_id": privsub.id,
            },
        },
    },
    description="My new LB",
    listeners=[
        {
            "port": 34568,
            "protocol": "tcp",
        },
        {
            "port": 34569,
            "protocol": "udp",
        },
    ])
package main
import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/cloudproject"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		priv, err := cloudproject.NewNetworkPrivate(ctx, "priv", &cloudproject.NetworkPrivateArgs{
			ServiceName: pulumi.String("<public cloud project ID>"),
			VlanId:      pulumi.Int(10),
			Regions: pulumi.StringArray{
				pulumi.String("GRA9"),
			},
		})
		if err != nil {
			return err
		}
		privsub, err := cloudproject.NewNetworkPrivateSubnet(ctx, "privsub", &cloudproject.NetworkPrivateSubnetArgs{
			ServiceName: priv.ServiceName,
			NetworkId:   priv.ID(),
			Region:      pulumi.String("GRA9"),
			Start:       pulumi.String("10.0.0.2"),
			End:         pulumi.String("10.0.255.254"),
			Network:     pulumi.String("10.0.0.0/16"),
			Dhcp:        pulumi.Bool(true),
		})
		if err != nil {
			return err
		}
		_, err = cloudproject.NewLoadBalancer(ctx, "lb", &cloudproject.LoadBalancerArgs{
			ServiceName: privsub.ServiceName,
			RegionName:  privsub.Region,
			FlavorId:    pulumi.String("<loadbalancer flavor ID>"),
			Network: &cloudproject.LoadBalancerNetworkArgs{
				Private: &cloudproject.LoadBalancerNetworkPrivateArgs{
					Network: &cloudproject.LoadBalancerNetworkPrivateNetworkArgs{
						Id: "TODO: call element".ApplyT(func(regions cloudproject.NetworkPrivateRegionsAttribute) (*string, error) {
							return regions.Openstackid, nil
						}).(pulumi.StringPtrOutput),
						SubnetId: privsub.ID(),
					},
				},
			},
			Description: pulumi.String("My new LB"),
			Listeners: cloudproject.LoadBalancerListenerArray{
				&cloudproject.LoadBalancerListenerArgs{
					Port:     pulumi.Float64(34568),
					Protocol: pulumi.String("tcp"),
				},
				&cloudproject.LoadBalancerListenerArgs{
					Port:     pulumi.Float64(34569),
					Protocol: pulumi.String("udp"),
				},
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ovh = Pulumi.Ovh;
return await Deployment.RunAsync(() => 
{
    var priv = new Ovh.CloudProject.NetworkPrivate("priv", new()
    {
        ServiceName = "<public cloud project ID>",
        VlanId = 10,
        Regions = new[]
        {
            "GRA9",
        },
    });
    var privsub = new Ovh.CloudProject.NetworkPrivateSubnet("privsub", new()
    {
        ServiceName = priv.ServiceName,
        NetworkId = priv.Id,
        Region = "GRA9",
        Start = "10.0.0.2",
        End = "10.0.255.254",
        Network = "10.0.0.0/16",
        Dhcp = true,
    });
    var lb = new Ovh.CloudProject.LoadBalancer("lb", new()
    {
        ServiceName = privsub.ServiceName,
        RegionName = privsub.Region,
        FlavorId = "<loadbalancer flavor ID>",
        Network = new Ovh.CloudProject.Inputs.LoadBalancerNetworkArgs
        {
            Private = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateArgs
            {
                Network = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateNetworkArgs
                {
                    Id = priv.RegionsAttributes.Apply(regionsAttributes => regionsAttributes.Where(region => region.Region == "GRA9").Select(region => 
                    {
                        return region;
                    }).ToList())[0].Apply(regions => regions.Openstackid),
                    SubnetId = privsub.Id,
                },
            },
        },
        Description = "My new LB",
        Listeners = new[]
        {
            new Ovh.CloudProject.Inputs.LoadBalancerListenerArgs
            {
                Port = 34568,
                Protocol = "tcp",
            },
            new Ovh.CloudProject.Inputs.LoadBalancerListenerArgs
            {
                Port = 34569,
                Protocol = "udp",
            },
        },
    });
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.CloudProject.NetworkPrivate;
import com.pulumi.ovh.CloudProject.NetworkPrivateArgs;
import com.pulumi.ovh.CloudProject.NetworkPrivateSubnet;
import com.pulumi.ovh.CloudProject.NetworkPrivateSubnetArgs;
import com.pulumi.ovh.CloudProject.LoadBalancer;
import com.pulumi.ovh.CloudProject.LoadBalancerArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerNetworkArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerNetworkPrivateArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerNetworkPrivateNetworkArgs;
import com.pulumi.ovh.CloudProject.inputs.LoadBalancerListenerArgs;
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 priv = new NetworkPrivate("priv", NetworkPrivateArgs.builder()
            .serviceName("<public cloud project ID>")
            .vlanId("10")
            .regions("GRA9")
            .build());
        var privsub = new NetworkPrivateSubnet("privsub", NetworkPrivateSubnetArgs.builder()
            .serviceName(priv.serviceName())
            .networkId(priv.id())
            .region("GRA9")
            .start("10.0.0.2")
            .end("10.0.255.254")
            .network("10.0.0.0/16")
            .dhcp(true)
            .build());
        var lb = new LoadBalancer("lb", LoadBalancerArgs.builder()
            .serviceName(privsub.serviceName())
            .regionName(privsub.region())
            .flavorId("<loadbalancer flavor ID>")
            .network(LoadBalancerNetworkArgs.builder()
                .private_(LoadBalancerNetworkPrivateArgs.builder()
                    .network(LoadBalancerNetworkPrivateNetworkArgs.builder()
                        .id(priv.regionsAttributes().applyValue(regionsAttributes -> "TODO: ForExpression")[0].applyValue(regions -> regions.openstackid()))
                        .subnetId(privsub.id())
                        .build())
                    .build())
                .build())
            .description("My new LB")
            .listeners(            
                LoadBalancerListenerArgs.builder()
                    .port("34568")
                    .protocol("tcp")
                    .build(),
                LoadBalancerListenerArgs.builder()
                    .port("34569")
                    .protocol("udp")
                    .build())
            .build());
    }
}
Coming soon!
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,
                 flavor_id: Optional[str] = None,
                 network: Optional[_cloudproject.LoadBalancerNetworkArgs] = None,
                 region_name: Optional[str] = None,
                 service_name: Optional[str] = None,
                 description: Optional[str] = None,
                 listeners: Optional[Sequence[_cloudproject.LoadBalancerListenerArgs]] = None,
                 name: Optional[str] = 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: ovh:CloudProject: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 Ovh.CloudProject.LoadBalancer("loadBalancerResource", new()
{
    FlavorId = "string",
    Network = new Ovh.CloudProject.Inputs.LoadBalancerNetworkArgs
    {
        Private = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateArgs
        {
            Network = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateNetworkArgs
            {
                Id = "string",
                SubnetId = "string",
            },
            FloatingIp = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateFloatingIpArgs
            {
                Id = "string",
            },
            FloatingIpCreate = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateFloatingIpCreateArgs
            {
                Description = "string",
            },
            Gateway = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateGatewayArgs
            {
                Id = "string",
            },
            GatewayCreate = new Ovh.CloudProject.Inputs.LoadBalancerNetworkPrivateGatewayCreateArgs
            {
                Model = "string",
                Name = "string",
            },
        },
    },
    RegionName = "string",
    ServiceName = "string",
    Description = "string",
    Listeners = new[]
    {
        new Ovh.CloudProject.Inputs.LoadBalancerListenerArgs
        {
            Port = 0,
            Protocol = "string",
            AllowedCidrs = new[]
            {
                "string",
            },
            Description = "string",
            Name = "string",
            Pool = new Ovh.CloudProject.Inputs.LoadBalancerListenerPoolArgs
            {
                Algorithm = "string",
                HealthMonitor = new Ovh.CloudProject.Inputs.LoadBalancerListenerPoolHealthMonitorArgs
                {
                    Delay = 0,
                    HttpConfiguration = new Ovh.CloudProject.Inputs.LoadBalancerListenerPoolHealthMonitorHttpConfigurationArgs
                    {
                        DomainName = "string",
                        ExpectedCodes = "string",
                        HttpMethod = "string",
                        HttpVersion = "string",
                        UrlPath = "string",
                    },
                    MaxRetries = 0,
                    MaxRetriesDown = 0,
                    MonitorType = "string",
                    Name = "string",
                    OperatingStatus = "string",
                    ProvisioningStatus = "string",
                    Timeout = 0,
                },
                Members = new[]
                {
                    new Ovh.CloudProject.Inputs.LoadBalancerListenerPoolMemberArgs
                    {
                        Address = "string",
                        Name = "string",
                        ProtocolPort = 0,
                        Weight = 0,
                    },
                },
                Name = "string",
                Protocol = "string",
                SessionPersistence = new Ovh.CloudProject.Inputs.LoadBalancerListenerPoolSessionPersistenceArgs
                {
                    CookieName = "string",
                    Type = "string",
                },
            },
            SecretId = "string",
            TimeoutClientData = 0,
            TimeoutMemberData = 0,
            TlsVersions = new[]
            {
                "string",
            },
        },
    },
    Name = "string",
});
example, err := CloudProject.NewLoadBalancer(ctx, "loadBalancerResource", &CloudProject.LoadBalancerArgs{
	FlavorId: pulumi.String("string"),
	Network: &cloudproject.LoadBalancerNetworkArgs{
		Private: &cloudproject.LoadBalancerNetworkPrivateArgs{
			Network: &cloudproject.LoadBalancerNetworkPrivateNetworkArgs{
				Id:       pulumi.String("string"),
				SubnetId: pulumi.String("string"),
			},
			FloatingIp: &cloudproject.LoadBalancerNetworkPrivateFloatingIpArgs{
				Id: pulumi.String("string"),
			},
			FloatingIpCreate: &cloudproject.LoadBalancerNetworkPrivateFloatingIpCreateArgs{
				Description: pulumi.String("string"),
			},
			Gateway: &cloudproject.LoadBalancerNetworkPrivateGatewayArgs{
				Id: pulumi.String("string"),
			},
			GatewayCreate: &cloudproject.LoadBalancerNetworkPrivateGatewayCreateArgs{
				Model: pulumi.String("string"),
				Name:  pulumi.String("string"),
			},
		},
	},
	RegionName:  pulumi.String("string"),
	ServiceName: pulumi.String("string"),
	Description: pulumi.String("string"),
	Listeners: cloudproject.LoadBalancerListenerArray{
		&cloudproject.LoadBalancerListenerArgs{
			Port:     pulumi.Float64(0),
			Protocol: pulumi.String("string"),
			AllowedCidrs: pulumi.StringArray{
				pulumi.String("string"),
			},
			Description: pulumi.String("string"),
			Name:        pulumi.String("string"),
			Pool: &cloudproject.LoadBalancerListenerPoolArgs{
				Algorithm: pulumi.String("string"),
				HealthMonitor: &cloudproject.LoadBalancerListenerPoolHealthMonitorArgs{
					Delay: pulumi.Float64(0),
					HttpConfiguration: &cloudproject.LoadBalancerListenerPoolHealthMonitorHttpConfigurationArgs{
						DomainName:    pulumi.String("string"),
						ExpectedCodes: pulumi.String("string"),
						HttpMethod:    pulumi.String("string"),
						HttpVersion:   pulumi.String("string"),
						UrlPath:       pulumi.String("string"),
					},
					MaxRetries:         pulumi.Float64(0),
					MaxRetriesDown:     pulumi.Float64(0),
					MonitorType:        pulumi.String("string"),
					Name:               pulumi.String("string"),
					OperatingStatus:    pulumi.String("string"),
					ProvisioningStatus: pulumi.String("string"),
					Timeout:            pulumi.Float64(0),
				},
				Members: cloudproject.LoadBalancerListenerPoolMemberArray{
					&cloudproject.LoadBalancerListenerPoolMemberArgs{
						Address:      pulumi.String("string"),
						Name:         pulumi.String("string"),
						ProtocolPort: pulumi.Float64(0),
						Weight:       pulumi.Float64(0),
					},
				},
				Name:     pulumi.String("string"),
				Protocol: pulumi.String("string"),
				SessionPersistence: &cloudproject.LoadBalancerListenerPoolSessionPersistenceArgs{
					CookieName: pulumi.String("string"),
					Type:       pulumi.String("string"),
				},
			},
			SecretId:          pulumi.String("string"),
			TimeoutClientData: pulumi.Float64(0),
			TimeoutMemberData: pulumi.Float64(0),
			TlsVersions: pulumi.StringArray{
				pulumi.String("string"),
			},
		},
	},
	Name: pulumi.String("string"),
})
var loadBalancerResource = new LoadBalancer("loadBalancerResource", LoadBalancerArgs.builder()
    .flavorId("string")
    .network(LoadBalancerNetworkArgs.builder()
        .private_(LoadBalancerNetworkPrivateArgs.builder()
            .network(LoadBalancerNetworkPrivateNetworkArgs.builder()
                .id("string")
                .subnetId("string")
                .build())
            .floatingIp(LoadBalancerNetworkPrivateFloatingIpArgs.builder()
                .id("string")
                .build())
            .floatingIpCreate(LoadBalancerNetworkPrivateFloatingIpCreateArgs.builder()
                .description("string")
                .build())
            .gateway(LoadBalancerNetworkPrivateGatewayArgs.builder()
                .id("string")
                .build())
            .gatewayCreate(LoadBalancerNetworkPrivateGatewayCreateArgs.builder()
                .model("string")
                .name("string")
                .build())
            .build())
        .build())
    .regionName("string")
    .serviceName("string")
    .description("string")
    .listeners(LoadBalancerListenerArgs.builder()
        .port(0)
        .protocol("string")
        .allowedCidrs("string")
        .description("string")
        .name("string")
        .pool(LoadBalancerListenerPoolArgs.builder()
            .algorithm("string")
            .healthMonitor(LoadBalancerListenerPoolHealthMonitorArgs.builder()
                .delay(0)
                .httpConfiguration(LoadBalancerListenerPoolHealthMonitorHttpConfigurationArgs.builder()
                    .domainName("string")
                    .expectedCodes("string")
                    .httpMethod("string")
                    .httpVersion("string")
                    .urlPath("string")
                    .build())
                .maxRetries(0)
                .maxRetriesDown(0)
                .monitorType("string")
                .name("string")
                .operatingStatus("string")
                .provisioningStatus("string")
                .timeout(0)
                .build())
            .members(LoadBalancerListenerPoolMemberArgs.builder()
                .address("string")
                .name("string")
                .protocolPort(0)
                .weight(0)
                .build())
            .name("string")
            .protocol("string")
            .sessionPersistence(LoadBalancerListenerPoolSessionPersistenceArgs.builder()
                .cookieName("string")
                .type("string")
                .build())
            .build())
        .secretId("string")
        .timeoutClientData(0)
        .timeoutMemberData(0)
        .tlsVersions("string")
        .build())
    .name("string")
    .build());
load_balancer_resource = ovh.cloud_project.LoadBalancer("loadBalancerResource",
    flavor_id="string",
    network={
        "private": {
            "network": {
                "id": "string",
                "subnet_id": "string",
            },
            "floating_ip": {
                "id": "string",
            },
            "floating_ip_create": {
                "description": "string",
            },
            "gateway": {
                "id": "string",
            },
            "gateway_create": {
                "model": "string",
                "name": "string",
            },
        },
    },
    region_name="string",
    service_name="string",
    description="string",
    listeners=[{
        "port": 0,
        "protocol": "string",
        "allowed_cidrs": ["string"],
        "description": "string",
        "name": "string",
        "pool": {
            "algorithm": "string",
            "health_monitor": {
                "delay": 0,
                "http_configuration": {
                    "domain_name": "string",
                    "expected_codes": "string",
                    "http_method": "string",
                    "http_version": "string",
                    "url_path": "string",
                },
                "max_retries": 0,
                "max_retries_down": 0,
                "monitor_type": "string",
                "name": "string",
                "operating_status": "string",
                "provisioning_status": "string",
                "timeout": 0,
            },
            "members": [{
                "address": "string",
                "name": "string",
                "protocol_port": 0,
                "weight": 0,
            }],
            "name": "string",
            "protocol": "string",
            "session_persistence": {
                "cookie_name": "string",
                "type": "string",
            },
        },
        "secret_id": "string",
        "timeout_client_data": 0,
        "timeout_member_data": 0,
        "tls_versions": ["string"],
    }],
    name="string")
const loadBalancerResource = new ovh.cloudproject.LoadBalancer("loadBalancerResource", {
    flavorId: "string",
    network: {
        "private": {
            network: {
                id: "string",
                subnetId: "string",
            },
            floatingIp: {
                id: "string",
            },
            floatingIpCreate: {
                description: "string",
            },
            gateway: {
                id: "string",
            },
            gatewayCreate: {
                model: "string",
                name: "string",
            },
        },
    },
    regionName: "string",
    serviceName: "string",
    description: "string",
    listeners: [{
        port: 0,
        protocol: "string",
        allowedCidrs: ["string"],
        description: "string",
        name: "string",
        pool: {
            algorithm: "string",
            healthMonitor: {
                delay: 0,
                httpConfiguration: {
                    domainName: "string",
                    expectedCodes: "string",
                    httpMethod: "string",
                    httpVersion: "string",
                    urlPath: "string",
                },
                maxRetries: 0,
                maxRetriesDown: 0,
                monitorType: "string",
                name: "string",
                operatingStatus: "string",
                provisioningStatus: "string",
                timeout: 0,
            },
            members: [{
                address: "string",
                name: "string",
                protocolPort: 0,
                weight: 0,
            }],
            name: "string",
            protocol: "string",
            sessionPersistence: {
                cookieName: "string",
                type: "string",
            },
        },
        secretId: "string",
        timeoutClientData: 0,
        timeoutMemberData: 0,
        tlsVersions: ["string"],
    }],
    name: "string",
});
type: ovh:CloudProject:LoadBalancer
properties:
    description: string
    flavorId: string
    listeners:
        - allowedCidrs:
            - string
          description: string
          name: string
          pool:
            algorithm: string
            healthMonitor:
                delay: 0
                httpConfiguration:
                    domainName: string
                    expectedCodes: string
                    httpMethod: string
                    httpVersion: string
                    urlPath: string
                maxRetries: 0
                maxRetriesDown: 0
                monitorType: string
                name: string
                operatingStatus: string
                provisioningStatus: string
                timeout: 0
            members:
                - address: string
                  name: string
                  protocolPort: 0
                  weight: 0
            name: string
            protocol: string
            sessionPersistence:
                cookieName: string
                type: string
          port: 0
          protocol: string
          secretId: string
          timeoutClientData: 0
          timeoutMemberData: 0
          tlsVersions:
            - string
    name: string
    network:
        private:
            floatingIp:
                id: string
            floatingIpCreate:
                description: string
            gateway:
                id: string
            gatewayCreate:
                model: string
                name: string
            network:
                id: string
                subnetId: string
    regionName: string
    serviceName: 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:
- FlavorId string
- Loadbalancer flavor id
- Network
LoadBalancer Network 
- Network information to create the loadbalancer
- RegionName string
- Region name
- ServiceName string
- Service name
- Description string
- Description of the loadbalancer
- Listeners
List<LoadBalancer Listener> 
- Listeners to create with the loadbalancer
- Name string
- Name of the resource
- FlavorId string
- Loadbalancer flavor id
- Network
LoadBalancer Network Args 
- Network information to create the loadbalancer
- RegionName string
- Region name
- ServiceName string
- Service name
- Description string
- Description of the loadbalancer
- Listeners
[]LoadBalancer Listener Args 
- Listeners to create with the loadbalancer
- Name string
- Name of the resource
- flavorId String
- Loadbalancer flavor id
- network
LoadBalancer Network 
- Network information to create the loadbalancer
- regionName String
- Region name
- serviceName String
- Service name
- description String
- Description of the loadbalancer
- listeners
List<LoadBalancer Listener> 
- Listeners to create with the loadbalancer
- name String
- Name of the resource
- flavorId string
- Loadbalancer flavor id
- network
LoadBalancer Network 
- Network information to create the loadbalancer
- regionName string
- Region name
- serviceName string
- Service name
- description string
- Description of the loadbalancer
- listeners
LoadBalancer Listener[] 
- Listeners to create with the loadbalancer
- name string
- Name of the resource
- flavor_id str
- Loadbalancer flavor id
- network
cloudproject.Load Balancer Network Args 
- Network information to create the loadbalancer
- region_name str
- Region name
- service_name str
- Service name
- description str
- Description of the loadbalancer
- listeners
Sequence[cloudproject.Load Balancer Listener Args] 
- Listeners to create with the loadbalancer
- name str
- Name of the resource
- flavorId String
- Loadbalancer flavor id
- network Property Map
- Network information to create the loadbalancer
- regionName String
- Region name
- serviceName String
- Service name
- description String
- Description of the loadbalancer
- listeners List<Property Map>
- Listeners to create with the loadbalancer
- name String
- Name of the resource
Outputs
All input properties are implicitly available as output properties. Additionally, the LoadBalancer resource produces the following output properties:
- CreatedAt string
- The UTC date and timestamp when the resource was created
- FloatingIp LoadBalancer Floating Ip 
- Information about floating IP
- Id string
- The provider-assigned unique ID for this managed resource.
- OperatingStatus string
- Operating status of the resource
- ProvisioningStatus string
- Provisioning status of the resource
- Region string
- Region of the resource
- UpdatedAt string
- UTC date and timestamp when the resource was created
- VipAddress string
- IP address of the Virtual IP
- VipNetwork stringId 
- Openstack ID of the network for the Virtual IP
- VipSubnet stringId 
- ID of the subnet for the Virtual IP
- CreatedAt string
- The UTC date and timestamp when the resource was created
- FloatingIp LoadBalancer Floating Ip 
- Information about floating IP
- Id string
- The provider-assigned unique ID for this managed resource.
- OperatingStatus string
- Operating status of the resource
- ProvisioningStatus string
- Provisioning status of the resource
- Region string
- Region of the resource
- UpdatedAt string
- UTC date and timestamp when the resource was created
- VipAddress string
- IP address of the Virtual IP
- VipNetwork stringId 
- Openstack ID of the network for the Virtual IP
- VipSubnet stringId 
- ID of the subnet for the Virtual IP
- createdAt String
- The UTC date and timestamp when the resource was created
- floatingIp LoadBalancer Floating Ip 
- Information about floating IP
- id String
- The provider-assigned unique ID for this managed resource.
- operatingStatus String
- Operating status of the resource
- provisioningStatus String
- Provisioning status of the resource
- region String
- Region of the resource
- updatedAt String
- UTC date and timestamp when the resource was created
- vipAddress String
- IP address of the Virtual IP
- vipNetwork StringId 
- Openstack ID of the network for the Virtual IP
- vipSubnet StringId 
- ID of the subnet for the Virtual IP
- createdAt string
- The UTC date and timestamp when the resource was created
- floatingIp LoadBalancer Floating Ip 
- Information about floating IP
- id string
- The provider-assigned unique ID for this managed resource.
- operatingStatus string
- Operating status of the resource
- provisioningStatus string
- Provisioning status of the resource
- region string
- Region of the resource
- updatedAt string
- UTC date and timestamp when the resource was created
- vipAddress string
- IP address of the Virtual IP
- vipNetwork stringId 
- Openstack ID of the network for the Virtual IP
- vipSubnet stringId 
- ID of the subnet for the Virtual IP
- created_at str
- The UTC date and timestamp when the resource was created
- floating_ip cloudproject.Load Balancer Floating Ip 
- Information about floating IP
- id str
- The provider-assigned unique ID for this managed resource.
- operating_status str
- Operating status of the resource
- provisioning_status str
- Provisioning status of the resource
- region str
- Region of the resource
- updated_at str
- UTC date and timestamp when the resource was created
- vip_address str
- IP address of the Virtual IP
- vip_network_ strid 
- Openstack ID of the network for the Virtual IP
- vip_subnet_ strid 
- ID of the subnet for the Virtual IP
- createdAt String
- The UTC date and timestamp when the resource was created
- floatingIp Property Map
- Information about floating IP
- id String
- The provider-assigned unique ID for this managed resource.
- operatingStatus String
- Operating status of the resource
- provisioningStatus String
- Provisioning status of the resource
- region String
- Region of the resource
- updatedAt String
- UTC date and timestamp when the resource was created
- vipAddress String
- IP address of the Virtual IP
- vipNetwork StringId 
- Openstack ID of the network for the Virtual IP
- vipSubnet StringId 
- ID of the subnet for the Virtual IP
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,
        created_at: Optional[str] = None,
        description: Optional[str] = None,
        flavor_id: Optional[str] = None,
        floating_ip: Optional[_cloudproject.LoadBalancerFloatingIpArgs] = None,
        listeners: Optional[Sequence[_cloudproject.LoadBalancerListenerArgs]] = None,
        name: Optional[str] = None,
        network: Optional[_cloudproject.LoadBalancerNetworkArgs] = None,
        operating_status: Optional[str] = None,
        provisioning_status: Optional[str] = None,
        region: Optional[str] = None,
        region_name: Optional[str] = None,
        service_name: Optional[str] = None,
        updated_at: Optional[str] = None,
        vip_address: Optional[str] = None,
        vip_network_id: Optional[str] = None,
        vip_subnet_id: Optional[str] = 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: ovh:CloudProject: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.
- CreatedAt string
- The UTC date and timestamp when the resource was created
- Description string
- Description of the loadbalancer
- FlavorId string
- Loadbalancer flavor id
- FloatingIp LoadBalancer Floating Ip 
- Information about floating IP
- Listeners
List<LoadBalancer Listener> 
- Listeners to create with the loadbalancer
- Name string
- Name of the resource
- Network
LoadBalancer Network 
- Network information to create the loadbalancer
- OperatingStatus string
- Operating status of the resource
- ProvisioningStatus string
- Provisioning status of the resource
- Region string
- Region of the resource
- RegionName string
- Region name
- ServiceName string
- Service name
- UpdatedAt string
- UTC date and timestamp when the resource was created
- VipAddress string
- IP address of the Virtual IP
- VipNetwork stringId 
- Openstack ID of the network for the Virtual IP
- VipSubnet stringId 
- ID of the subnet for the Virtual IP
- CreatedAt string
- The UTC date and timestamp when the resource was created
- Description string
- Description of the loadbalancer
- FlavorId string
- Loadbalancer flavor id
- FloatingIp LoadBalancer Floating Ip Args 
- Information about floating IP
- Listeners
[]LoadBalancer Listener Args 
- Listeners to create with the loadbalancer
- Name string
- Name of the resource
- Network
LoadBalancer Network Args 
- Network information to create the loadbalancer
- OperatingStatus string
- Operating status of the resource
- ProvisioningStatus string
- Provisioning status of the resource
- Region string
- Region of the resource
- RegionName string
- Region name
- ServiceName string
- Service name
- UpdatedAt string
- UTC date and timestamp when the resource was created
- VipAddress string
- IP address of the Virtual IP
- VipNetwork stringId 
- Openstack ID of the network for the Virtual IP
- VipSubnet stringId 
- ID of the subnet for the Virtual IP
- createdAt String
- The UTC date and timestamp when the resource was created
- description String
- Description of the loadbalancer
- flavorId String
- Loadbalancer flavor id
- floatingIp LoadBalancer Floating Ip 
- Information about floating IP
- listeners
List<LoadBalancer Listener> 
- Listeners to create with the loadbalancer
- name String
- Name of the resource
- network
LoadBalancer Network 
- Network information to create the loadbalancer
- operatingStatus String
- Operating status of the resource
- provisioningStatus String
- Provisioning status of the resource
- region String
- Region of the resource
- regionName String
- Region name
- serviceName String
- Service name
- updatedAt String
- UTC date and timestamp when the resource was created
- vipAddress String
- IP address of the Virtual IP
- vipNetwork StringId 
- Openstack ID of the network for the Virtual IP
- vipSubnet StringId 
- ID of the subnet for the Virtual IP
- createdAt string
- The UTC date and timestamp when the resource was created
- description string
- Description of the loadbalancer
- flavorId string
- Loadbalancer flavor id
- floatingIp LoadBalancer Floating Ip 
- Information about floating IP
- listeners
LoadBalancer Listener[] 
- Listeners to create with the loadbalancer
- name string
- Name of the resource
- network
LoadBalancer Network 
- Network information to create the loadbalancer
- operatingStatus string
- Operating status of the resource
- provisioningStatus string
- Provisioning status of the resource
- region string
- Region of the resource
- regionName string
- Region name
- serviceName string
- Service name
- updatedAt string
- UTC date and timestamp when the resource was created
- vipAddress string
- IP address of the Virtual IP
- vipNetwork stringId 
- Openstack ID of the network for the Virtual IP
- vipSubnet stringId 
- ID of the subnet for the Virtual IP
- created_at str
- The UTC date and timestamp when the resource was created
- description str
- Description of the loadbalancer
- flavor_id str
- Loadbalancer flavor id
- floating_ip cloudproject.Load Balancer Floating Ip Args 
- Information about floating IP
- listeners
Sequence[cloudproject.Load Balancer Listener Args] 
- Listeners to create with the loadbalancer
- name str
- Name of the resource
- network
cloudproject.Load Balancer Network Args 
- Network information to create the loadbalancer
- operating_status str
- Operating status of the resource
- provisioning_status str
- Provisioning status of the resource
- region str
- Region of the resource
- region_name str
- Region name
- service_name str
- Service name
- updated_at str
- UTC date and timestamp when the resource was created
- vip_address str
- IP address of the Virtual IP
- vip_network_ strid 
- Openstack ID of the network for the Virtual IP
- vip_subnet_ strid 
- ID of the subnet for the Virtual IP
- createdAt String
- The UTC date and timestamp when the resource was created
- description String
- Description of the loadbalancer
- flavorId String
- Loadbalancer flavor id
- floatingIp Property Map
- Information about floating IP
- listeners List<Property Map>
- Listeners to create with the loadbalancer
- name String
- Name of the resource
- network Property Map
- Network information to create the loadbalancer
- operatingStatus String
- Operating status of the resource
- provisioningStatus String
- Provisioning status of the resource
- region String
- Region of the resource
- regionName String
- Region name
- serviceName String
- Service name
- updatedAt String
- UTC date and timestamp when the resource was created
- vipAddress String
- IP address of the Virtual IP
- vipNetwork StringId 
- Openstack ID of the network for the Virtual IP
- vipSubnet StringId 
- ID of the subnet for the Virtual IP
Supporting Types
LoadBalancerFloatingIp, LoadBalancerFloatingIpArgs        
LoadBalancerListener, LoadBalancerListenerArgs      
- Port double
- Listener port
- Protocol string
- Protocol for the listener
- AllowedCidrs List<string>
- The allowed CIDRs
- Description string
- The description of the listener
- Name string
- Name of the listener
- Pool
LoadBalancer Listener Pool 
- Listener pool
- SecretId string
- Secret ID to get certificate for SSL listener creation
- TimeoutClient doubleData 
- Timeout client data of the listener
- TimeoutMember doubleData 
- Timeout member data of the listener
- TlsVersions List<string>
- TLS versions of the listener
- Port float64
- Listener port
- Protocol string
- Protocol for the listener
- AllowedCidrs []string
- The allowed CIDRs
- Description string
- The description of the listener
- Name string
- Name of the listener
- Pool
LoadBalancer Listener Pool 
- Listener pool
- SecretId string
- Secret ID to get certificate for SSL listener creation
- TimeoutClient float64Data 
- Timeout client data of the listener
- TimeoutMember float64Data 
- Timeout member data of the listener
- TlsVersions []string
- TLS versions of the listener
- port Double
- Listener port
- protocol String
- Protocol for the listener
- allowedCidrs List<String>
- The allowed CIDRs
- description String
- The description of the listener
- name String
- Name of the listener
- pool
LoadBalancer Listener Pool 
- Listener pool
- secretId String
- Secret ID to get certificate for SSL listener creation
- timeoutClient DoubleData 
- Timeout client data of the listener
- timeoutMember DoubleData 
- Timeout member data of the listener
- tlsVersions List<String>
- TLS versions of the listener
- port number
- Listener port
- protocol string
- Protocol for the listener
- allowedCidrs string[]
- The allowed CIDRs
- description string
- The description of the listener
- name string
- Name of the listener
- pool
LoadBalancer Listener Pool 
- Listener pool
- secretId string
- Secret ID to get certificate for SSL listener creation
- timeoutClient numberData 
- Timeout client data of the listener
- timeoutMember numberData 
- Timeout member data of the listener
- tlsVersions string[]
- TLS versions of the listener
- port float
- Listener port
- protocol str
- Protocol for the listener
- allowed_cidrs Sequence[str]
- The allowed CIDRs
- description str
- The description of the listener
- name str
- Name of the listener
- pool
cloudproject.Load Balancer Listener Pool 
- Listener pool
- secret_id str
- Secret ID to get certificate for SSL listener creation
- timeout_client_ floatdata 
- Timeout client data of the listener
- timeout_member_ floatdata 
- Timeout member data of the listener
- tls_versions Sequence[str]
- TLS versions of the listener
- port Number
- Listener port
- protocol String
- Protocol for the listener
- allowedCidrs List<String>
- The allowed CIDRs
- description String
- The description of the listener
- name String
- Name of the listener
- pool Property Map
- Listener pool
- secretId String
- Secret ID to get certificate for SSL listener creation
- timeoutClient NumberData 
- Timeout client data of the listener
- timeoutMember NumberData 
- Timeout member data of the listener
- tlsVersions List<String>
- TLS versions of the listener
LoadBalancerListenerPool, LoadBalancerListenerPoolArgs        
- Algorithm string
- Pool algorithm to split traffic between members
- HealthMonitor LoadBalancer Listener Pool Health Monitor 
- Pool health monitor
- Members
List<LoadBalancer Listener Pool Member> 
- Pool members
- Name string
- Name of the pool
- Protocol string
- Protocol for the pool
- SessionPersistence LoadBalancer Listener Pool Session Persistence 
- Pool session persistence
- Algorithm string
- Pool algorithm to split traffic between members
- HealthMonitor LoadBalancer Listener Pool Health Monitor 
- Pool health monitor
- Members
[]LoadBalancer Listener Pool Member 
- Pool members
- Name string
- Name of the pool
- Protocol string
- Protocol for the pool
- SessionPersistence LoadBalancer Listener Pool Session Persistence 
- Pool session persistence
- algorithm String
- Pool algorithm to split traffic between members
- healthMonitor LoadBalancer Listener Pool Health Monitor 
- Pool health monitor
- members
List<LoadBalancer Listener Pool Member> 
- Pool members
- name String
- Name of the pool
- protocol String
- Protocol for the pool
- sessionPersistence LoadBalancer Listener Pool Session Persistence 
- Pool session persistence
- algorithm string
- Pool algorithm to split traffic between members
- healthMonitor LoadBalancer Listener Pool Health Monitor 
- Pool health monitor
- members
LoadBalancer Listener Pool Member[] 
- Pool members
- name string
- Name of the pool
- protocol string
- Protocol for the pool
- sessionPersistence LoadBalancer Listener Pool Session Persistence 
- Pool session persistence
- algorithm str
- Pool algorithm to split traffic between members
- health_monitor cloudproject.Load Balancer Listener Pool Health Monitor 
- Pool health monitor
- members
Sequence[cloudproject.Load Balancer Listener Pool Member] 
- Pool members
- name str
- Name of the pool
- protocol str
- Protocol for the pool
- session_persistence cloudproject.Load Balancer Listener Pool Session Persistence 
- Pool session persistence
- algorithm String
- Pool algorithm to split traffic between members
- healthMonitor Property Map
- Pool health monitor
- members List<Property Map>
- Pool members
- name String
- Name of the pool
- protocol String
- Protocol for the pool
- sessionPersistence Property Map
- Pool session persistence
LoadBalancerListenerPoolHealthMonitor, LoadBalancerListenerPoolHealthMonitorArgs            
- Delay double
- Duration between sending probes to members, in seconds
- HttpConfiguration LoadBalancer Listener Pool Health Monitor Http Configuration 
- Monitor HTTP configuration
- MaxRetries double
- Number of successful checks before changing the operating status of the member to ONLINE
- MaxRetries doubleDown 
- Number of allowed check failures before changing the operating status of the member to ERROR
- MonitorType string
- Type of the monitor
- Name string
- The name of the resource
- OperatingStatus string
- The operating status of the resource
- ProvisioningStatus string
- The provisioning status of the resource
- Timeout double
- Maximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value
- Delay float64
- Duration between sending probes to members, in seconds
- HttpConfiguration LoadBalancer Listener Pool Health Monitor Http Configuration 
- Monitor HTTP configuration
- MaxRetries float64
- Number of successful checks before changing the operating status of the member to ONLINE
- MaxRetries float64Down 
- Number of allowed check failures before changing the operating status of the member to ERROR
- MonitorType string
- Type of the monitor
- Name string
- The name of the resource
- OperatingStatus string
- The operating status of the resource
- ProvisioningStatus string
- The provisioning status of the resource
- Timeout float64
- Maximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value
- delay Double
- Duration between sending probes to members, in seconds
- httpConfiguration LoadBalancer Listener Pool Health Monitor Http Configuration 
- Monitor HTTP configuration
- maxRetries Double
- Number of successful checks before changing the operating status of the member to ONLINE
- maxRetries DoubleDown 
- Number of allowed check failures before changing the operating status of the member to ERROR
- monitorType String
- Type of the monitor
- name String
- The name of the resource
- operatingStatus String
- The operating status of the resource
- provisioningStatus String
- The provisioning status of the resource
- timeout Double
- Maximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value
- delay number
- Duration between sending probes to members, in seconds
- httpConfiguration LoadBalancer Listener Pool Health Monitor Http Configuration 
- Monitor HTTP configuration
- maxRetries number
- Number of successful checks before changing the operating status of the member to ONLINE
- maxRetries numberDown 
- Number of allowed check failures before changing the operating status of the member to ERROR
- monitorType string
- Type of the monitor
- name string
- The name of the resource
- operatingStatus string
- The operating status of the resource
- provisioningStatus string
- The provisioning status of the resource
- timeout number
- Maximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value
- delay float
- Duration between sending probes to members, in seconds
- http_configuration cloudproject.Load Balancer Listener Pool Health Monitor Http Configuration 
- Monitor HTTP configuration
- max_retries float
- Number of successful checks before changing the operating status of the member to ONLINE
- max_retries_ floatdown 
- Number of allowed check failures before changing the operating status of the member to ERROR
- monitor_type str
- Type of the monitor
- name str
- The name of the resource
- operating_status str
- The operating status of the resource
- provisioning_status str
- The provisioning status of the resource
- timeout float
- Maximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value
- delay Number
- Duration between sending probes to members, in seconds
- httpConfiguration Property Map
- Monitor HTTP configuration
- maxRetries Number
- Number of successful checks before changing the operating status of the member to ONLINE
- maxRetries NumberDown 
- Number of allowed check failures before changing the operating status of the member to ERROR
- monitorType String
- Type of the monitor
- name String
- The name of the resource
- operatingStatus String
- The operating status of the resource
- provisioningStatus String
- The provisioning status of the resource
- timeout Number
- Maximum time, in seconds, that a monitor waits to connect before it times out. This value must be less than the delay value
LoadBalancerListenerPoolHealthMonitorHttpConfiguration, LoadBalancerListenerPoolHealthMonitorHttpConfigurationArgs                
- DomainName string
- Domain name, which be injected into the HTTP Host Header to the backend server for HTTP health check
- ExpectedCodes string
- Status codes expected in response from the member to declare it healthy; The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values: * A single value, such as 200; * A list, such as 200, 202; * A range, such as 200-204
- HttpMethod string
- HTTP method that the health monitor uses for requests
- HttpVersion string
- HTTP version that the health monitor uses for requests
- UrlPath string
- HTTP URL path of the request sent by the monitor to test the health of a backend member
- DomainName string
- Domain name, which be injected into the HTTP Host Header to the backend server for HTTP health check
- ExpectedCodes string
- Status codes expected in response from the member to declare it healthy; The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values: * A single value, such as 200; * A list, such as 200, 202; * A range, such as 200-204
- HttpMethod string
- HTTP method that the health monitor uses for requests
- HttpVersion string
- HTTP version that the health monitor uses for requests
- UrlPath string
- HTTP URL path of the request sent by the monitor to test the health of a backend member
- domainName String
- Domain name, which be injected into the HTTP Host Header to the backend server for HTTP health check
- expectedCodes String
- Status codes expected in response from the member to declare it healthy; The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values: * A single value, such as 200; * A list, such as 200, 202; * A range, such as 200-204
- httpMethod String
- HTTP method that the health monitor uses for requests
- httpVersion String
- HTTP version that the health monitor uses for requests
- urlPath String
- HTTP URL path of the request sent by the monitor to test the health of a backend member
- domainName string
- Domain name, which be injected into the HTTP Host Header to the backend server for HTTP health check
- expectedCodes string
- Status codes expected in response from the member to declare it healthy; The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values: * A single value, such as 200; * A list, such as 200, 202; * A range, such as 200-204
- httpMethod string
- HTTP method that the health monitor uses for requests
- httpVersion string
- HTTP version that the health monitor uses for requests
- urlPath string
- HTTP URL path of the request sent by the monitor to test the health of a backend member
- domain_name str
- Domain name, which be injected into the HTTP Host Header to the backend server for HTTP health check
- expected_codes str
- Status codes expected in response from the member to declare it healthy; The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values: * A single value, such as 200; * A list, such as 200, 202; * A range, such as 200-204
- http_method str
- HTTP method that the health monitor uses for requests
- http_version str
- HTTP version that the health monitor uses for requests
- url_path str
- HTTP URL path of the request sent by the monitor to test the health of a backend member
- domainName String
- Domain name, which be injected into the HTTP Host Header to the backend server for HTTP health check
- expectedCodes String
- Status codes expected in response from the member to declare it healthy; The list of HTTP status codes expected in response from the member to declare it healthy. Specify one of the following values: * A single value, such as 200; * A list, such as 200, 202; * A range, such as 200-204
- httpMethod String
- HTTP method that the health monitor uses for requests
- httpVersion String
- HTTP version that the health monitor uses for requests
- urlPath String
- HTTP URL path of the request sent by the monitor to test the health of a backend member
LoadBalancerListenerPoolMember, LoadBalancerListenerPoolMemberArgs          
- Address string
- IP address of the resource
- Name string
- Name of the member
- ProtocolPort double
- Protocol port number for the resource
- Weight double
- Weight of a member determines the portion of requests or connections it services compared to the other members of the pool. Between 1 and 256.
- Address string
- IP address of the resource
- Name string
- Name of the member
- ProtocolPort float64
- Protocol port number for the resource
- Weight float64
- Weight of a member determines the portion of requests or connections it services compared to the other members of the pool. Between 1 and 256.
- address String
- IP address of the resource
- name String
- Name of the member
- protocolPort Double
- Protocol port number for the resource
- weight Double
- Weight of a member determines the portion of requests or connections it services compared to the other members of the pool. Between 1 and 256.
- address string
- IP address of the resource
- name string
- Name of the member
- protocolPort number
- Protocol port number for the resource
- weight number
- Weight of a member determines the portion of requests or connections it services compared to the other members of the pool. Between 1 and 256.
- address str
- IP address of the resource
- name str
- Name of the member
- protocol_port float
- Protocol port number for the resource
- weight float
- Weight of a member determines the portion of requests or connections it services compared to the other members of the pool. Between 1 and 256.
- address String
- IP address of the resource
- name String
- Name of the member
- protocolPort Number
- Protocol port number for the resource
- weight Number
- Weight of a member determines the portion of requests or connections it services compared to the other members of the pool. Between 1 and 256.
LoadBalancerListenerPoolSessionPersistence, LoadBalancerListenerPoolSessionPersistenceArgs            
- string
- Cookie name, only applicable to session persistence through cookie
- Type string
- Type of session persistence
- string
- Cookie name, only applicable to session persistence through cookie
- Type string
- Type of session persistence
- String
- Cookie name, only applicable to session persistence through cookie
- type String
- Type of session persistence
- string
- Cookie name, only applicable to session persistence through cookie
- type string
- Type of session persistence
- str
- Cookie name, only applicable to session persistence through cookie
- type str
- Type of session persistence
- String
- Cookie name, only applicable to session persistence through cookie
- type String
- Type of session persistence
LoadBalancerNetwork, LoadBalancerNetworkArgs      
- Private
LoadBalancer Network Private 
- Information to private network
- Private
LoadBalancer Network Private 
- Information to private network
- private_
LoadBalancer Network Private 
- Information to private network
- private
LoadBalancer Network Private 
- Information to private network
- private
cloudproject.Load Balancer Network Private 
- Information to private network
- private Property Map
- Information to private network
LoadBalancerNetworkPrivate, LoadBalancerNetworkPrivateArgs        
- Network
LoadBalancer Network Private Network 
- Network to associate
- FloatingIp LoadBalancer Network Private Floating Ip 
- Floating IP to associate
- FloatingIp LoadCreate Balancer Network Private Floating Ip Create 
- Floating IP to create
- Gateway
LoadBalancer Network Private Gateway 
- Gateway to associate
- GatewayCreate LoadBalancer Network Private Gateway Create 
- Gateway to create
- Network
LoadBalancer Network Private Network 
- Network to associate
- FloatingIp LoadBalancer Network Private Floating Ip 
- Floating IP to associate
- FloatingIp LoadCreate Balancer Network Private Floating Ip Create 
- Floating IP to create
- Gateway
LoadBalancer Network Private Gateway 
- Gateway to associate
- GatewayCreate LoadBalancer Network Private Gateway Create 
- Gateway to create
- network
LoadBalancer Network Private Network 
- Network to associate
- floatingIp LoadBalancer Network Private Floating Ip 
- Floating IP to associate
- floatingIp LoadCreate Balancer Network Private Floating Ip Create 
- Floating IP to create
- gateway
LoadBalancer Network Private Gateway 
- Gateway to associate
- gatewayCreate LoadBalancer Network Private Gateway Create 
- Gateway to create
- network
LoadBalancer Network Private Network 
- Network to associate
- floatingIp LoadBalancer Network Private Floating Ip 
- Floating IP to associate
- floatingIp LoadCreate Balancer Network Private Floating Ip Create 
- Floating IP to create
- gateway
LoadBalancer Network Private Gateway 
- Gateway to associate
- gatewayCreate LoadBalancer Network Private Gateway Create 
- Gateway to create
- network
cloudproject.Load Balancer Network Private Network 
- Network to associate
- floating_ip cloudproject.Load Balancer Network Private Floating Ip 
- Floating IP to associate
- floating_ip_ cloudproject.create Load Balancer Network Private Floating Ip Create 
- Floating IP to create
- gateway
cloudproject.Load Balancer Network Private Gateway 
- Gateway to associate
- gateway_create cloudproject.Load Balancer Network Private Gateway Create 
- Gateway to create
- network Property Map
- Network to associate
- floatingIp Property Map
- Floating IP to associate
- floatingIp Property MapCreate 
- Floating IP to create
- gateway Property Map
- Gateway to associate
- gatewayCreate Property Map
- Gateway to create
LoadBalancerNetworkPrivateFloatingIp, LoadBalancerNetworkPrivateFloatingIpArgs            
- Id string
- ID of the floatingIp
- Id string
- ID of the floatingIp
- id String
- ID of the floatingIp
- id string
- ID of the floatingIp
- id str
- ID of the floatingIp
- id String
- ID of the floatingIp
LoadBalancerNetworkPrivateFloatingIpCreate, LoadBalancerNetworkPrivateFloatingIpCreateArgs              
- Description string
- Description for the floatingIp
- Description string
- Description for the floatingIp
- description String
- Description for the floatingIp
- description string
- Description for the floatingIp
- description str
- Description for the floatingIp
- description String
- Description for the floatingIp
LoadBalancerNetworkPrivateGateway, LoadBalancerNetworkPrivateGatewayArgs          
- Id string
- ID of the gateway
- Id string
- ID of the gateway
- id String
- ID of the gateway
- id string
- ID of the gateway
- id str
- ID of the gateway
- id String
- ID of the gateway
LoadBalancerNetworkPrivateGatewayCreate, LoadBalancerNetworkPrivateGatewayCreateArgs            
LoadBalancerNetworkPrivateNetwork, LoadBalancerNetworkPrivateNetworkArgs          
Import
A load balancer in a public cloud project can be imported using the service_name, region_name and id attributes.
Using the following configuration:
hcl
import {
id = “<service_name>/<region_name>/
to = ovh_cloud_project_loadbalancer.lb
}
You can then run:
bash
$ pulumi preview -generate-config-out=lb.tf
$ pulumi up
The file lb.tf will then contain the imported resource’s configuration, that can be copied next to the import block above.
See https://developer.hashicorp.com/terraform/language/import/generating-configuration for more details.
To learn more about importing existing cloud resources, see Importing resources.
Package Details
- Repository
- ovh ovh/pulumi-ovh
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the ovhTerraform Provider.