1. Packages
  2. Ionoscloud Provider
  3. API Docs
  4. ApplicationLoadbalancer
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

ionoscloud.ApplicationLoadbalancer

Explore with Pulumi AI

ionoscloud logo
ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud

    Manages an Application Load Balancer on IonosCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const exampleDatacenter = new ionoscloud.Datacenter("exampleDatacenter", {
        location: "us/las",
        description: "datacenter description",
        secAuthProtection: false,
    });
    const example1 = new ionoscloud.Lan("example1", {
        datacenterId: exampleDatacenter.datacenterId,
        "public": true,
    });
    const example2 = new ionoscloud.Lan("example2", {
        datacenterId: exampleDatacenter.datacenterId,
        "public": true,
    });
    const exampleApplicationLoadbalancer = new ionoscloud.ApplicationLoadbalancer("exampleApplicationLoadbalancer", {
        datacenterId: exampleDatacenter.datacenterId,
        listenerLan: example1.lanId,
        ips: ["10.12.118.224"],
        targetLan: example2.lanId,
        lbPrivateIps: ["10.13.72.225/24"],
        centralLogging: true,
        loggingFormat: "%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example_datacenter = ionoscloud.Datacenter("exampleDatacenter",
        location="us/las",
        description="datacenter description",
        sec_auth_protection=False)
    example1 = ionoscloud.Lan("example1",
        datacenter_id=example_datacenter.datacenter_id,
        public=True)
    example2 = ionoscloud.Lan("example2",
        datacenter_id=example_datacenter.datacenter_id,
        public=True)
    example_application_loadbalancer = ionoscloud.ApplicationLoadbalancer("exampleApplicationLoadbalancer",
        datacenter_id=example_datacenter.datacenter_id,
        listener_lan=example1.lan_id,
        ips=["10.12.118.224"],
        target_lan=example2.lan_id,
        lb_private_ips=["10.13.72.225/24"],
        central_logging=True,
        logging_format="%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ionoscloud/v6/ionoscloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleDatacenter, err := ionoscloud.NewDatacenter(ctx, "exampleDatacenter", &ionoscloud.DatacenterArgs{
    			Location:          pulumi.String("us/las"),
    			Description:       pulumi.String("datacenter description"),
    			SecAuthProtection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		example1, err := ionoscloud.NewLan(ctx, "example1", &ionoscloud.LanArgs{
    			DatacenterId: exampleDatacenter.DatacenterId,
    			Public:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		example2, err := ionoscloud.NewLan(ctx, "example2", &ionoscloud.LanArgs{
    			DatacenterId: exampleDatacenter.DatacenterId,
    			Public:       pulumi.Bool(true),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ionoscloud.NewApplicationLoadbalancer(ctx, "exampleApplicationLoadbalancer", &ionoscloud.ApplicationLoadbalancerArgs{
    			DatacenterId: exampleDatacenter.DatacenterId,
    			ListenerLan:  example1.LanId,
    			Ips: pulumi.StringArray{
    				pulumi.String("10.12.118.224"),
    			},
    			TargetLan: example2.LanId,
    			LbPrivateIps: pulumi.StringArray{
    				pulumi.String("10.13.72.225/24"),
    			},
    			CentralLogging: pulumi.Bool(true),
    			LoggingFormat:  pulumi.String("%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleDatacenter = new Ionoscloud.Datacenter("exampleDatacenter", new()
        {
            Location = "us/las",
            Description = "datacenter description",
            SecAuthProtection = false,
        });
    
        var example1 = new Ionoscloud.Lan("example1", new()
        {
            DatacenterId = exampleDatacenter.DatacenterId,
            Public = true,
        });
    
        var example2 = new Ionoscloud.Lan("example2", new()
        {
            DatacenterId = exampleDatacenter.DatacenterId,
            Public = true,
        });
    
        var exampleApplicationLoadbalancer = new Ionoscloud.ApplicationLoadbalancer("exampleApplicationLoadbalancer", new()
        {
            DatacenterId = exampleDatacenter.DatacenterId,
            ListenerLan = example1.LanId,
            Ips = new[]
            {
                "10.12.118.224",
            },
            TargetLan = example2.LanId,
            LbPrivateIps = new[]
            {
                "10.13.72.225/24",
            },
            CentralLogging = true,
            LoggingFormat = "%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.Datacenter;
    import com.pulumi.ionoscloud.DatacenterArgs;
    import com.pulumi.ionoscloud.Lan;
    import com.pulumi.ionoscloud.LanArgs;
    import com.pulumi.ionoscloud.ApplicationLoadbalancer;
    import com.pulumi.ionoscloud.ApplicationLoadbalancerArgs;
    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 exampleDatacenter = new Datacenter("exampleDatacenter", DatacenterArgs.builder()
                .location("us/las")
                .description("datacenter description")
                .secAuthProtection(false)
                .build());
    
            var example1 = new Lan("example1", LanArgs.builder()
                .datacenterId(exampleDatacenter.datacenterId())
                .public_(true)
                .build());
    
            var example2 = new Lan("example2", LanArgs.builder()
                .datacenterId(exampleDatacenter.datacenterId())
                .public_(true)
                .build());
    
            var exampleApplicationLoadbalancer = new ApplicationLoadbalancer("exampleApplicationLoadbalancer", ApplicationLoadbalancerArgs.builder()
                .datacenterId(exampleDatacenter.datacenterId())
                .listenerLan(example1.lanId())
                .ips("10.12.118.224")
                .targetLan(example2.lanId())
                .lbPrivateIps("10.13.72.225/24")
                .centralLogging(true)
                .loggingFormat("%{+Q}o %{-Q}ci - - [%trg] %r %ST %B \"\" \"\" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl")
                .build());
    
        }
    }
    
    resources:
      exampleDatacenter:
        type: ionoscloud:Datacenter
        properties:
          location: us/las
          description: datacenter description
          secAuthProtection: false
      example1:
        type: ionoscloud:Lan
        properties:
          datacenterId: ${exampleDatacenter.datacenterId}
          public: true
      example2:
        type: ionoscloud:Lan
        properties:
          datacenterId: ${exampleDatacenter.datacenterId}
          public: true
      exampleApplicationLoadbalancer:
        type: ionoscloud:ApplicationLoadbalancer
        properties:
          datacenterId: ${exampleDatacenter.datacenterId}
          listenerLan: ${example1.lanId}
          ips:
            - 10.12.118.224
          targetLan: ${example2.lanId}
          lbPrivateIps:
            - 10.13.72.225/24
          centralLogging: true
          loggingFormat: '%{+Q}o %{-Q}ci - - [%trg] %r %ST %B "" "" %cp %ms %ft %b %s %TR %Tw %Tc %Tr %Ta %tsc %ac %fc %bc %sc %rc %sq %bq %CC %CS %hrl %hsl'
    

    Create ApplicationLoadbalancer Resource

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

    Constructor syntax

    new ApplicationLoadbalancer(name: string, args: ApplicationLoadbalancerArgs, opts?: CustomResourceOptions);
    @overload
    def ApplicationLoadbalancer(resource_name: str,
                                args: ApplicationLoadbalancerArgs,
                                opts: Optional[ResourceOptions] = None)
    
    @overload
    def ApplicationLoadbalancer(resource_name: str,
                                opts: Optional[ResourceOptions] = None,
                                datacenter_id: Optional[str] = None,
                                listener_lan: Optional[float] = None,
                                target_lan: Optional[float] = None,
                                application_loadbalancer_id: Optional[str] = None,
                                central_logging: Optional[bool] = None,
                                flowlog: Optional[ApplicationLoadbalancerFlowlogArgs] = None,
                                ips: Optional[Sequence[str]] = None,
                                lb_private_ips: Optional[Sequence[str]] = None,
                                logging_format: Optional[str] = None,
                                name: Optional[str] = None,
                                timeouts: Optional[ApplicationLoadbalancerTimeoutsArgs] = None)
    func NewApplicationLoadbalancer(ctx *Context, name string, args ApplicationLoadbalancerArgs, opts ...ResourceOption) (*ApplicationLoadbalancer, error)
    public ApplicationLoadbalancer(string name, ApplicationLoadbalancerArgs args, CustomResourceOptions? opts = null)
    public ApplicationLoadbalancer(String name, ApplicationLoadbalancerArgs args)
    public ApplicationLoadbalancer(String name, ApplicationLoadbalancerArgs args, CustomResourceOptions options)
    
    type: ionoscloud:ApplicationLoadbalancer
    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 ApplicationLoadbalancerArgs
    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 ApplicationLoadbalancerArgs
    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 ApplicationLoadbalancerArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args ApplicationLoadbalancerArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args ApplicationLoadbalancerArgs
    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 applicationLoadbalancerResource = new Ionoscloud.ApplicationLoadbalancer("applicationLoadbalancerResource", new()
    {
        DatacenterId = "string",
        ListenerLan = 0,
        TargetLan = 0,
        ApplicationLoadbalancerId = "string",
        CentralLogging = false,
        Flowlog = new Ionoscloud.Inputs.ApplicationLoadbalancerFlowlogArgs
        {
            Action = "string",
            Bucket = "string",
            Direction = "string",
            Name = "string",
            Id = "string",
        },
        Ips = new[]
        {
            "string",
        },
        LbPrivateIps = new[]
        {
            "string",
        },
        LoggingFormat = "string",
        Name = "string",
        Timeouts = new Ionoscloud.Inputs.ApplicationLoadbalancerTimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ionoscloud.NewApplicationLoadbalancer(ctx, "applicationLoadbalancerResource", &ionoscloud.ApplicationLoadbalancerArgs{
    	DatacenterId:              pulumi.String("string"),
    	ListenerLan:               pulumi.Float64(0),
    	TargetLan:                 pulumi.Float64(0),
    	ApplicationLoadbalancerId: pulumi.String("string"),
    	CentralLogging:            pulumi.Bool(false),
    	Flowlog: &ionoscloud.ApplicationLoadbalancerFlowlogArgs{
    		Action:    pulumi.String("string"),
    		Bucket:    pulumi.String("string"),
    		Direction: pulumi.String("string"),
    		Name:      pulumi.String("string"),
    		Id:        pulumi.String("string"),
    	},
    	Ips: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LbPrivateIps: pulumi.StringArray{
    		pulumi.String("string"),
    	},
    	LoggingFormat: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Timeouts: &ionoscloud.ApplicationLoadbalancerTimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    })
    
    var applicationLoadbalancerResource = new ApplicationLoadbalancer("applicationLoadbalancerResource", ApplicationLoadbalancerArgs.builder()
        .datacenterId("string")
        .listenerLan(0)
        .targetLan(0)
        .applicationLoadbalancerId("string")
        .centralLogging(false)
        .flowlog(ApplicationLoadbalancerFlowlogArgs.builder()
            .action("string")
            .bucket("string")
            .direction("string")
            .name("string")
            .id("string")
            .build())
        .ips("string")
        .lbPrivateIps("string")
        .loggingFormat("string")
        .name("string")
        .timeouts(ApplicationLoadbalancerTimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    application_loadbalancer_resource = ionoscloud.ApplicationLoadbalancer("applicationLoadbalancerResource",
        datacenter_id="string",
        listener_lan=0,
        target_lan=0,
        application_loadbalancer_id="string",
        central_logging=False,
        flowlog={
            "action": "string",
            "bucket": "string",
            "direction": "string",
            "name": "string",
            "id": "string",
        },
        ips=["string"],
        lb_private_ips=["string"],
        logging_format="string",
        name="string",
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
            "update": "string",
        })
    
    const applicationLoadbalancerResource = new ionoscloud.ApplicationLoadbalancer("applicationLoadbalancerResource", {
        datacenterId: "string",
        listenerLan: 0,
        targetLan: 0,
        applicationLoadbalancerId: "string",
        centralLogging: false,
        flowlog: {
            action: "string",
            bucket: "string",
            direction: "string",
            name: "string",
            id: "string",
        },
        ips: ["string"],
        lbPrivateIps: ["string"],
        loggingFormat: "string",
        name: "string",
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ionoscloud:ApplicationLoadbalancer
    properties:
        applicationLoadbalancerId: string
        centralLogging: false
        datacenterId: string
        flowlog:
            action: string
            bucket: string
            direction: string
            id: string
            name: string
        ips:
            - string
        lbPrivateIps:
            - string
        listenerLan: 0
        loggingFormat: string
        name: string
        targetLan: 0
        timeouts:
            create: string
            default: string
            delete: string
            update: string
    

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

    DatacenterId string
    [string] ID of the datacenter.
    ListenerLan double
    [int] ID of the listening (inbound) LAN.
    TargetLan double
    [int] ID of the balanced private target LAN (outbound).
    ApplicationLoadbalancerId string
    CentralLogging bool
    [bool] Turn logging on and off for this product. Default value is 'false'.
    Flowlog ApplicationLoadbalancerFlowlog
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips List<string>
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    LbPrivateIps List<string>
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    LoggingFormat string
    Specifies the format of the logs.
    Name string
    [string] The name of the Application Load Balancer.
    Timeouts ApplicationLoadbalancerTimeouts
    DatacenterId string
    [string] ID of the datacenter.
    ListenerLan float64
    [int] ID of the listening (inbound) LAN.
    TargetLan float64
    [int] ID of the balanced private target LAN (outbound).
    ApplicationLoadbalancerId string
    CentralLogging bool
    [bool] Turn logging on and off for this product. Default value is 'false'.
    Flowlog ApplicationLoadbalancerFlowlogArgs
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips []string
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    LbPrivateIps []string
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    LoggingFormat string
    Specifies the format of the logs.
    Name string
    [string] The name of the Application Load Balancer.
    Timeouts ApplicationLoadbalancerTimeoutsArgs
    datacenterId String
    [string] ID of the datacenter.
    listenerLan Double
    [int] ID of the listening (inbound) LAN.
    targetLan Double
    [int] ID of the balanced private target LAN (outbound).
    applicationLoadbalancerId String
    centralLogging Boolean
    [bool] Turn logging on and off for this product. Default value is 'false'.
    flowlog ApplicationLoadbalancerFlowlog
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lbPrivateIps List<String>
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    loggingFormat String
    Specifies the format of the logs.
    name String
    [string] The name of the Application Load Balancer.
    timeouts ApplicationLoadbalancerTimeouts
    datacenterId string
    [string] ID of the datacenter.
    listenerLan number
    [int] ID of the listening (inbound) LAN.
    targetLan number
    [int] ID of the balanced private target LAN (outbound).
    applicationLoadbalancerId string
    centralLogging boolean
    [bool] Turn logging on and off for this product. Default value is 'false'.
    flowlog ApplicationLoadbalancerFlowlog
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips string[]
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lbPrivateIps string[]
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    loggingFormat string
    Specifies the format of the logs.
    name string
    [string] The name of the Application Load Balancer.
    timeouts ApplicationLoadbalancerTimeouts
    datacenter_id str
    [string] ID of the datacenter.
    listener_lan float
    [int] ID of the listening (inbound) LAN.
    target_lan float
    [int] ID of the balanced private target LAN (outbound).
    application_loadbalancer_id str
    central_logging bool
    [bool] Turn logging on and off for this product. Default value is 'false'.
    flowlog ApplicationLoadbalancerFlowlogArgs
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips Sequence[str]
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lb_private_ips Sequence[str]
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    logging_format str
    Specifies the format of the logs.
    name str
    [string] The name of the Application Load Balancer.
    timeouts ApplicationLoadbalancerTimeoutsArgs
    datacenterId String
    [string] ID of the datacenter.
    listenerLan Number
    [int] ID of the listening (inbound) LAN.
    targetLan Number
    [int] ID of the balanced private target LAN (outbound).
    applicationLoadbalancerId String
    centralLogging Boolean
    [bool] Turn logging on and off for this product. Default value is 'false'.
    flowlog Property Map
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lbPrivateIps List<String>
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    loggingFormat String
    Specifies the format of the logs.
    name String
    [string] The name of the Application Load Balancer.
    timeouts Property Map

    Outputs

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

    Get an existing ApplicationLoadbalancer 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?: ApplicationLoadbalancerState, opts?: CustomResourceOptions): ApplicationLoadbalancer
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            application_loadbalancer_id: Optional[str] = None,
            central_logging: Optional[bool] = None,
            datacenter_id: Optional[str] = None,
            flowlog: Optional[ApplicationLoadbalancerFlowlogArgs] = None,
            ips: Optional[Sequence[str]] = None,
            lb_private_ips: Optional[Sequence[str]] = None,
            listener_lan: Optional[float] = None,
            logging_format: Optional[str] = None,
            name: Optional[str] = None,
            target_lan: Optional[float] = None,
            timeouts: Optional[ApplicationLoadbalancerTimeoutsArgs] = None) -> ApplicationLoadbalancer
    func GetApplicationLoadbalancer(ctx *Context, name string, id IDInput, state *ApplicationLoadbalancerState, opts ...ResourceOption) (*ApplicationLoadbalancer, error)
    public static ApplicationLoadbalancer Get(string name, Input<string> id, ApplicationLoadbalancerState? state, CustomResourceOptions? opts = null)
    public static ApplicationLoadbalancer get(String name, Output<String> id, ApplicationLoadbalancerState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:ApplicationLoadbalancer    get:      id: ${id}
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    resource_name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    name
    The unique name of the resulting resource.
    id
    The unique provider ID of the resource to lookup.
    state
    Any extra arguments used during the lookup.
    opts
    A bag of options that control this resource's behavior.
    The following state arguments are supported:
    ApplicationLoadbalancerId string
    CentralLogging bool
    [bool] Turn logging on and off for this product. Default value is 'false'.
    DatacenterId string
    [string] ID of the datacenter.
    Flowlog ApplicationLoadbalancerFlowlog
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips List<string>
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    LbPrivateIps List<string>
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    ListenerLan double
    [int] ID of the listening (inbound) LAN.
    LoggingFormat string
    Specifies the format of the logs.
    Name string
    [string] The name of the Application Load Balancer.
    TargetLan double
    [int] ID of the balanced private target LAN (outbound).
    Timeouts ApplicationLoadbalancerTimeouts
    ApplicationLoadbalancerId string
    CentralLogging bool
    [bool] Turn logging on and off for this product. Default value is 'false'.
    DatacenterId string
    [string] ID of the datacenter.
    Flowlog ApplicationLoadbalancerFlowlogArgs
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    Ips []string
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    LbPrivateIps []string
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    ListenerLan float64
    [int] ID of the listening (inbound) LAN.
    LoggingFormat string
    Specifies the format of the logs.
    Name string
    [string] The name of the Application Load Balancer.
    TargetLan float64
    [int] ID of the balanced private target LAN (outbound).
    Timeouts ApplicationLoadbalancerTimeoutsArgs
    applicationLoadbalancerId String
    centralLogging Boolean
    [bool] Turn logging on and off for this product. Default value is 'false'.
    datacenterId String
    [string] ID of the datacenter.
    flowlog ApplicationLoadbalancerFlowlog
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lbPrivateIps List<String>
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    listenerLan Double
    [int] ID of the listening (inbound) LAN.
    loggingFormat String
    Specifies the format of the logs.
    name String
    [string] The name of the Application Load Balancer.
    targetLan Double
    [int] ID of the balanced private target LAN (outbound).
    timeouts ApplicationLoadbalancerTimeouts
    applicationLoadbalancerId string
    centralLogging boolean
    [bool] Turn logging on and off for this product. Default value is 'false'.
    datacenterId string
    [string] ID of the datacenter.
    flowlog ApplicationLoadbalancerFlowlog
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips string[]
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lbPrivateIps string[]
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    listenerLan number
    [int] ID of the listening (inbound) LAN.
    loggingFormat string
    Specifies the format of the logs.
    name string
    [string] The name of the Application Load Balancer.
    targetLan number
    [int] ID of the balanced private target LAN (outbound).
    timeouts ApplicationLoadbalancerTimeouts
    application_loadbalancer_id str
    central_logging bool
    [bool] Turn logging on and off for this product. Default value is 'false'.
    datacenter_id str
    [string] ID of the datacenter.
    flowlog ApplicationLoadbalancerFlowlogArgs
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips Sequence[str]
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lb_private_ips Sequence[str]
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    listener_lan float
    [int] ID of the listening (inbound) LAN.
    logging_format str
    Specifies the format of the logs.
    name str
    [string] The name of the Application Load Balancer.
    target_lan float
    [int] ID of the balanced private target LAN (outbound).
    timeouts ApplicationLoadbalancerTimeoutsArgs
    applicationLoadbalancerId String
    centralLogging Boolean
    [bool] Turn logging on and off for this product. Default value is 'false'.
    datacenterId String
    [string] ID of the datacenter.
    flowlog Property Map
    [list] Only 1 flow log can be configured. Only the name field can change as part of an update. Flow logs holistically capture network information such as source and destination IP addresses, source and destination ports, number of packets, amount of bytes, the start and end time of the recording, and the type of protocol – and log the extent to which your instances are being accessed.
    ips List<String>
    [set] Collection of the Application Load Balancer IP addresses. (Inbound and outbound) IPs of the listenerLan are customer-reserved public IPs for the public Load Balancers, and private IPs for the private Load Balancers.
    lbPrivateIps List<String>
    [set] Collection of private IP addresses with the subnet mask of the Application Load Balancer. IPs must contain valid a subnet mask. If no IP is provided, the system will generate an IP with /24 subnet.
    listenerLan Number
    [int] ID of the listening (inbound) LAN.
    loggingFormat String
    Specifies the format of the logs.
    name String
    [string] The name of the Application Load Balancer.
    targetLan Number
    [int] ID of the balanced private target LAN (outbound).
    timeouts Property Map

    Supporting Types

    ApplicationLoadbalancerFlowlog, ApplicationLoadbalancerFlowlogArgs

    Action string
    [string] Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
    Bucket string
    [string] Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
    Direction string
    [string] Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
    Name string

    [string] Specifies the name of the flow log.

    ⚠️ Note:: Removing the flowlog forces re-creation of the application load balancer resource.

    Id string
    The resource's unique identifier.
    Action string
    [string] Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
    Bucket string
    [string] Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
    Direction string
    [string] Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
    Name string

    [string] Specifies the name of the flow log.

    ⚠️ Note:: Removing the flowlog forces re-creation of the application load balancer resource.

    Id string
    The resource's unique identifier.
    action String
    [string] Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
    bucket String
    [string] Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
    direction String
    [string] Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
    name String

    [string] Specifies the name of the flow log.

    ⚠️ Note:: Removing the flowlog forces re-creation of the application load balancer resource.

    id String
    The resource's unique identifier.
    action string
    [string] Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
    bucket string
    [string] Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
    direction string
    [string] Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
    name string

    [string] Specifies the name of the flow log.

    ⚠️ Note:: Removing the flowlog forces re-creation of the application load balancer resource.

    id string
    The resource's unique identifier.
    action str
    [string] Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
    bucket str
    [string] Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
    direction str
    [string] Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
    name str

    [string] Specifies the name of the flow log.

    ⚠️ Note:: Removing the flowlog forces re-creation of the application load balancer resource.

    id str
    The resource's unique identifier.
    action String
    [string] Specifies the action to be taken when the rule is matched. Possible values: ACCEPTED, REJECTED, ALL. Immutable, forces re-creation.
    bucket String
    [string] Specifies the IONOS Object Storage bucket where the flow log data will be stored. The bucket must exist. Immutable, forces re-creation.
    direction String
    [string] Specifies the traffic direction pattern. Valid values: INGRESS, EGRESS, BIDIRECTIONAL. Immutable, forces re-creation.
    name String

    [string] Specifies the name of the flow log.

    ⚠️ Note:: Removing the flowlog forces re-creation of the application load balancer resource.

    id String
    The resource's unique identifier.

    ApplicationLoadbalancerTimeouts, ApplicationLoadbalancerTimeoutsArgs

    Create string
    Default string
    Delete string
    Update string
    Create string
    Default string
    Delete string
    Update string
    create String
    default_ String
    delete String
    update String
    create string
    default string
    delete string
    update string
    create String
    default String
    delete String
    update String

    Import

    Resource Application Load Balancer can be imported using the resource id and datacenter id, e.g.

    $ pulumi import ionoscloud:index/applicationLoadbalancer:ApplicationLoadbalancer myalb datacenter uuid/applicationLoadBalancer uuid
    

    To learn more about importing existing cloud resources, see Importing resources.

    Package Details

    Repository
    ionoscloud ionos-cloud/terraform-provider-ionoscloud
    License
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    ionoscloud 6.7.6 published on Monday, Apr 14, 2025 by ionos-cloud