Get information on a Ionos Cloud Lans

The LAN data source can be used to search for and return existing lans. If a single match is found, it will be returned. If your search results in multiple matches, an error will be returned. When this happens, please refine your search string so that it is specific enough to return only one result.

Example Usage


data "ionoscloud_lan" "example" {
  datacenter_id = <datacenter_id>
  id			= <lan_id>

By Name

data "ionoscloud_lan" "example" {
  datacenter_id = <datacenter_id>
  name			= <Lan Example>

Argument Reference

  • datacenter_id - (Required) Datacenter's UUID.

  • name - (Optional) Name of an existing lan that you want to search for.

  • id - (Optional) ID of the lan you want to search for.

datacenter_id and either name or id must be provided. If none, or both of name and id are provided, the datasource will return an error.

Attributes Reference

The following attributes are returned by the datasource:

  • id - The id of the LAN.

  • name - The name of the LAN.

  • datacenter_id - The ID of lan's Virtual Data Center.

  • ip_failover - list of

    • nic_uuid

    • ip

  • pcc - The unique id of a ionoscloud_private_crossconnect resource, in order.

  • public - Indicates if the LAN faces the public Internet (true) or not (false).

Last updated