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

1.6 KiB

page_title subcategory description
stackit_server_network_interface_attach Resource - stackit Network interface attachment resource schema. Attaches a network interface to a server. The attachment only takes full effect after server reboot.

stackit_server_network_interface_attach (Resource)

Network interface attachment resource schema. Attaches a network interface to a server. The attachment only takes full effect after server reboot.

Example Usage

resource "stackit_server_network_interface_attach" "attached_network_interface" {
  project_id           = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  server_id            = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
  network_interface_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}

# Only use the import statement, if you want to import an existing server network interface attachment
import {
  to = stackit_server_network_interface_attach.import-example
  id = "${var.project_id},${var.region},${var.server_id},${var.network_interface_id}"
}

Schema

Required

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

Optional

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

Read-Only

  • id (String) Terraform's internal resource ID. It is structured as "project_id,region,server_id,network_interface_id".