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>
This commit is contained in:
parent
9b969ae583
commit
4d6f860b26
6 changed files with 132 additions and 49 deletions
|
|
@ -36,6 +36,7 @@ Server datasource schema. Must have a `region` specified in the provider configu
|
|||
- `launched_at` (String) Date-time when the server was launched
|
||||
- `machine_type` (String) Name of the type of the machine for the server. Possible values are documented in [Virtual machine flavors](https://docs.stackit.cloud/stackit/en/virtual-machine-flavors-75137231.html)
|
||||
- `name` (String) The name of the server.
|
||||
- `network_interfaces` (List of String) The IDs of network interfaces which should be attached to the server. Updating it will recreate the server.
|
||||
- `updated_at` (String) Date-time when the server was updated
|
||||
- `user_data` (String) User data that is passed via cloud-init to the server.
|
||||
|
||||
|
|
|
|||
|
|
@ -388,6 +388,7 @@ resource "stackit_server" "user-data-from-file" {
|
|||
- `image_id` (String) The image ID to be used for an ephemeral disk on the server.
|
||||
- `keypair_name` (String) The name of the keypair used during server creation.
|
||||
- `labels` (Map of String) Labels are key-value string pairs which can be attached to a resource container
|
||||
- `network_interfaces` (List of String) The IDs of network interfaces which should be attached to the server. Updating it will recreate the server.
|
||||
- `user_data` (String) User data that is passed via cloud-init to the server.
|
||||
|
||||
### Read-Only
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
page_title: "stackit_server_network_interface_attach Resource - stackit"
|
||||
subcategory: ""
|
||||
description: |-
|
||||
Network interface attachment resource schema. Attaches a network interface to a server. Must have a region specified in the provider configuration.
|
||||
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.
|
||||
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.
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue