terraform-provider-stackitp.../docs/data-sources/server.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

2.7 KiB

page_title subcategory description
stackit_server Data Source - stackit Server datasource schema. Must have a region specified in the provider configuration. ~> 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 (Data Source)

Server datasource schema. Must have a region specified in the provider configuration.

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

Schema

Required

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

Read-Only

  • affinity_group (String) The affinity group the server is assigned to.
  • availability_zone (String) The availability zone of the server.
  • boot_volume (Attributes) The boot volume for the server (see below for nested schema)
  • created_at (String) Date-time when the server was created
  • id (String) Terraform's internal resource ID. It is structured as "project_id,server_id".
  • 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
  • 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
  • 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.

Nested Schema for boot_volume

Read-Only:

  • id (String) The ID of the source, either image ID or volume ID
  • performance_class (String) The performance class of the server.
  • size (Number) The size of the boot volume in GB.
  • type (String) The type of the source. Supported values are: volume, image.