1. Packages
  2. OVH
  3. API Docs
  4. CloudProject
  5. LoadBalancer
OVHCloud v2.1.0 published on Friday, Mar 28, 2025 by OVHcloud

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",
        },
    ],
});
Copy
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",
        },
    ])
Copy
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
	})
}
Copy
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",
            },
        },
    });

});
Copy
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());

    }
}
Copy
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",
        },
    ],
});
Copy
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",
        },
    ])
Copy
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
	})
}
Copy
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",
            },
        },
    });

});
Copy
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());

    }
}
Copy
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 This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. 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 This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. LoadBalancerArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. 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",
});
Copy
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"),
})
Copy
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());
Copy
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")
Copy
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",
});
Copy
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
Copy

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 This property is required. string
Loadbalancer flavor id
Network This property is required. LoadBalancerNetwork
Network information to create the loadbalancer
RegionName This property is required. string
Region name
ServiceName This property is required. string
Service name
Description string
Description of the loadbalancer
Listeners List<LoadBalancerListener>
Listeners to create with the loadbalancer
Name string
Name of the resource
FlavorId This property is required. string
Loadbalancer flavor id
Network This property is required. LoadBalancerNetworkArgs
Network information to create the loadbalancer
RegionName This property is required. string
Region name
ServiceName This property is required. string
Service name
Description string
Description of the loadbalancer
Listeners []LoadBalancerListenerArgs
Listeners to create with the loadbalancer
Name string
Name of the resource
flavorId This property is required. String
Loadbalancer flavor id
network This property is required. LoadBalancerNetwork
Network information to create the loadbalancer
regionName This property is required. String
Region name
serviceName This property is required. String
Service name
description String
Description of the loadbalancer
listeners List<LoadBalancerListener>
Listeners to create with the loadbalancer
name String
Name of the resource
flavorId This property is required. string
Loadbalancer flavor id
network This property is required. LoadBalancerNetwork
Network information to create the loadbalancer
regionName This property is required. string
Region name
serviceName This property is required. string
Service name
description string
Description of the loadbalancer
listeners LoadBalancerListener[]
Listeners to create with the loadbalancer
name string
Name of the resource
flavor_id This property is required. str
Loadbalancer flavor id
network This property is required. cloudproject.LoadBalancerNetworkArgs
Network information to create the loadbalancer
region_name This property is required. str
Region name
service_name This property is required. str
Service name
description str
Description of the loadbalancer
listeners Sequence[cloudproject.LoadBalancerListenerArgs]
Listeners to create with the loadbalancer
name str
Name of the resource
flavorId This property is required. String
Loadbalancer flavor id
network This property is required. Property Map
Network information to create the loadbalancer
regionName This property is required. String
Region name
serviceName This property is required. 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 LoadBalancerFloatingIp
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
VipNetworkId string
Openstack ID of the network for the Virtual IP
VipSubnetId string
ID of the subnet for the Virtual IP
CreatedAt string
The UTC date and timestamp when the resource was created
FloatingIp LoadBalancerFloatingIp
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
VipNetworkId string
Openstack ID of the network for the Virtual IP
VipSubnetId string
ID of the subnet for the Virtual IP
createdAt String
The UTC date and timestamp when the resource was created
floatingIp LoadBalancerFloatingIp
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
vipNetworkId String
Openstack ID of the network for the Virtual IP
vipSubnetId String
ID of the subnet for the Virtual IP
createdAt string
The UTC date and timestamp when the resource was created
floatingIp LoadBalancerFloatingIp
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
vipNetworkId string
Openstack ID of the network for the Virtual IP
vipSubnetId string
ID of the subnet for the Virtual IP
created_at str
The UTC date and timestamp when the resource was created
floating_ip cloudproject.LoadBalancerFloatingIp
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_id str
Openstack ID of the network for the Virtual IP
vip_subnet_id str
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
vipNetworkId String
Openstack ID of the network for the Virtual IP
vipSubnetId String
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) -> LoadBalancer
func 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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
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 This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
CreatedAt string
The UTC date and timestamp when the resource was created
Description string
Description of the loadbalancer
FlavorId string
Loadbalancer flavor id
FloatingIp LoadBalancerFloatingIp
Information about floating IP
Listeners List<LoadBalancerListener>
Listeners to create with the loadbalancer
Name string
Name of the resource
Network LoadBalancerNetwork
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
VipNetworkId string
Openstack ID of the network for the Virtual IP
VipSubnetId string
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 LoadBalancerFloatingIpArgs
Information about floating IP
Listeners []LoadBalancerListenerArgs
Listeners to create with the loadbalancer
Name string
Name of the resource
Network LoadBalancerNetworkArgs
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
VipNetworkId string
Openstack ID of the network for the Virtual IP
VipSubnetId string
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 LoadBalancerFloatingIp
Information about floating IP
listeners List<LoadBalancerListener>
Listeners to create with the loadbalancer
name String
Name of the resource
network LoadBalancerNetwork
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
vipNetworkId String
Openstack ID of the network for the Virtual IP
vipSubnetId String
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 LoadBalancerFloatingIp
Information about floating IP
listeners LoadBalancerListener[]
Listeners to create with the loadbalancer
name string
Name of the resource
network LoadBalancerNetwork
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
vipNetworkId string
Openstack ID of the network for the Virtual IP
vipSubnetId string
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.LoadBalancerFloatingIpArgs
Information about floating IP
listeners Sequence[cloudproject.LoadBalancerListenerArgs]
Listeners to create with the loadbalancer
name str
Name of the resource
network cloudproject.LoadBalancerNetworkArgs
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_id str
Openstack ID of the network for the Virtual IP
vip_subnet_id str
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
vipNetworkId String
Openstack ID of the network for the Virtual IP
vipSubnetId String
ID of the subnet for the Virtual IP

