| 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. |
Network interface attachment resource schema. Attaches a network interface to a server. The attachment only takes full effect after server reboot.
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}"
}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.
region(String) The resource region. If not defined, the provider region is used.
id(String) Terraform's internal resource ID. It is structured as "project_id,region,server_id,network_interface_id".