1. Packages
  2. Ionoscloud
  3. API Docs
  4. compute
  5. Lan
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

ionoscloud.compute.Lan

Explore with Pulumi AI

ionoscloud logo
IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud

    Manages a LAN on IonosCloud.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = new ionoscloud.compute.Datacenter("example", {
        name: "Datacenter Example",
        location: "us/las",
        description: "Datacenter Description",
        secAuthProtection: false,
    });
    const exampleCrossconnect = new ionoscloud.compute.Crossconnect("example", {
        name: "Cross Connect Example",
        description: "Cross Connect Description",
    });
    const exampleLan = new ionoscloud.compute.Lan("example", {
        datacenterId: example.id,
        "public": false,
        name: "Lan Example",
        pcc: exampleCrossconnect.id,
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.compute.Datacenter("example",
        name="Datacenter Example",
        location="us/las",
        description="Datacenter Description",
        sec_auth_protection=False)
    example_crossconnect = ionoscloud.compute.Crossconnect("example",
        name="Cross Connect Example",
        description="Cross Connect Description")
    example_lan = ionoscloud.compute.Lan("example",
        datacenter_id=example.id,
        public=False,
        name="Lan Example",
        pcc=example_crossconnect.id)
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := compute.NewDatacenter(ctx, "example", &compute.DatacenterArgs{
    			Name:              pulumi.String("Datacenter Example"),
    			Location:          pulumi.String("us/las"),
    			Description:       pulumi.String("Datacenter Description"),
    			SecAuthProtection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		exampleCrossconnect, err := compute.NewCrossconnect(ctx, "example", &compute.CrossconnectArgs{
    			Name:        pulumi.String("Cross Connect Example"),
    			Description: pulumi.String("Cross Connect Description"),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewLan(ctx, "example", &compute.LanArgs{
    			DatacenterId: example.ID(),
    			Public:       pulumi.Bool(false),
    			Name:         pulumi.String("Lan Example"),
    			Pcc:          exampleCrossconnect.ID(),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ionoscloud.Compute.Datacenter("example", new()
        {
            Name = "Datacenter Example",
            Location = "us/las",
            Description = "Datacenter Description",
            SecAuthProtection = false,
        });
    
        var exampleCrossconnect = new Ionoscloud.Compute.Crossconnect("example", new()
        {
            Name = "Cross Connect Example",
            Description = "Cross Connect Description",
        });
    
        var exampleLan = new Ionoscloud.Compute.Lan("example", new()
        {
            DatacenterId = example.Id,
            Public = false,
            Name = "Lan Example",
            Pcc = exampleCrossconnect.Id,
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.compute.Datacenter;
    import com.pulumi.ionoscloud.compute.DatacenterArgs;
    import com.pulumi.ionoscloud.compute.Crossconnect;
    import com.pulumi.ionoscloud.compute.CrossconnectArgs;
    import com.pulumi.ionoscloud.compute.Lan;
    import com.pulumi.ionoscloud.compute.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 example = new Datacenter("example", DatacenterArgs.builder()
                .name("Datacenter Example")
                .location("us/las")
                .description("Datacenter Description")
                .secAuthProtection(false)
                .build());
    
            var exampleCrossconnect = new Crossconnect("exampleCrossconnect", CrossconnectArgs.builder()
                .name("Cross Connect Example")
                .description("Cross Connect Description")
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(example.id())
                .public_(false)
                .name("Lan Example")
                .pcc(exampleCrossconnect.id())
                .build());
    
        }
    }
    
    resources:
      example:
        type: ionoscloud:compute:Datacenter
        properties:
          name: Datacenter Example
          location: us/las
          description: Datacenter Description
          secAuthProtection: false
      exampleCrossconnect:
        type: ionoscloud:compute:Crossconnect
        name: example
        properties:
          name: Cross Connect Example
          description: Cross Connect Description
      exampleLan:
        type: ionoscloud:compute:Lan
        name: example
        properties:
          datacenterId: ${example.id}
          public: false
          name: Lan Example
          pcc: ${exampleCrossconnect.id}
    

    With IPv6 Enabled

    import * as pulumi from "@pulumi/pulumi";
    import * as ionoscloud from "@ionos-cloud/sdk-pulumi";
    
    const example = new ionoscloud.compute.Datacenter("example", {
        name: "Datacenter Example",
        location: "de/txl",
        description: "Datacenter Description",
        secAuthProtection: false,
    });
    const exampleLan = new ionoscloud.compute.Lan("example", {
        datacenterId: example.id,
        "public": true,
        name: "Lan IPv6 Example",
        ipv6CidrBlock: "AUTO",
    });
    
    import pulumi
    import pulumi_ionoscloud as ionoscloud
    
    example = ionoscloud.compute.Datacenter("example",
        name="Datacenter Example",
        location="de/txl",
        description="Datacenter Description",
        sec_auth_protection=False)
    example_lan = ionoscloud.compute.Lan("example",
        datacenter_id=example.id,
        public=True,
        name="Lan IPv6 Example",
        ipv6_cidr_block="AUTO")
    
    package main
    
    import (
    	"github.com/ionos-cloud/pulumi-ionoscloud/sdk/go/ionoscloud/compute"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		example, err := compute.NewDatacenter(ctx, "example", &compute.DatacenterArgs{
    			Name:              pulumi.String("Datacenter Example"),
    			Location:          pulumi.String("de/txl"),
    			Description:       pulumi.String("Datacenter Description"),
    			SecAuthProtection: pulumi.Bool(false),
    		})
    		if err != nil {
    			return err
    		}
    		_, err = compute.NewLan(ctx, "example", &compute.LanArgs{
    			DatacenterId:  example.ID(),
    			Public:        pulumi.Bool(true),
    			Name:          pulumi.String("Lan IPv6 Example"),
    			Ipv6CidrBlock: pulumi.String("AUTO"),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ionoscloud = Ionoscloud.Pulumi.Ionoscloud;
    
    return await Deployment.RunAsync(() => 
    {
        var example = new Ionoscloud.Compute.Datacenter("example", new()
        {
            Name = "Datacenter Example",
            Location = "de/txl",
            Description = "Datacenter Description",
            SecAuthProtection = false,
        });
    
        var exampleLan = new Ionoscloud.Compute.Lan("example", new()
        {
            DatacenterId = example.Id,
            Public = true,
            Name = "Lan IPv6 Example",
            Ipv6CidrBlock = "AUTO",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ionoscloud.compute.Datacenter;
    import com.pulumi.ionoscloud.compute.DatacenterArgs;
    import com.pulumi.ionoscloud.compute.Lan;
    import com.pulumi.ionoscloud.compute.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 example = new Datacenter("example", DatacenterArgs.builder()
                .name("Datacenter Example")
                .location("de/txl")
                .description("Datacenter Description")
                .secAuthProtection(false)
                .build());
    
            var exampleLan = new Lan("exampleLan", LanArgs.builder()
                .datacenterId(example.id())
                .public_(true)
                .name("Lan IPv6 Example")
                .ipv6CidrBlock("AUTO")
                .build());
    
        }
    }
    
    resources:
      example:
        type: ionoscloud:compute:Datacenter
        properties:
          name: Datacenter Example
          location: de/txl
          description: Datacenter Description
          secAuthProtection: false
      exampleLan:
        type: ionoscloud:compute:Lan
        name: example
        properties:
          datacenterId: ${example.id}
          public: true
          name: Lan IPv6 Example
          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,
            name: Optional[str] = None,
            pcc: Optional[str] = None,
            public: Optional[bool] = 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:compute: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.Compute.Lan("lanResource", new()
    {
        DatacenterId = "string",
        IpFailovers = new[]
        {
            new Ionoscloud.Compute.Inputs.LanIpFailoverArgs
            {
                Ip = "string",
                NicUuid = "string",
            },
        },
        Ipv6CidrBlock = "string",
        Name = "string",
        Pcc = "string",
        Public = false,
    });
    
    example, err := compute.NewLan(ctx, "lanResource", &compute.LanArgs{
    	DatacenterId: pulumi.String("string"),
    	IpFailovers: compute.LanIpFailoverArray{
    		&compute.LanIpFailoverArgs{
    			Ip:      pulumi.String("string"),
    			NicUuid: pulumi.String("string"),
    		},
    	},
    	Ipv6CidrBlock: pulumi.String("string"),
    	Name:          pulumi.String("string"),
    	Pcc:           pulumi.String("string"),
    	Public:        pulumi.Bool(false),
    })
    
    var lanResource = new Lan("lanResource", LanArgs.builder()
        .datacenterId("string")
        .ipFailovers(LanIpFailoverArgs.builder()
            .ip("string")
            .nicUuid("string")
            .build())
        .ipv6CidrBlock("string")
        .name("string")
        .pcc("string")
        .public_(false)
        .build());
    
    lan_resource = ionoscloud.compute.Lan("lanResource",
        datacenter_id="string",
        ip_failovers=[{
            "ip": "string",
            "nic_uuid": "string",
        }],
        ipv6_cidr_block="string",
        name="string",
        pcc="string",
        public=False)
    
    const lanResource = new ionoscloud.compute.Lan("lanResource", {
        datacenterId: "string",
        ipFailovers: [{
            ip: "string",
            nicUuid: "string",
        }],
        ipv6CidrBlock: "string",
        name: "string",
        pcc: "string",
        "public": false,
    });
    
    type: ionoscloud:compute:Lan
    properties:
        datacenterId: string
        ipFailovers:
            - ip: string
              nicUuid: string
        ipv6CidrBlock: string
        name: string
        pcc: string
        public: false
    

    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<Ionoscloud.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.
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name string
    [string] The name of the LAN.
    pcc string
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name str
    [string] The name of the LAN.
    pcc str
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).

    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,
            name: Optional[str] = None,
            pcc: Optional[str] = None,
            public: Optional[bool] = 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:compute: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<Ionoscloud.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.
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    Name string
    [string] The name of the LAN.
    Pcc string
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name string
    [string] The name of the LAN.
    pcc string
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name str
    [string] The name of the LAN.
    pcc str
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).
    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.
    name String
    [string] The name of the LAN.
    pcc String
    [String] The unique id of a ionoscloud.compute.Crossconnect 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).

    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

    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/pulumi-ionoscloud
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the ionoscloud Terraform Provider.
    ionoscloud logo
    IonosCloud v0.2.2 published on Monday, May 12, 2025 by ionos-cloud