Supporting Types

LoadBalancerFloatingIp
, LoadBalancerFloatingIpArgs

Id string
ID of the resource
Ip string
IP Address of the resource
Id string
ID of the resource
Ip string
IP Address of the resource
id String
ID of the resource
ip String
IP Address of the resource
id string
ID of the resource
ip string
IP Address of the resource
id str
ID of the resource
ip str
IP Address of the resource
id String
ID of the resource
ip String
IP Address of the resource

LoadBalancerListener
, LoadBalancerListenerArgs

Port This property is required. double
Listener port
Protocol This property is required. 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 LoadBalancerListenerPool
Listener pool
SecretId string
Secret ID to get certificate for SSL listener creation
TimeoutClientData double
Timeout client data of the listener
TimeoutMemberData double
Timeout member data of the listener
TlsVersions List<string>
TLS versions of the listener
Port This property is required. float64
Listener port
Protocol This property is required. string
Protocol for the listener
AllowedCidrs []string
The allowed CIDRs
Description string
The description of the listener
Name string
Name of the listener
Pool LoadBalancerListenerPool
Listener pool
SecretId string
Secret ID to get certificate for SSL listener creation
TimeoutClientData float64
Timeout client data of the listener
TimeoutMemberData float64
Timeout member data of the listener
TlsVersions []string
TLS versions of the listener
port This property is required. Double
Listener port
protocol This property is required. 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 LoadBalancerListenerPool
Listener pool
secretId String
Secret ID to get certificate for SSL listener creation
timeoutClientData Double
Timeout client data of the listener
timeoutMemberData Double
Timeout member data of the listener
tlsVersions List<String>
TLS versions of the listener
port This property is required. number
Listener port
protocol This property is required. string
Protocol for the listener
allowedCidrs string[]
The allowed CIDRs
description string
The description of the listener
name string
Name of the listener
pool LoadBalancerListenerPool
Listener pool
secretId string
Secret ID to get certificate for SSL listener creation
timeoutClientData number
Timeout client data of the listener
timeoutMemberData number
Timeout member data of the listener
tlsVersions string[]
TLS versions of the listener
port This property is required. float
Listener port
protocol This property is required. 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.LoadBalancerListenerPool
Listener pool
secret_id str
Secret ID to get certificate for SSL listener creation
timeout_client_data float
Timeout client data of the listener
timeout_member_data float
Timeout member data of the listener
tls_versions Sequence[str]
TLS versions of the listener
port This property is required. Number
Listener port
protocol This property is required. 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
timeoutClientData Number
Timeout client data of the listener
timeoutMemberData Number
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 LoadBalancerListenerPoolHealthMonitor
Pool health monitor
Members List<LoadBalancerListenerPoolMember>
Pool members
Name string
Name of the pool
Protocol string
Protocol for the pool
SessionPersistence LoadBalancerListenerPoolSessionPersistence
Pool session persistence
Algorithm string
Pool algorithm to split traffic between members
HealthMonitor LoadBalancerListenerPoolHealthMonitor
Pool health monitor
Members []LoadBalancerListenerPoolMember
Pool members
Name string
Name of the pool
Protocol string
Protocol for the pool
SessionPersistence LoadBalancerListenerPoolSessionPersistence
Pool session persistence
algorithm String
Pool algorithm to split traffic between members
healthMonitor LoadBalancerListenerPoolHealthMonitor
Pool health monitor
members List<LoadBalancerListenerPoolMember>
Pool members
name String
Name of the pool
protocol String
Protocol for the pool
sessionPersistence LoadBalancerListenerPoolSessionPersistence
Pool session persistence
algorithm string
Pool algorithm to split traffic between members
healthMonitor LoadBalancerListenerPoolHealthMonitor
Pool health monitor
members LoadBalancerListenerPoolMember[]
Pool members
name string
Name of the pool
protocol string
Protocol for the pool
sessionPersistence LoadBalancerListenerPoolSessionPersistence
Pool session persistence
algorithm str
Pool algorithm to split traffic between members
health_monitor cloudproject.LoadBalancerListenerPoolHealthMonitor
Pool health monitor
members Sequence[cloudproject.LoadBalancerListenerPoolMember]
Pool members
name str
Name of the pool
protocol str
Protocol for the pool
session_persistence cloudproject.LoadBalancerListenerPoolSessionPersistence
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 LoadBalancerListenerPoolHealthMonitorHttpConfiguration
Monitor HTTP configuration
MaxRetries double
Number of successful checks before changing the operating status of the member to ONLINE
MaxRetriesDown double
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 LoadBalancerListenerPoolHealthMonitorHttpConfiguration
Monitor HTTP configuration
MaxRetries float64
Number of successful checks before changing the operating status of the member to ONLINE
MaxRetriesDown float64
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 LoadBalancerListenerPoolHealthMonitorHttpConfiguration
Monitor HTTP configuration
maxRetries Double
Number of successful checks before changing the operating status of the member to ONLINE
maxRetriesDown Double
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 LoadBalancerListenerPoolHealthMonitorHttpConfiguration
Monitor HTTP configuration
maxRetries number
Number of successful checks before changing the operating status of the member to ONLINE
maxRetriesDown number
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.LoadBalancerListenerPoolHealthMonitorHttpConfiguration
Monitor HTTP configuration
max_retries float
Number of successful checks before changing the operating status of the member to ONLINE
max_retries_down float
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
maxRetriesDown Number
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

