1. Packages
  2. OVH
  3. API Docs
  4. IpLoadBalancing
  5. TcpFarmServer
OVHCloud v2.1.1 published on Thursday, Apr 10, 2025 by OVHcloud

ovh.IpLoadBalancing.TcpFarmServer

Explore with Pulumi AI

Creates a backend server entry linked to loadbalancing group (farm)

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as ovh from "@ovhcloud/pulumi-ovh";
import * as ovh from "@pulumi/ovh";

const lb = ovh.IpLoadBalancing.getIpLoadBalancing({
    serviceName: "ip-1.2.3.4",
    state: "ok",
});
const farmName = new ovh.iploadbalancing.TcpFarm("farmName", {
    port: 8080,
    serviceName: lb.then(lb => lb.serviceName),
    zone: "all",
});
const backend = new ovh.iploadbalancing.TcpFarmServer("backend", {
    address: "4.5.6.7",
    backup: true,
    displayName: "mybackend",
    farmId: farmName.id,
    port: 80,
    probe: true,
    proxyProtocolVersion: "v2",
    serviceName: lb.then(lb => lb.serviceName),
    ssl: false,
    status: "active",
    weight: 2,
});
Copy
import pulumi
import pulumi_ovh as ovh

lb = ovh.IpLoadBalancing.get_ip_load_balancing(service_name="ip-1.2.3.4",
    state="ok")
farm_name = ovh.ip_load_balancing.TcpFarm("farmName",
    port=8080,
    service_name=lb.service_name,
    zone="all")
backend = ovh.ip_load_balancing.TcpFarmServer("backend",
    address="4.5.6.7",
    backup=True,
    display_name="mybackend",
    farm_id=farm_name.id,
    port=80,
    probe=True,
    proxy_protocol_version="v2",
    service_name=lb.service_name,
    ssl=False,
    status="active",
    weight=2)
Copy
package main

