terraform-provider-stackitp.../docs/resources/server_network_interface_attach.md
Alexander Dahmen 721e10a02f
chore(examples): Add import examples for all resources (#939)
* chore(examples): Add import examples for all resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

* Add guide: How to import resources

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>

---------

Signed-off-by: Alexander Dahmen <alexander.dahmen@inovex.de>
2025-08-08 14:03:27 +02: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. Must have a region specified in the provider configuration. 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. Must have a region specified in the provider configuration. 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.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.

Read-Only

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