terraform-provider-stackitp.../docs/resources/server_network_interface_attach.md
Marcel Jacek 4d6f860b26
feature: Add "network_interfaces" field to server resource (#628)
* Add network_interfaces field to server resource

* Update docs

* Update description of stackit_server_network_interface_attach

Co-authored-by: João Palet <joao.palet@outlook.com>

---------

Co-authored-by: João Palet <joao.palet@outlook.com>
2025-01-22 11:22:39 +01:00

1.8 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 takes only effect after server reboot. ~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide https://registry.terraform.io/providers/stackitcloud/stackit/latest/docs/guides/opting_into_beta_resources for how to opt-in to use beta resources.

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 takes only effect after server reboot.

~> This resource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.

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"
}

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".