import (
	"github.com/ovh/pulumi-ovh/sdk/v2/go/ovh/iploadbalancing"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		lb, err := iploadbalancing.GetIpLoadBalancing(ctx, &iploadbalancing.GetIpLoadBalancingArgs{
			ServiceName: pulumi.StringRef("ip-1.2.3.4"),
			State:       pulumi.StringRef("ok"),
		}, nil)
		if err != nil {
			return err
		}
		farmName, err := iploadbalancing.NewTcpFarm(ctx, "farmName", &iploadbalancing.TcpFarmArgs{
			Port:        pulumi.Int(8080),
			ServiceName: pulumi.String(lb.ServiceName),
			Zone:        pulumi.String("all"),
		})
		if err != nil {
			return err
		}
		_, err = iploadbalancing.NewTcpFarmServer(ctx, "backend", &iploadbalancing.TcpFarmServerArgs{
			Address:              pulumi.String("4.5.6.7"),
			Backup:               pulumi.Bool(true),
			DisplayName:          pulumi.String("mybackend"),
			FarmId:               farmName.ID(),
			Port:                 pulumi.Int(80),
			Probe:                pulumi.Bool(true),
			ProxyProtocolVersion: pulumi.String("v2"),
			ServiceName:          pulumi.String(lb.ServiceName),
			Ssl:                  pulumi.Bool(false),
			Status:               pulumi.String("active"),
			Weight:               pulumi.Int(2),
		})
		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 = Ovh.IpLoadBalancing.GetIpLoadBalancing.Invoke(new()
    {
        ServiceName = "ip-1.2.3.4",
        State = "ok",
    });

    var farmName = new Ovh.IpLoadBalancing.TcpFarm("farmName", new()
    {
        Port = 8080,
        ServiceName = lb.Apply(getIpLoadBalancingResult => getIpLoadBalancingResult.ServiceName),
        Zone = "all",
    });

    var backend = new Ovh.IpLoadBalancing.TcpFarmServer("backend", new()
    {
        Address = "4.5.6.7",
        Backup = true,
        DisplayName = "mybackend",
        FarmId = farmName.Id,
        Port = 80,
        Probe = true,
        ProxyProtocolVersion = "v2",
        ServiceName = lb.Apply(getIpLoadBalancingResult => getIpLoadBalancingResult.ServiceName),
        Ssl = false,
        Status = "active",
        Weight = 2,
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.ovh.IpLoadBalancing.IpLoadBalancingFunctions;
import com.pulumi.ovh.IpLoadBalancing.inputs.GetIpLoadBalancingArgs;
import com.ovhcloud.pulumi.ovh.IpLoadBalancing.TcpFarm;
import com.ovhcloud.pulumi.ovh.IpLoadBalancing.TcpFarmArgs;
import com.ovhcloud.pulumi.ovh.IpLoadBalancing.TcpFarmServer;
import com.ovhcloud.pulumi.ovh.IpLoadBalancing.TcpFarmServerArgs;
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) {
        final var lb = IpLoadBalancingFunctions.getIpLoadBalancing(GetIpLoadBalancingArgs.builder()
            .serviceName("ip-1.2.3.4")
            .state("ok")
            .build());

        var farmName = new TcpFarm("farmName", TcpFarmArgs.builder()
            .port(8080)
            .serviceName(lb.serviceName())
            .zone("all")
            .build());

        var backend = new TcpFarmServer("backend", TcpFarmServerArgs.builder()
            .address("4.5.6.7")
            .backup(true)
            .displayName("mybackend")
            .farmId(farmName.id())
            .port(80)
            .probe(true)
            .proxyProtocolVersion("v2")
            .serviceName(lb.serviceName())
            .ssl(false)
            .status("active")
            .weight(2)
            .build());

    }
}
Copy
resources:
  farmName:
    type: ovh:IpLoadBalancing:TcpFarm
    properties:
      port: 8080
      serviceName: ${lb.serviceName}
      zone: all
  backend:
    type: ovh:IpLoadBalancing:TcpFarmServer
    properties:
      address: 4.5.6.7
      backup: true
      displayName: mybackend
      farmId: ${farmName.id}
      port: 80
      probe: true
      proxyProtocolVersion: v2
      serviceName: ${lb.serviceName}
      ssl: false
      status: active
      weight: 2
variables:
  lb:
    fn::invoke:
      function: ovh:IpLoadBalancing:getIpLoadBalancing
      arguments:
        serviceName: ip-1.2.3.4
        state: ok
Copy

Create TcpFarmServer Resource

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

Constructor syntax

new TcpFarmServer(name: string, args: TcpFarmServerArgs, opts?: CustomResourceOptions);
@overload
def TcpFarmServer(resource_name: str,
                  args: TcpFarmServerArgs,
                  opts: Optional[ResourceOptions] = None)

@overload
def TcpFarmServer(resource_name: str,
                  opts: Optional[ResourceOptions] = None,
                  farm_id: Optional[int] = None,
                  status: Optional[str] = None,
                  service_name: Optional[str] = None,
                  address: Optional[str] = None,
                  display_name: Optional[str] = None,
                  on_marked_down: Optional[str] = None,
                  port: Optional[int] = None,
                  probe: Optional[bool] = None,
                  proxy_protocol_version: Optional[str] = None,
                  chain: Optional[str] = None,
                  ssl: Optional[bool] = None,
                  backup: Optional[bool] = None,
                  weight: Optional[int] = None)
func NewTcpFarmServer(ctx *Context, name string, args TcpFarmServerArgs, opts ...ResourceOption) (*TcpFarmServer, error)
public TcpFarmServer(string name, TcpFarmServerArgs args, CustomResourceOptions? opts = null)
public TcpFarmServer(String name, TcpFarmServerArgs args)
public TcpFarmServer(String name, TcpFarmServerArgs args, CustomResourceOptions options)
type: ovh:IpLoadBalancing:TcpFarmServer
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. TcpFarmServerArgs
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. TcpFarmServerArgs
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. TcpFarmServerArgs
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. TcpFarmServerArgs
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. TcpFarmServerArgs
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 tcpFarmServerResource = new Ovh.IpLoadBalancing.TcpFarmServer("tcpFarmServerResource", new()
{
    FarmId = 0,
    Status = "string",
    ServiceName = "string",
    Address = "string",
    DisplayName = "string",
    OnMarkedDown = "string",
    Port = 0,
    Probe = false,
    ProxyProtocolVersion = "string",
    Chain = "string",
    Ssl = false,
    Backup = false,
    Weight = 0,
});
Copy
example, err := IpLoadBalancing.NewTcpFarmServer(ctx, "tcpFarmServerResource", &IpLoadBalancing.TcpFarmServerArgs{
	FarmId:               pulumi.Int(0),
	Status:               pulumi.String("string"),
	ServiceName:          pulumi.String("string"),
	Address:              pulumi.String("string"),
	DisplayName:          pulumi.String("string"),
	OnMarkedDown:         pulumi.String("string"),
	Port:                 pulumi.Int(0),
	Probe:                pulumi.Bool(false),
	ProxyProtocolVersion: pulumi.String("string"),
	Chain:                pulumi.String("string"),
	Ssl:                  pulumi.Bool(false),
	Backup:               pulumi.Bool(false),
	Weight:               pulumi.Int(0),
})
Copy
var tcpFarmServerResource = new TcpFarmServer("tcpFarmServerResource", TcpFarmServerArgs.builder()
    .farmId(0)
    .status("string")
    .serviceName("string")
    .address("string")
    .displayName("string")
    .onMarkedDown("string")
    .port(0)
    .probe(false)
    .proxyProtocolVersion("string")
    .chain("string")
    .ssl(false)
    .backup(false)
    .weight(0)
    .build());
Copy
tcp_farm_server_resource = ovh.ip_load_balancing.TcpFarmServer("tcpFarmServerResource",
    farm_id=0,
    status="string",
    service_name="string",
    address="string",
    display_name="string",
    on_marked_down="string",
    port=0,
    probe=False,
    proxy_protocol_version="string",
    chain="string",
    ssl=False,
    backup=False,
    weight=0)
Copy
const tcpFarmServerResource = new ovh.iploadbalancing.TcpFarmServer("tcpFarmServerResource", {
    farmId: 0,
    status: "string",
    serviceName: "string",
    address: "string",
    displayName: "string",
    onMarkedDown: "string",
    port: 0,
    probe: false,
    proxyProtocolVersion: "string",
    chain: "string",
    ssl: false,
    backup: false,
    weight: 0,
});
Copy
type: ovh:IpLoadBalancing:TcpFarmServer
properties:
    address: string
    backup: false
    chain: string
    displayName: string
    farmId: 0
    onMarkedDown: string
    port: 0
    probe: false
    proxyProtocolVersion: string
    serviceName: string
    ssl: false
    status: string
    weight: 0
Copy

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

Address
This property is required.
Changes to this property will trigger replacement.
string
Address of the backend server (IP from either internal or OVHcloud network)
FarmId
This property is required.
Changes to this property will trigger replacement.
int
ID of the farm this server is attached to
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The internal name of your IP load balancing
Status This property is required. string
backend status - active or inactive
Backup bool
is it a backup server used in case of failure of all the non-backup backends
Chain string
DisplayName string
Label for the server
OnMarkedDown string
enable action when backend marked down. (shutdown-sessions)
Port int
Port that backend will respond on
Probe bool
defines if backend will be probed to determine health and keep as active in farm if healthy
ProxyProtocolVersion string
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
Ssl bool
is the connection ciphered with SSL (TLS)
Weight int
used in loadbalancing algorithm
Address
This property is required.
Changes to this property will trigger replacement.
string
Address of the backend server (IP from either internal or OVHcloud network)
FarmId
This property is required.
Changes to this property will trigger replacement.
int
ID of the farm this server is attached to
ServiceName
This property is required.
Changes to this property will trigger replacement.
string
The internal name of your IP load balancing
Status This property is required. string
backend status - active or inactive
Backup bool
is it a backup server used in case of failure of all the non-backup backends
Chain string
DisplayName string
Label for the server
OnMarkedDown string
enable action when backend marked down. (shutdown-sessions)
Port int
Port that backend will respond on
Probe bool
defines if backend will be probed to determine health and keep as active in farm if healthy
ProxyProtocolVersion string
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
Ssl bool
is the connection ciphered with SSL (TLS)
Weight int
used in loadbalancing algorithm
address
This property is required.
Changes to this property will trigger replacement.
String
Address of the backend server (IP from either internal or OVHcloud network)
farmId
This property is required.
Changes to this property will trigger replacement.
Integer
ID of the farm this server is attached to
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The internal name of your IP load balancing
status This property is required. String
backend status - active or inactive
backup Boolean
is it a backup server used in case of failure of all the non-backup backends
chain String
displayName String
Label for the server
onMarkedDown String
enable action when backend marked down. (shutdown-sessions)
port Integer
Port that backend will respond on
probe Boolean
defines if backend will be probed to determine health and keep as active in farm if healthy
proxyProtocolVersion String
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
ssl Boolean
is the connection ciphered with SSL (TLS)
weight Integer
used in loadbalancing algorithm
address
This property is required.
Changes to this property will trigger replacement.
string
Address of the backend server (IP from either internal or OVHcloud network)
farmId
This property is required.
Changes to this property will trigger replacement.
number
ID of the farm this server is attached to
serviceName
This property is required.
Changes to this property will trigger replacement.
string
The internal name of your IP load balancing
status This property is required. string
backend status - active or inactive
backup boolean
is it a backup server used in case of failure of all the non-backup backends
chain string
displayName string
Label for the server
onMarkedDown string
enable action when backend marked down. (shutdown-sessions)
port number
Port that backend will respond on
probe boolean
defines if backend will be probed to determine health and keep as active in farm if healthy
proxyProtocolVersion string
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
ssl boolean
is the connection ciphered with SSL (TLS)
weight number
used in loadbalancing algorithm
address
This property is required.
Changes to this property will trigger replacement.
str
Address of the backend server (IP from either internal or OVHcloud network)
farm_id
This property is required.
Changes to this property will trigger replacement.
int
ID of the farm this server is attached to
service_name
This property is required.
Changes to this property will trigger replacement.
str
The internal name of your IP load balancing
status This property is required. str
backend status - active or inactive
backup bool
is it a backup server used in case of failure of all the non-backup backends
chain str
display_name str
Label for the server
on_marked_down str
enable action when backend marked down. (shutdown-sessions)
port int
Port that backend will respond on
probe bool
defines if backend will be probed to determine health and keep as active in farm if healthy
proxy_protocol_version str
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
ssl bool
is the connection ciphered with SSL (TLS)
weight int
used in loadbalancing algorithm
address
This property is required.
Changes to this property will trigger replacement.
String
Address of the backend server (IP from either internal or OVHcloud network)
farmId
This property is required.
Changes to this property will trigger replacement.
Number
ID of the farm this server is attached to
serviceName
This property is required.
Changes to this property will trigger replacement.
String
The internal name of your IP load balancing
status This property is required. String
backend status - active or inactive
backup Boolean
is it a backup server used in case of failure of all the non-backup backends
chain String
displayName String
Label for the server
onMarkedDown String
enable action when backend marked down. (shutdown-sessions)
port Number
Port that backend will respond on
probe Boolean
defines if backend will be probed to determine health and keep as active in farm if healthy
proxyProtocolVersion String
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
ssl Boolean
is the connection ciphered with SSL (TLS)
weight Number
used in loadbalancing algorithm

Outputs

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

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

Look up Existing TcpFarmServer Resource

Get an existing TcpFarmServer 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?: TcpFarmServerState, opts?: CustomResourceOptions): TcpFarmServer
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        address: Optional[str] = None,
        backup: Optional[bool] = None,
        chain: Optional[str] = None,
        display_name: Optional[str] = None,
        farm_id: Optional[int] = None,
        on_marked_down: Optional[str] = None,
        port: Optional[int] = None,
        probe: Optional[bool] = None,
        proxy_protocol_version: Optional[str] = None,
        service_name: Optional[str] = None,
        ssl: Optional[bool] = None,
        status: Optional[str] = None,
        weight: Optional[int] = None) -> TcpFarmServer
