1. Packages
  2. OVH
  3. API Docs
  4. IpLoadBalancing
  5. HttpFrontend
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

ovh.IpLoadBalancing.HttpFrontend

Explore with Pulumi AI

ovh logo
OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud

    Creates a backend HTTP server group (frontend) to be used by loadbalancing frontend(s)

    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 farm80 = new ovh.iploadbalancing.HttpFarm("farm80", {
        displayName: "ingress-8080-gra",
        port: 80,
        serviceName: lb.then(lb => lb.serviceName),
        zone: "all",
    });
    const testfrontend = new ovh.iploadbalancing.HttpFrontend("testfrontend", {
        defaultFarmId: farm80.id,
        displayName: "ingress-8080-gra",
        port: "80,443",
        serviceName: lb.then(lb => lb.serviceName),
        zone: "all",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    lb = ovh.IpLoadBalancing.get_ip_load_balancing(service_name="ip-1.2.3.4",
        state="ok")
    farm80 = ovh.ip_load_balancing.HttpFarm("farm80",
        display_name="ingress-8080-gra",
        port=80,
        service_name=lb.service_name,
        zone="all")
    testfrontend = ovh.ip_load_balancing.HttpFrontend("testfrontend",
        default_farm_id=farm80.id,
        display_name="ingress-8080-gra",
        port="80,443",
        service_name=lb.service_name,
        zone="all")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/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
    		}
    		farm80, err := IpLoadBalancing.NewHttpFarm(ctx, "farm80", &IpLoadBalancing.HttpFarmArgs{
    			DisplayName: pulumi.String("ingress-8080-gra"),
    			Port:        pulumi.Int(80),
    			ServiceName: pulumi.String(lb.ServiceName),
    			Zone:        pulumi.String("all"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = IpLoadBalancing.NewHttpFrontend(ctx, "testfrontend", &IpLoadBalancing.HttpFrontendArgs{
    			DefaultFarmId: farm80.ID(),
    			DisplayName:   pulumi.String("ingress-8080-gra"),
    			Port:          pulumi.String("80,443"),
    			ServiceName:   pulumi.String(lb.ServiceName),
    			Zone:          pulumi.String("all"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var lb = Ovh.IpLoadBalancing.GetIpLoadBalancing.Invoke(new()
        {
            ServiceName = "ip-1.2.3.4",
            State = "ok",
        });
    
        var farm80 = new Ovh.IpLoadBalancing.HttpFarm("farm80", new()
        {
            DisplayName = "ingress-8080-gra",
            Port = 80,
            ServiceName = lb.Apply(getIpLoadBalancingResult => getIpLoadBalancingResult.ServiceName),
            Zone = "all",
        });
    
        var testfrontend = new Ovh.IpLoadBalancing.HttpFrontend("testfrontend", new()
        {
            DefaultFarmId = farm80.Id,
            DisplayName = "ingress-8080-gra",
            Port = "80,443",
            ServiceName = lb.Apply(getIpLoadBalancingResult => getIpLoadBalancingResult.ServiceName),
            Zone = "all",
        });
    
    });
    
    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.pulumi.ovh.IpLoadBalancing.HttpFarm;
    import com.pulumi.ovh.IpLoadBalancing.HttpFarmArgs;
    import com.pulumi.ovh.IpLoadBalancing.HttpFrontend;
    import com.pulumi.ovh.IpLoadBalancing.HttpFrontendArgs;
    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 farm80 = new HttpFarm("farm80", HttpFarmArgs.builder()
                .displayName("ingress-8080-gra")
                .port(80)
                .serviceName(lb.applyValue(getIpLoadBalancingResult -> getIpLoadBalancingResult.serviceName()))
                .zone("all")
                .build());
    
            var testfrontend = new HttpFrontend("testfrontend", HttpFrontendArgs.builder()
                .defaultFarmId(farm80.id())
                .displayName("ingress-8080-gra")
                .port("80,443")
                .serviceName(lb.applyValue(getIpLoadBalancingResult -> getIpLoadBalancingResult.serviceName()))
                .zone("all")
                .build());
    
        }
    }
    
    resources:
      farm80:
        type: ovh:IpLoadBalancing:HttpFarm
        properties:
          displayName: ingress-8080-gra
          port: 80
          serviceName: ${lb.serviceName}
          zone: all
      testfrontend:
        type: ovh:IpLoadBalancing:HttpFrontend
        properties:
          defaultFarmId: ${farm80.id}
          displayName: ingress-8080-gra
          port: 80,443
          serviceName: ${lb.serviceName}
          zone: all
    variables:
      lb:
        fn::invoke:
          Function: ovh:IpLoadBalancing:getIpLoadBalancing
          Arguments:
            serviceName: ip-1.2.3.4
            state: ok
    

    With HTTP Header

    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 farm80 = new ovh.iploadbalancing.HttpFarm("farm80", {
        displayName: "ingress-8080-gra",
        port: 80,
        serviceName: lb.then(lb => lb.serviceName),
        zone: "all",
    });
    const testfrontend = new ovh.iploadbalancing.HttpFrontend("testfrontend", {
        defaultFarmId: farm80.id,
        displayName: "ingress-8080-gra",
        httpHeaders: [
            "X-Ip-Header %%ci",
            "X-Port-Header %%cp",
        ],
        port: "80,443",
        serviceName: lb.then(lb => lb.serviceName),
        zone: "all",
    });
    
    import pulumi
    import pulumi_ovh as ovh
    
    lb = ovh.IpLoadBalancing.get_ip_load_balancing(service_name="ip-1.2.3.4",
        state="ok")
    farm80 = ovh.ip_load_balancing.HttpFarm("farm80",
        display_name="ingress-8080-gra",
        port=80,
        service_name=lb.service_name,
        zone="all")
    testfrontend = ovh.ip_load_balancing.HttpFrontend("testfrontend",
        default_farm_id=farm80.id,
        display_name="ingress-8080-gra",
        http_headers=[
            "X-Ip-Header %%ci",
            "X-Port-Header %%cp",
        ],
        port="80,443",
        service_name=lb.service_name,
        zone="all")
    
    package main
    
    import (
    	"github.com/ovh/pulumi-ovh/sdk/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
    		}
    		farm80, err := IpLoadBalancing.NewHttpFarm(ctx, "farm80", &IpLoadBalancing.HttpFarmArgs{
    			DisplayName: pulumi.String("ingress-8080-gra"),
    			Port:        pulumi.Int(80),
    			ServiceName: pulumi.String(lb.ServiceName),
    			Zone:        pulumi.String("all"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = IpLoadBalancing.NewHttpFrontend(ctx, "testfrontend", &IpLoadBalancing.HttpFrontendArgs{
    			DefaultFarmId: farm80.ID(),
    			DisplayName:   pulumi.String("ingress-8080-gra"),
    			HttpHeaders: pulumi.StringArray{
    				pulumi.String("X-Ip-Header %%ci"),
    				pulumi.String("X-Port-Header %%cp"),
    			},
    			Port:        pulumi.String("80,443"),
    			ServiceName: pulumi.String(lb.ServiceName),
    			Zone:        pulumi.String("all"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ovh = Pulumi.Ovh;
    
    return await Deployment.RunAsync(() => 
    {
        var lb = Ovh.IpLoadBalancing.GetIpLoadBalancing.Invoke(new()
        {
            ServiceName = "ip-1.2.3.4",
            State = "ok",
        });
    
        var farm80 = new Ovh.IpLoadBalancing.HttpFarm("farm80", new()
        {
            DisplayName = "ingress-8080-gra",
            Port = 80,
            ServiceName = lb.Apply(getIpLoadBalancingResult => getIpLoadBalancingResult.ServiceName),
            Zone = "all",
        });
    
        var testfrontend = new Ovh.IpLoadBalancing.HttpFrontend("testfrontend", new()
        {
            DefaultFarmId = farm80.Id,
            DisplayName = "ingress-8080-gra",
            HttpHeaders = new[]
            {
                "X-Ip-Header %%ci",
                "X-Port-Header %%cp",
            },
            Port = "80,443",
            ServiceName = lb.Apply(getIpLoadBalancingResult => getIpLoadBalancingResult.ServiceName),
            Zone = "all",
        });
    
    });
    
    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.pulumi.ovh.IpLoadBalancing.HttpFarm;
    import com.pulumi.ovh.IpLoadBalancing.HttpFarmArgs;
    import com.pulumi.ovh.IpLoadBalancing.HttpFrontend;
    import com.pulumi.ovh.IpLoadBalancing.HttpFrontendArgs;
    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 farm80 = new HttpFarm("farm80", HttpFarmArgs.builder()
                .displayName("ingress-8080-gra")
                .port(80)
                .serviceName(lb.applyValue(getIpLoadBalancingResult -> getIpLoadBalancingResult.serviceName()))
                .zone("all")
                .build());
    
            var testfrontend = new HttpFrontend("testfrontend", HttpFrontendArgs.builder()
                .defaultFarmId(farm80.id())
                .displayName("ingress-8080-gra")
                .httpHeaders(            
                    "X-Ip-Header %%ci",
                    "X-Port-Header %%cp")
                .port("80,443")
                .serviceName(lb.applyValue(getIpLoadBalancingResult -> getIpLoadBalancingResult.serviceName()))
                .zone("all")
                .build());
    
        }
    }
    
    resources:
      farm80:
        type: ovh:IpLoadBalancing:HttpFarm
        properties:
          displayName: ingress-8080-gra
          port: 80
          serviceName: ${lb.serviceName}
          zone: all
      testfrontend:
        type: ovh:IpLoadBalancing:HttpFrontend
        properties:
          defaultFarmId: ${farm80.id}
          displayName: ingress-8080-gra
          httpHeaders:
            - X-Ip-Header %%ci
            - X-Port-Header %%cp
          port: 80,443
          serviceName: ${lb.serviceName}
          zone: all
    variables:
      lb:
        fn::invoke:
          Function: ovh:IpLoadBalancing:getIpLoadBalancing
          Arguments:
            serviceName: ip-1.2.3.4
            state: ok
    

    Create HttpFrontend Resource

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

    Constructor syntax

    new HttpFrontend(name: string, args: HttpFrontendArgs, opts?: CustomResourceOptions);
    @overload
    def HttpFrontend(resource_name: str,
                     args: HttpFrontendArgs,
                     opts: Optional[ResourceOptions] = None)
    
    @overload
    def HttpFrontend(resource_name: str,
                     opts: Optional[ResourceOptions] = None,
                     port: Optional[str] = None,
                     zone: Optional[str] = None,
                     service_name: Optional[str] = None,
                     hsts: Optional[bool] = None,
                     disabled: Optional[bool] = None,
                     display_name: Optional[str] = None,
                     allowed_sources: Optional[Sequence[str]] = None,
                     http_headers: Optional[Sequence[str]] = None,
                     default_ssl_id: Optional[int] = None,
                     redirect_location: Optional[str] = None,
                     default_farm_id: Optional[int] = None,
                     ssl: Optional[bool] = None,
                     dedicated_ipfos: Optional[Sequence[str]] = None)
    func NewHttpFrontend(ctx *Context, name string, args HttpFrontendArgs, opts ...ResourceOption) (*HttpFrontend, error)
    public HttpFrontend(string name, HttpFrontendArgs args, CustomResourceOptions? opts = null)
    public HttpFrontend(String name, HttpFrontendArgs args)
    public HttpFrontend(String name, HttpFrontendArgs args, CustomResourceOptions options)
    
    type: ovh:IpLoadBalancing:HttpFrontend
    properties: # The arguments to resource properties.
    options: # Bag of options to control resource's behavior.
    
    

    Parameters

    name string
    The unique name of the resource.
    args HttpFrontendArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    resource_name str
    The unique name of the resource.
    args HttpFrontendArgs
    The arguments to resource properties.
    opts ResourceOptions
    Bag of options to control resource's behavior.
    ctx Context
    Context object for the current deployment.
    name string
    The unique name of the resource.
    args HttpFrontendArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args HttpFrontendArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args HttpFrontendArgs
    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 httpFrontendResource = new Ovh.IpLoadBalancing.HttpFrontend("httpFrontendResource", new()
    {
        Port = "string",
        Zone = "string",
        ServiceName = "string",
        Hsts = false,
        Disabled = false,
        DisplayName = "string",
        AllowedSources = new[]
        {
            "string",
        },
        HttpHeaders = new[]
        {
            "string",
        },
        DefaultSslId = 0,
        RedirectLocation = "string",
        DefaultFarmId = 0,
        Ssl = false,
        DedicatedIpfos = new[]
        {
            "string",
        },
    });
    
    example, err := IpLoadBalancing.NewHttpFrontend(ctx, "httpFrontendResource", &IpLoadBalancing.HttpFrontendArgs{
    	Port:        pulumi.String("string"),
    	Zone:        pulumi.String("string"),
    	ServiceName: pulumi.String("string"),
    	Hsts:        pulumi.Bool(false),
    	Disabled:    pulumi.Bool(false),
    	DisplayName: pulumi.String("string"),
    	AllowedSources: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	HttpHeaders: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	DefaultSslId:     pulumi.Int(0),
    	RedirectLocation: pulumi.String("string"),
    	DefaultFarmId:    pulumi.Int(0),
    	Ssl:              pulumi.Bool(false),
    	DedicatedIpfos: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    })
    
    var httpFrontendResource = new HttpFrontend("httpFrontendResource", HttpFrontendArgs.builder()
        .port("string")
        .zone("string")
        .serviceName("string")
        .hsts(false)
        .disabled(false)
        .displayName("string")
        .allowedSources("string")
        .httpHeaders("string")
        .defaultSslId(0)
        .redirectLocation("string")
        .defaultFarmId(0)
        .ssl(false)
        .dedicatedIpfos("string")
        .build());
    
    http_frontend_resource = ovh.ip_load_balancing.HttpFrontend("httpFrontendResource",
        port="string",
        zone="string",
        service_name="string",
        hsts=False,
        disabled=False,
        display_name="string",
        allowed_sources=["string"],
        http_headers=["string"],
        default_ssl_id=0,
        redirect_location="string",
        default_farm_id=0,
        ssl=False,
        dedicated_ipfos=["string"])
    
    const httpFrontendResource = new ovh.iploadbalancing.HttpFrontend("httpFrontendResource", {
        port: "string",
        zone: "string",
        serviceName: "string",
        hsts: false,
        disabled: false,
        displayName: "string",
        allowedSources: ["string"],
        httpHeaders: ["string"],
        defaultSslId: 0,
        redirectLocation: "string",
        defaultFarmId: 0,
        ssl: false,
        dedicatedIpfos: ["string"],
    });
    
    type: ovh:IpLoadBalancing:HttpFrontend
    properties:
        allowedSources:
            - string
        dedicatedIpfos:
            - string
        defaultFarmId: 0
        defaultSslId: 0
        disabled: false
        displayName: string
        hsts: false
        httpHeaders:
            - string
        port: string
        redirectLocation: string
        serviceName: string
        ssl: false
        zone: string
    

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

    Port string
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    ServiceName string
    The internal name of your IP load balancing
    Zone string
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    AllowedSources List<string>
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    DedicatedIpfos List<string>
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    DefaultFarmId int
    Default TCP Farm of your frontend
    DefaultSslId int
    Default ssl served to your customer
    Disabled bool
    Disable your frontend. Default: 'false'
    DisplayName string
    Human readable name for your frontend, this field is for you
    Hsts bool
    HTTP Strict Transport Security. Default: 'false'
    HttpHeaders List<string>
    HTTP headers to add to the frontend. List of string.
    RedirectLocation string
    Redirection HTTP'
    Ssl bool
    SSL deciphering. Default: 'false'
    Port string
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    ServiceName string
    The internal name of your IP load balancing
    Zone string
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    AllowedSources []string
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    DedicatedIpfos []string
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    DefaultFarmId int
    Default TCP Farm of your frontend
    DefaultSslId int
    Default ssl served to your customer
    Disabled bool
    Disable your frontend. Default: 'false'
    DisplayName string
    Human readable name for your frontend, this field is for you
    Hsts bool
    HTTP Strict Transport Security. Default: 'false'
    HttpHeaders []string
    HTTP headers to add to the frontend. List of string.
    RedirectLocation string
    Redirection HTTP'
    Ssl bool
    SSL deciphering. Default: 'false'
    port String
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    serviceName String
    The internal name of your IP load balancing
    zone String
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowedSources List<String>
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicatedIpfos List<String>
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    defaultFarmId Integer
    Default TCP Farm of your frontend
    defaultSslId Integer
    Default ssl served to your customer
    disabled Boolean
    Disable your frontend. Default: 'false'
    displayName String
    Human readable name for your frontend, this field is for you
    hsts Boolean
    HTTP Strict Transport Security. Default: 'false'
    httpHeaders List<String>
    HTTP headers to add to the frontend. List of string.
    redirectLocation String
    Redirection HTTP'
    ssl Boolean
    SSL deciphering. Default: 'false'
    port string
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    serviceName string
    The internal name of your IP load balancing
    zone string
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowedSources string[]
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicatedIpfos string[]
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    defaultFarmId number
    Default TCP Farm of your frontend
    defaultSslId number
    Default ssl served to your customer
    disabled boolean
    Disable your frontend. Default: 'false'
    displayName string
    Human readable name for your frontend, this field is for you
    hsts boolean
    HTTP Strict Transport Security. Default: 'false'
    httpHeaders string[]
    HTTP headers to add to the frontend. List of string.
    redirectLocation string
    Redirection HTTP'
    ssl boolean
    SSL deciphering. Default: 'false'
    port str
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    service_name str
    The internal name of your IP load balancing
    zone str
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowed_sources Sequence[str]
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicated_ipfos Sequence[str]
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    default_farm_id int
    Default TCP Farm of your frontend
    default_ssl_id int
    Default ssl served to your customer
    disabled bool
    Disable your frontend. Default: 'false'
    display_name str
    Human readable name for your frontend, this field is for you
    hsts bool
    HTTP Strict Transport Security. Default: 'false'
    http_headers Sequence[str]
    HTTP headers to add to the frontend. List of string.
    redirect_location str
    Redirection HTTP'
    ssl bool
    SSL deciphering. Default: 'false'
    port String
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    serviceName String
    The internal name of your IP load balancing
    zone String
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowedSources List<String>
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicatedIpfos List<String>
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    defaultFarmId Number
    Default TCP Farm of your frontend
    defaultSslId Number
    Default ssl served to your customer
    disabled Boolean
    Disable your frontend. Default: 'false'
    displayName String
    Human readable name for your frontend, this field is for you
    hsts Boolean
    HTTP Strict Transport Security. Default: 'false'
    httpHeaders List<String>
    HTTP headers to add to the frontend. List of string.
    redirectLocation String
    Redirection HTTP'
    ssl Boolean
    SSL deciphering. Default: 'false'

    Outputs

    All input properties are implicitly available as output properties. Additionally, the HttpFrontend 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 HttpFrontend Resource

    Get an existing HttpFrontend 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?: HttpFrontendState, opts?: CustomResourceOptions): HttpFrontend
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            allowed_sources: Optional[Sequence[str]] = None,
            dedicated_ipfos: Optional[Sequence[str]] = None,
            default_farm_id: Optional[int] = None,
            default_ssl_id: Optional[int] = None,
            disabled: Optional[bool] = None,
            display_name: Optional[str] = None,
            hsts: Optional[bool] = None,
            http_headers: Optional[Sequence[str]] = None,
            port: Optional[str] = None,
            redirect_location: Optional[str] = None,
            service_name: Optional[str] = None,
            ssl: Optional[bool] = None,
            zone: Optional[str] = None) -> HttpFrontend
    func GetHttpFrontend(ctx *Context, name string, id IDInput, state *HttpFrontendState, opts ...ResourceOption) (*HttpFrontend, error)
    public static HttpFrontend Get(string name, Input<string> id, HttpFrontendState? state, CustomResourceOptions? opts = null)
    public static HttpFrontend get(String name, Output<String> id, HttpFrontendState state, CustomResourceOptions options)
    Resource lookup is not supported in YAML
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    AllowedSources List<string>
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    DedicatedIpfos List<string>
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    DefaultFarmId int
    Default TCP Farm of your frontend
    DefaultSslId int
    Default ssl served to your customer
    Disabled bool
    Disable your frontend. Default: 'false'
    DisplayName string
    Human readable name for your frontend, this field is for you
    Hsts bool
    HTTP Strict Transport Security. Default: 'false'
    HttpHeaders List<string>
    HTTP headers to add to the frontend. List of string.
    Port string
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    RedirectLocation string
    Redirection HTTP'
    ServiceName string
    The internal name of your IP load balancing
    Ssl bool
    SSL deciphering. Default: 'false'
    Zone string
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    AllowedSources []string
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    DedicatedIpfos []string
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    DefaultFarmId int
    Default TCP Farm of your frontend
    DefaultSslId int
    Default ssl served to your customer
    Disabled bool
    Disable your frontend. Default: 'false'
    DisplayName string
    Human readable name for your frontend, this field is for you
    Hsts bool
    HTTP Strict Transport Security. Default: 'false'
    HttpHeaders []string
    HTTP headers to add to the frontend. List of string.
    Port string
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    RedirectLocation string
    Redirection HTTP'
    ServiceName string
    The internal name of your IP load balancing
    Ssl bool
    SSL deciphering. Default: 'false'
    Zone string
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowedSources List<String>
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicatedIpfos List<String>
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    defaultFarmId Integer
    Default TCP Farm of your frontend
    defaultSslId Integer
    Default ssl served to your customer
    disabled Boolean
    Disable your frontend. Default: 'false'
    displayName String
    Human readable name for your frontend, this field is for you
    hsts Boolean
    HTTP Strict Transport Security. Default: 'false'
    httpHeaders List<String>
    HTTP headers to add to the frontend. List of string.
    port String
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    redirectLocation String
    Redirection HTTP'
    serviceName String
    The internal name of your IP load balancing
    ssl Boolean
    SSL deciphering. Default: 'false'
    zone String
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowedSources string[]
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicatedIpfos string[]
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    defaultFarmId number
    Default TCP Farm of your frontend
    defaultSslId number
    Default ssl served to your customer
    disabled boolean
    Disable your frontend. Default: 'false'
    displayName string
    Human readable name for your frontend, this field is for you
    hsts boolean
    HTTP Strict Transport Security. Default: 'false'
    httpHeaders string[]
    HTTP headers to add to the frontend. List of string.
    port string
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    redirectLocation string
    Redirection HTTP'
    serviceName string
    The internal name of your IP load balancing
    ssl boolean
    SSL deciphering. Default: 'false'
    zone string
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowed_sources Sequence[str]
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicated_ipfos Sequence[str]
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    default_farm_id int
    Default TCP Farm of your frontend
    default_ssl_id int
    Default ssl served to your customer
    disabled bool
    Disable your frontend. Default: 'false'
    display_name str
    Human readable name for your frontend, this field is for you
    hsts bool
    HTTP Strict Transport Security. Default: 'false'
    http_headers Sequence[str]
    HTTP headers to add to the frontend. List of string.
    port str
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    redirect_location str
    Redirection HTTP'
    service_name str
    The internal name of your IP load balancing
    ssl bool
    SSL deciphering. Default: 'false'
    zone str
    Zone where the frontend will be defined (ie. gra, bhs also supports all)
    allowedSources List<String>
    Restrict IP Load Balancing access to these ip block. No restriction if null. List of IP blocks.
    dedicatedIpfos List<String>
    Only attach frontend on these ip. No restriction if null. List of Ip blocks.
    defaultFarmId Number
    Default TCP Farm of your frontend
    defaultSslId Number
    Default ssl served to your customer
    disabled Boolean
    Disable your frontend. Default: 'false'
    displayName String
    Human readable name for your frontend, this field is for you
    hsts Boolean
    HTTP Strict Transport Security. Default: 'false'
    httpHeaders List<String>
    HTTP headers to add to the frontend. List of string.
    port String
    Port(s) attached to your frontend. Supports single port (numerical value), range (2 dash-delimited increasing ports) and comma-separated list of 'single port' and/or 'range'. Each port must be in the [1;49151] range
    redirectLocation String
    Redirection HTTP'
    serviceName String
    The internal name of your IP load balancing
    ssl Boolean
    SSL deciphering. Default: 'false'
    zone String
    Zone where the frontend will be defined (ie. gra, bhs also supports all)

    Import

    HTTP frontend can be imported using the following format service_name and the id of the frontend separated by “/” e.g.

    $ terraform import ovh_iploadbalancing_http_frontend.testfrontend service_name/http_frontend_id
    

    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.
    ovh logo
    OVHCloud v1.0.0 published on Wednesday, Oct 30, 2024 by OVHcloud