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

ionoscloud.Lan

Explore with Pulumi AI

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

    Manages a LAN 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 examplePrivateCrossconnect = new ionoscloud.PrivateCrossconnect("examplePrivateCrossconnect", {description: "Cross Connect Description"});
    const exampleLan = new ionoscloud.Lan("exampleLan", {
        datacenterId: exampleDatacenter.datacenterId,
        "public": false,
        pcc: examplePrivateCrossconnect.privateCrossconnectId,
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example_datacenter = ionoscloud.Datacenter("exampleDatacenter",
        location="us/las",
        description="Datacenter Description",
        sec_auth_protection=False)
    example_private_crossconnect = ionoscloud.PrivateCrossconnect("examplePrivateCrossconnect", description="Cross Connect Description")
    example_lan = ionoscloud.Lan("exampleLan",
        datacenter_id=example_datacenter.datacenter_id,
        public=False,
        pcc=example_private_crossconnect.private_crossconnect_id)
    
    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
    		}
    		examplePrivateCrossconnect, err := ionoscloud.NewPrivateCrossconnect(ctx, "examplePrivateCrossconnect", &ionoscloud.PrivateCrossconnectArgs{
    			Description: pulumi.String("Cross Connect Description"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ionoscloud.NewLan(ctx, "exampleLan", &ionoscloud.LanArgs{
    			DatacenterId: exampleDatacenter.DatacenterId,
    			Public:       pulumi.Bool(false),
    			Pcc:          examplePrivateCrossconnect.PrivateCrossconnectId,
    		})
    		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 examplePrivateCrossconnect = new Ionoscloud.PrivateCrossconnect("examplePrivateCrossconnect", new()
        {
            Description = "Cross Connect Description",
        });
    
        var exampleLan = new Ionoscloud.Lan("exampleLan", new()
        {
            DatacenterId = exampleDatacenter.DatacenterId,
            Public = false,
            Pcc = examplePrivateCrossconnect.PrivateCrossconnectId,
        });
    
    });
    
    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.PrivateCrossconnect;
    import com.pulumi.ionoscloud.PrivateCrossconnectArgs;
    import com.pulumi.ionoscloud.Lan;
    import com.pulumi.ionoscloud.LanArgs;
    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 examplePrivateCrossconnect = new PrivateCrossconnect("examplePrivateCrossconnect", PrivateCrossconnectArgs.builder()
                .description("Cross Connect Description")
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(exampleDatacenter.datacenterId())
                .public_(false)
                .pcc(examplePrivateCrossconnect.privateCrossconnectId())
                .build());
    
        }
    }
    
    resources:
      exampleDatacenter:
        type: ionoscloud:Datacenter
        properties:
          location: us/las
          description: Datacenter Description
          secAuthProtection: false
      examplePrivateCrossconnect:
        type: ionoscloud:PrivateCrossconnect
        properties:
          description: Cross Connect Description
      exampleLan:
        type: ionoscloud:Lan
        properties:
          datacenterId: ${exampleDatacenter.datacenterId}
          public: false
          pcc: ${examplePrivateCrossconnect.privateCrossconnectId}
    

    With IPv6 Enabled

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@pulumi/ionoscloud";
    
    const exampleDatacenter = new ionoscloud.Datacenter("exampleDatacenter", {
        location: "de/txl",
        description: "Datacenter Description",
        secAuthProtection: false,
    });
    const exampleLan = new ionoscloud.Lan("exampleLan", {
        datacenterId: exampleDatacenter.datacenterId,
        "public": true,
        ipv6CidrBlock: "AUTO",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example_datacenter = ionoscloud.Datacenter("exampleDatacenter",
        location="de/txl",
        description="Datacenter Description",
        sec_auth_protection=False)
    example_lan = ionoscloud.Lan("exampleLan",
        datacenter_id=example_datacenter.datacenter_id,
        public=True,
        ipv6_cidr_block="AUTO")
    
    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("de/txl"),
    			Description:       pulumi.String("Datacenter Description"),
    			SecAuthProtection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = ionoscloud.NewLan(ctx, "exampleLan", &ionoscloud.LanArgs{
    			DatacenterId:  exampleDatacenter.DatacenterId,
    			Public:        pulumi.Bool(true),
    			Ipv6CidrBlock: pulumi.String("AUTO"),
    		})
    		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 = "de/txl",
            Description = "Datacenter Description",
            SecAuthProtection = false,
        });
    
        var exampleLan = new Ionoscloud.Lan("exampleLan", new()
        {
            DatacenterId = exampleDatacenter.DatacenterId,
            Public = true,
            Ipv6CidrBlock = "AUTO",
        });
    
    });
    
    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 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("de/txl")
                .description("Datacenter Description")
                .secAuthProtection(false)
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(exampleDatacenter.datacenterId())
                .public_(true)
                .ipv6CidrBlock("AUTO")
                .build());
    
        }
    }
    
    resources:
      exampleDatacenter:
        type: ionoscloud:Datacenter
        properties:
          location: de/txl
          description: Datacenter Description
          secAuthProtection: false
      exampleLan:
        type: ionoscloud:Lan
        properties:
          datacenterId: ${exampleDatacenter.datacenterId}
          public: true
          ipv6CidrBlock: AUTO
    

    Create Lan Resource

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

    Constructor syntax

    new Lan(name: string, args: LanArgs, opts?: CustomResourceOptions);
    @overload
    def Lan(resource_name: str,
            args: LanArgs,
            opts: Optional[ResourceOptions] = None)
    
    @overload
    def Lan(resource_name: str,
            opts: Optional[ResourceOptions] = None,
            datacenter_id: Optional[str] = None,
            ip_failovers: Optional[Sequence[LanIpFailoverArgs]] = None,
            ipv6_cidr_block: Optional[str] = None,
            lan_id: Optional[str] = None,
            name: Optional[str] = None,
            pcc: Optional[str] = None,
            public: Optional[bool] = None,
            timeouts: Optional[LanTimeoutsArgs] = None)
    func NewLan(ctx *Context, name string, args LanArgs, opts ...ResourceOption) (*Lan, error)
    public Lan(string name, LanArgs args, CustomResourceOptions? opts = null)
    public Lan(String name, LanArgs args)
    public Lan(String name, LanArgs args, CustomResourceOptions options)
    
    type: ionoscloud:Lan
    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 LanArgs
    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 LanArgs
    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 LanArgs
    The arguments to resource properties.
    opts ResourceOption
    Bag of options to control resource's behavior.
    name string
    The unique name of the resource.
    args LanArgs
    The arguments to resource properties.
    opts CustomResourceOptions
    Bag of options to control resource's behavior.
    name String
    The unique name of the resource.
    args LanArgs
    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 lanResource = new Ionoscloud.Lan("lanResource", new()
    {
        DatacenterId = "string",
        IpFailovers = new[]
        {
            new Ionoscloud.Inputs.LanIpFailoverArgs
            {
                Ip = "string",
                NicUuid = "string",
            },
        },
        Ipv6CidrBlock = "string",
        LanId = "string",
        Name = "string",
        Pcc = "string",
        Public = false,
        Timeouts = new Ionoscloud.Inputs.LanTimeoutsArgs
        {
            Create = "string",
            Default = "string",
            Delete = "string",
            Update = "string",
        },
    });
    
    example, err := ionoscloud.NewLan(ctx, "lanResource", &ionoscloud.LanArgs{
    	DatacenterId: pulumi.String("string"),
    	IpFailovers: ionoscloud.LanIpFailoverArray{
    		&ionoscloud.LanIpFailoverArgs{
    			Ip:      pulumi.String("string"),
    			NicUuid: pulumi.String("string"),
    		},
    	},
    	Ipv6CidrBlock: pulumi.String("string"),
    	LanId:         pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Pcc:           pulumi.String("string"),
    	Public:        pulumi.Bool(false),
    	Timeouts: &ionoscloud.LanTimeoutsArgs{
    		Create:  pulumi.String("string"),
    		Default: pulumi.String("string"),
    		Delete:  pulumi.String("string"),
    		Update:  pulumi.String("string"),
    	},
    })
    
    var lanResource = new Lan("lanResource", LanArgs.builder()
        .datacenterId("string")
        .ipFailovers(LanIpFailoverArgs.builder()
            .ip("string")
            .nicUuid("string")
            .build())
        .ipv6CidrBlock("string")
        .lanId("string")
        .name("string")
        .pcc("string")
        .public_(false)
        .timeouts(LanTimeoutsArgs.builder()
            .create("string")
            .default_("string")
            .delete("string")
            .update("string")
            .build())
        .build());
    
    lan_resource = ionoscloud.Lan("lanResource",
        datacenter_id="string",
        ip_failovers=[{
            "ip": "string",
            "nic_uuid": "string",
        }],
        ipv6_cidr_block="string",
        lan_id="string",
        name="string",
        pcc="string",
        public=False,
        timeouts={
            "create": "string",
            "default": "string",
            "delete": "string",
            "update": "string",
        })
    
    const lanResource = new ionoscloud.Lan("lanResource", {
        datacenterId: "string",
        ipFailovers: [{
            ip: "string",
            nicUuid: "string",
        }],
        ipv6CidrBlock: "string",
        lanId: "string",
        name: "string",
        pcc: "string",
        "public": false,
        timeouts: {
            create: "string",
            "default": "string",
            "delete": "string",
            update: "string",
        },
    });
    
    type: ionoscloud:Lan
    properties:
        datacenterId: string
        ipFailovers:
            - ip: string
              nicUuid: string
        ipv6CidrBlock: string
        lanId: string
        name: string
        pcc: string
        public: false
        timeouts:
            create: string
            default: string
            delete: string
            update: string
    

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

    DatacenterId string
    [string] The ID of a Virtual Data Center.
    IpFailovers List<LanIpFailover>
    IP failover configurations for lan
    Ipv6CidrBlock string
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    LanId string
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    Public bool
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    Timeouts LanTimeouts
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    IpFailovers []LanIpFailoverArgs
    IP failover configurations for lan
    Ipv6CidrBlock string
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    LanId string
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    Public bool
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    Timeouts LanTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    ipFailovers List<LanIpFailover>
    IP failover configurations for lan
    ipv6CidrBlock String
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lanId String
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public_ Boolean
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts LanTimeouts
    datacenterId string
    [string] The ID of a Virtual Data Center.
    ipFailovers LanIpFailover[]
    IP failover configurations for lan
    ipv6CidrBlock string
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lanId string
    name string
    [string] The name of the LAN.
    pcc string
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public boolean
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts LanTimeouts
    datacenter_id str
    [string] The ID of a Virtual Data Center.
    ip_failovers Sequence[LanIpFailoverArgs]
    IP failover configurations for lan
    ipv6_cidr_block str
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lan_id str
    name str
    [string] The name of the LAN.
    pcc str
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public bool
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts LanTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    ipFailovers List<Property Map>
    IP failover configurations for lan
    ipv6CidrBlock String
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lanId String
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public Boolean
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts Property Map

    Outputs

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

    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4CidrBlock string
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    Id string
    The provider-assigned unique ID for this managed resource.
    Ipv4CidrBlock string
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4CidrBlock String
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    id string
    The provider-assigned unique ID for this managed resource.
    ipv4CidrBlock string
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    id str
    The provider-assigned unique ID for this managed resource.
    ipv4_cidr_block str
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    id String
    The provider-assigned unique ID for this managed resource.
    ipv4CidrBlock String
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.

    Look up Existing Lan Resource

    Get an existing Lan 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?: LanState, opts?: CustomResourceOptions): Lan
    @staticmethod
    def get(resource_name: str,
            id: str,
            opts: Optional[ResourceOptions] = None,
            datacenter_id: Optional[str] = None,
            ip_failovers: Optional[Sequence[LanIpFailoverArgs]] = None,
            ipv4_cidr_block: Optional[str] = None,
            ipv6_cidr_block: Optional[str] = None,
            lan_id: Optional[str] = None,
            name: Optional[str] = None,
            pcc: Optional[str] = None,
            public: Optional[bool] = None,
            timeouts: Optional[LanTimeoutsArgs] = None) -> Lan
    func GetLan(ctx *Context, name string, id IDInput, state *LanState, opts ...ResourceOption) (*Lan, error)
    public static Lan Get(string name, Input<string> id, LanState? state, CustomResourceOptions? opts = null)
    public static Lan get(String name, Output<String> id, LanState state, CustomResourceOptions options)
    resources:  _:    type: ionoscloud:Lan    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:
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    IpFailovers List<LanIpFailover>
    IP failover configurations for lan
    Ipv4CidrBlock string
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    Ipv6CidrBlock string
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    LanId string
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    Public bool
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    Timeouts LanTimeouts
    DatacenterId string
    [string] The ID of a Virtual Data Center.
    IpFailovers []LanIpFailoverArgs
    IP failover configurations for lan
    Ipv4CidrBlock string
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    Ipv6CidrBlock string
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    LanId string
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    Public bool
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    Timeouts LanTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    ipFailovers List<LanIpFailover>
    IP failover configurations for lan
    ipv4CidrBlock String
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    ipv6CidrBlock String
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lanId String
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public_ Boolean
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts LanTimeouts
    datacenterId string
    [string] The ID of a Virtual Data Center.
    ipFailovers LanIpFailover[]
    IP failover configurations for lan
    ipv4CidrBlock string
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    ipv6CidrBlock string
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lanId string
    name string
    [string] The name of the LAN.
    pcc string
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public boolean
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts LanTimeouts
    datacenter_id str
    [string] The ID of a Virtual Data Center.
    ip_failovers Sequence[LanIpFailoverArgs]
    IP failover configurations for lan
    ipv4_cidr_block str
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    ipv6_cidr_block str
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lan_id str
    name str
    [string] The name of the LAN.
    pcc str
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public bool
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts LanTimeoutsArgs
    datacenterId String
    [string] The ID of a Virtual Data Center.
    ipFailovers List<Property Map>
    IP failover configurations for lan
    ipv4CidrBlock String
    [String] For public LANs this property is null, for private LANs it contains the private IPv4 CIDR range. This property is a read only property.
    ipv6CidrBlock String
    Contains the LAN's /64 IPv6 CIDR block if this LAN is IPv6 enabled. 'AUTO' will result in enabling this LAN for IPv6 and automatically assign a /64 IPv6 CIDR block to this LAN. If you specify your own IPv6 CIDR block then you must provide a unique /64 block, which is inside the IPv6 CIDR block of the virtual datacenter and unique inside all LANs from this virtual datacenter.
    lanId String
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.PrivateCrossconnect resource, in order. It needs to be ensured that IP addresses of the NICs of all LANs connected to a given Cross Connect is not duplicated and belongs to the same subnet range
    public Boolean
    [Boolean] Indicates if the LAN faces the public Internet (true) or not (false).
    timeouts Property Map

    Supporting Types

    LanIpFailover, LanIpFailoverArgs

    Ip string
    NicUuid string
    Ip string
    NicUuid string
    ip String
    nicUuid String
    ip string
    nicUuid string
    ip str
    nic_uuid str
    ip String
    nicUuid String

    LanTimeouts, LanTimeoutsArgs

    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

    ant Notes

    • Please note that only LANs datacenters found in the same physical location can be connected through a Cross-connect
    • A LAN cannot be a part of two Cross-connects

    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