func GetTcpFarmServer(ctx *Context, name string, id IDInput, state *TcpFarmServerState, opts ...ResourceOption) (*TcpFarmServer, error)
public static TcpFarmServer Get(string name, Input<string> id, TcpFarmServerState? state, CustomResourceOptions? opts = null)
public static TcpFarmServer get(String name, Output<String> id, TcpFarmServerState state, CustomResourceOptions options)
resources:  _:    type: ovh:IpLoadBalancing:TcpFarmServer    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:
Address Changes to this property will trigger replacement. string
Address of the backend server (IP from either internal or OVHcloud network)
Backup bool
is it a backup server used in case of failure of all the non-backup backends
Chain string
DisplayName string
Label for the server
FarmId Changes to this property will trigger replacement. int
ID of the farm this server is attached to
OnMarkedDown string
enable action when backend marked down. (shutdown-sessions)
Port int
Port that backend will respond on
Probe bool
defines if backend will be probed to determine health and keep as active in farm if healthy
ProxyProtocolVersion string
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
ServiceName Changes to this property will trigger replacement. string
The internal name of your IP load balancing
Ssl bool
is the connection ciphered with SSL (TLS)
Status string
backend status - active or inactive
Weight int
used in loadbalancing algorithm
Address Changes to this property will trigger replacement. string
Address of the backend server (IP from either internal or OVHcloud network)
Backup bool
is it a backup server used in case of failure of all the non-backup backends
Chain string
DisplayName string
Label for the server
FarmId Changes to this property will trigger replacement. int
ID of the farm this server is attached to
OnMarkedDown string
enable action when backend marked down. (shutdown-sessions)
Port int
Port that backend will respond on
Probe bool
defines if backend will be probed to determine health and keep as active in farm if healthy
ProxyProtocolVersion string
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
ServiceName Changes to this property will trigger replacement. string
The internal name of your IP load balancing
Ssl bool
is the connection ciphered with SSL (TLS)
Status string
backend status - active or inactive
Weight int
used in loadbalancing algorithm
address Changes to this property will trigger replacement. String
Address of the backend server (IP from either internal or OVHcloud network)
backup Boolean
is it a backup server used in case of failure of all the non-backup backends
chain String
displayName String
Label for the server
farmId Changes to this property will trigger replacement. Integer
ID of the farm this server is attached to
onMarkedDown String
enable action when backend marked down. (shutdown-sessions)
port Integer
Port that backend will respond on
probe Boolean
defines if backend will be probed to determine health and keep as active in farm if healthy
proxyProtocolVersion String
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
serviceName Changes to this property will trigger replacement. String
The internal name of your IP load balancing
ssl Boolean
is the connection ciphered with SSL (TLS)
status String
backend status - active or inactive
weight Integer
used in loadbalancing algorithm
address Changes to this property will trigger replacement. string
Address of the backend server (IP from either internal or OVHcloud network)
backup boolean
is it a backup server used in case of failure of all the non-backup backends
chain string
displayName string
Label for the server
farmId Changes to this property will trigger replacement. number
ID of the farm this server is attached to
onMarkedDown string
enable action when backend marked down. (shutdown-sessions)
port number
Port that backend will respond on
probe boolean
defines if backend will be probed to determine health and keep as active in farm if healthy
proxyProtocolVersion string
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
serviceName Changes to this property will trigger replacement. string
The internal name of your IP load balancing
ssl boolean
is the connection ciphered with SSL (TLS)
status string
backend status - active or inactive
weight number
used in loadbalancing algorithm
address Changes to this property will trigger replacement. str
Address of the backend server (IP from either internal or OVHcloud network)
backup bool
is it a backup server used in case of failure of all the non-backup backends
chain str
display_name str
Label for the server
farm_id Changes to this property will trigger replacement. int
ID of the farm this server is attached to
on_marked_down str
enable action when backend marked down. (shutdown-sessions)
port int
Port that backend will respond on
probe bool
defines if backend will be probed to determine health and keep as active in farm if healthy
proxy_protocol_version str
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
service_name Changes to this property will trigger replacement. str
The internal name of your IP load balancing
ssl bool
is the connection ciphered with SSL (TLS)
status str
backend status - active or inactive
weight int
used in loadbalancing algorithm
address Changes to this property will trigger replacement. String
Address of the backend server (IP from either internal or OVHcloud network)
backup Boolean
is it a backup server used in case of failure of all the non-backup backends
chain String
displayName String
Label for the server
farmId Changes to this property will trigger replacement. Number
ID of the farm this server is attached to
onMarkedDown String
enable action when backend marked down. (shutdown-sessions)
port Number
Port that backend will respond on
probe Boolean
defines if backend will be probed to determine health and keep as active in farm if healthy
proxyProtocolVersion String
version of the PROXY protocol used to pass origin connection information from loadbalancer to receiving service (v1, v2, v2-ssl, v2-ssl-cn)
serviceName Changes to this property will trigger replacement. String
The internal name of your IP load balancing
ssl Boolean
is the connection ciphered with SSL (TLS)
status String
backend status - active or inactive
weight Number
used in loadbalancing algorithm

Import

TCP farm server can be imported using the following format service_name, the id of the farm and the id of the server separated by “/” e.g.

bash

$ pulumi import ovh:IpLoadBalancing/tcpFarmServer:TcpFarmServer backend service_name/farm_id/server_id
Copy

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.