terraform-provider-stackitp.../docs/data-sources/network_interface.md
Ruben Hönle 53a3697850
feat(iaas): support for v2 API (#1070)
relates to STACKITTPR-313
2025-12-17 15:40:46 +01:00

2 KiB

page_title subcategory description
stackit_network_interface Data Source - stackit Network interface datasource schema. Must have a region specified in the provider configuration.

stackit_network_interface (Data Source)

Network interface datasource schema. Must have a region specified in the provider configuration.

Example Usage

data "stackit_network_interface" "example" {
  project_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  network_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  network_interface_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

Schema

Required

  • network_id (String) The network ID to which the network interface is associated.
  • network_interface_id (String) The network interface ID.
  • project_id (String) STACKIT project ID to which the network interface is associated.

Optional

  • region (String) The resource region. If not defined, the provider region is used.

Read-Only

  • allowed_addresses (List of String) The list of CIDR (Classless Inter-Domain Routing) notations.
  • device (String) The device UUID of the network interface.
  • id (String) Terraform's internal data source ID. It is structured as "project_id,region,network_id,network_interface_id".
  • ipv4 (String) The IPv4 address.
  • labels (Map of String) Labels are key-value string pairs which can be attached to a network interface.
  • mac (String) The MAC address of network interface.
  • name (String) The name of the network interface.
  • security (Boolean) The Network Interface Security. If set to false, then no security groups will apply to this network interface.
  • security_group_ids (List of String) The list of security group UUIDs. If security is set to false, setting this field will lead to an error.
  • type (String) Type of network interface. Some of the possible values are: Possible values are: server, metadata, gateway.