CookieName string
Cookie name, only applicable to session persistence through cookie
Type string
Type of session persistence
CookieName string
Cookie name, only applicable to session persistence through cookie
Type string
Type of session persistence
cookieName String
Cookie name, only applicable to session persistence through cookie
type String
Type of session persistence
cookieName string
Cookie name, only applicable to session persistence through cookie
type string
Type of session persistence
cookie_name str
Cookie name, only applicable to session persistence through cookie
type str
Type of session persistence
cookieName String
Cookie name, only applicable to session persistence through cookie
type String
Type of session persistence

LoadBalancerNetwork
, LoadBalancerNetworkArgs

Private This property is required. LoadBalancerNetworkPrivate
Information to private network
Private This property is required. LoadBalancerNetworkPrivate
Information to private network
private_ This property is required. LoadBalancerNetworkPrivate
Information to private network
private This property is required. LoadBalancerNetworkPrivate
Information to private network
private This property is required. cloudproject.LoadBalancerNetworkPrivate
Information to private network
private This property is required. Property Map
Information to private network

LoadBalancerNetworkPrivate
, LoadBalancerNetworkPrivateArgs

network This property is required. Property Map
Network to associate
floatingIp Property Map
Floating IP to associate
floatingIpCreate Property Map
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

Model string
Model of the gateway
Name string
Name of the gateway
Model string
Model of the gateway
Name string
Name of the gateway
model String
Model of the gateway
name String
Name of the gateway
model string
Model of the gateway
name string
Name of the gateway
model str
Model of the gateway
name str
Name of the gateway
model String
Model of the gateway
name String
Name of the gateway

LoadBalancerNetworkPrivateNetwork
, LoadBalancerNetworkPrivateNetworkArgs

Id This property is required. string
Private network ID
SubnetId This property is required. string
Subnet ID
Id This property is required. string
Private network ID
SubnetId This property is required. string
Subnet ID
id This property is required. String
Private network ID
subnetId This property is required. String
Subnet ID
id This property is required. string
Private network ID
subnetId This property is required. string
Subnet ID
id This property is required. str
Private network ID
subnet_id This property is required. str
Subnet ID
id This property is required. String
Private network ID
subnetId This property is required. String
Subnet ID

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:

terraform

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 ovh Terraform Provider.