published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Server resource schema. Must have a region specified in the provider configuration.
Example Usage
With key pair
resource "stackit_key_pair" "keypair" {
name = "example-key-pair"
public_key = chomp(file("path/to/id_rsa.pub"))
}
resource "stackit_server" "user-data-from-file" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
boot_volume = {
size = 64
source_type = "image"
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
name = "example-server"
machine_type = "g2i.1"
keypair_name = stackit_key_pair.keypair.name
user_data = file("${path.module}/cloud-init.yaml")
}
Boot from volume
resource "stackit_server" "boot-from-volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-server"
boot_volume = {
size = 64
source_type = "image"
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
availability_zone = "eu01-1"
machine_type = "g2i.1"
keypair_name = "example-keypair"
}
Boot from existing volume
resource "stackit_volume" "example-volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
size = 12
source = {
type = "image"
id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
name = "example-volume"
availability_zone = "eu01-1"
}
resource "stackit_server" "boot-from-volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-server"
boot_volume = {
source_type = "volume"
source_id = stackit_volume.example-volume.volume_id
}
availability_zone = "eu01-1"
machine_type = "g2i.1"
keypair_name = stackit_key_pair.keypair.name
}
Network setup
resource "stackit_network" "network" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-network"
nameservers = ["192.0.2.0", "198.51.100.0", "203.0.113.0"]
ipv4_prefix_length = 24
}
resource "stackit_security_group" "sec-group" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-security-group"
stateful = true
}
resource "stackit_security_group_rule" "rule" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
security_group_id = stackit_security_group.sec-group.security_group_id
direction = "ingress"
ether_type = "IPv4"
}
resource "stackit_network_interface" "nic" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
network_id = stackit_network.network.network_id
security_group_ids = [stackit_security_group.sec-group.security_group_id]
}
resource "stackit_server" "server-with-network" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-server"
boot_volume = {
size = 64
source_type = "image"
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
machine_type = "g2i.1"
keypair_name = stackit_key_pair.keypair.name
network_interfaces = [
stackit_network_interface.nic.network_interface_id
]
}
resource "stackit_public_ip" "public-ip" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
network_interface_id = stackit_network_interface.nic.network_interface_id
}
Server with attached volume
resource "stackit_volume" "example-volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
size = 12
performance_class = "storage_premium_perf6"
name = "example-volume"
availability_zone = "eu01-1"
}
resource "stackit_server" "server-with-volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-server"
boot_volume = {
size = 64
source_type = "image"
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
availability_zone = "eu01-1"
machine_type = "g2i.1"
keypair_name = stackit_key_pair.keypair.name
}
resource "stackit_server_volume_attach" "attach_volume" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
server_id = stackit_server.server-with-volume.server_id
volume_id = stackit_volume.example-volume.volume_id
}
Server with user data (cloud-init)
resource "stackit_server" "user-data" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
boot_volume = {
size = 64
source_type = "image"
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
name = "example-server"
machine_type = "g2i.1"
keypair_name = stackit_key_pair.keypair.name
user_data = "#!/bin/bash\n/bin/su"
}
resource "stackit_server" "user-data-from-file" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
boot_volume = {
size = 64
source_type = "image"
source_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
}
name = "example-server"
machine_type = "g2i.1"
keypair_name = stackit_key_pair.keypair.name
user_data = file("${path.module}/cloud-init.yaml")
}
Additional Examples
resource "stackit_server" "example" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
name = "example-server"
boot_volume = {
size = 64
source_type = "image"
source_id = "59838a89-51b1-4892-b57f-b3caf598ee2f" // Ubuntu 24.04
}
availability_zone = "xxxx-x"
machine_type = "g2i.1"
network_interfaces = [
stackit_network_interface.example.network_interface_id
]
}
# Only use the import statement, if you want to import an existing server
# Note: There will be a conflict which needs to be resolved manually.
# Must set a configuration value for the boot_volume.source_type and boot_volume.source_id attribute as the provider has marked it as required.
# Since those attributes are not fetched in general from the API call, after adding them this would replace your server resource after an pulumi up.
# In order to prevent this you need to add:
# lifecycle {
# ignore_changes = [ boot_volume ]
# }
import {
to = stackit_server.import-example
id = "${var.project_id},${var.region},${var.server_id}"
}
Create Server Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new Server(name: string, args: ServerArgs, opts?: CustomResourceOptions);@overload
def Server(resource_name: str,
args: ServerArgs,
opts: Optional[ResourceOptions] = None)
@overload
def Server(resource_name: str,
opts: Optional[ResourceOptions] = None,
machine_type: Optional[str] = None,
project_id: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
desired_status: Optional[str] = None,
image_id: Optional[str] = None,
keypair_name: Optional[str] = None,
affinity_group: Optional[str] = None,
boot_volume: Optional[ServerBootVolumeArgs] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[str]] = None,
availability_zone: Optional[str] = None,
region: Optional[str] = None,
user_data: Optional[str] = None)func NewServer(ctx *Context, name string, args ServerArgs, opts ...ResourceOption) (*Server, error)public Server(string name, ServerArgs args, CustomResourceOptions? opts = null)
public Server(String name, ServerArgs args)
public Server(String name, ServerArgs args, CustomResourceOptions options)
type: stackit:Server
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
Parameters
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args ServerArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var serverResource = new Stackit.Server("serverResource", new()
{
MachineType = "string",
ProjectId = "string",
Labels =
{
{ "string", "string" },
},
DesiredStatus = "string",
ImageId = "string",
KeypairName = "string",
AffinityGroup = "string",
BootVolume = new Stackit.Inputs.ServerBootVolumeArgs
{
SourceId = "string",
SourceType = "string",
DeleteOnTermination = false,
Id = "string",
PerformanceClass = "string",
Size = 0,
},
Name = "string",
NetworkInterfaces = new[]
{
"string",
},
AvailabilityZone = "string",
Region = "string",
UserData = "string",
});
example, err := stackit.NewServer(ctx, "serverResource", &stackit.ServerArgs{
MachineType: pulumi.String("string"),
ProjectId: pulumi.String("string"),
Labels: pulumi.StringMap{
"string": pulumi.String("string"),
},
DesiredStatus: pulumi.String("string"),
ImageId: pulumi.String("string"),
KeypairName: pulumi.String("string"),
AffinityGroup: pulumi.String("string"),
BootVolume: &stackit.ServerBootVolumeArgs{
SourceId: pulumi.String("string"),
SourceType: pulumi.String("string"),
DeleteOnTermination: pulumi.Bool(false),
Id: pulumi.String("string"),
PerformanceClass: pulumi.String("string"),
Size: pulumi.Int(0),
},
Name: pulumi.String("string"),
NetworkInterfaces: pulumi.StringArray{
pulumi.String("string"),
},
AvailabilityZone: pulumi.String("string"),
Region: pulumi.String("string"),
UserData: pulumi.String("string"),
})
var serverResource = new Server("serverResource", ServerArgs.builder()
.machineType("string")
.projectId("string")
.labels(Map.of("string", "string"))
.desiredStatus("string")
.imageId("string")
.keypairName("string")
.affinityGroup("string")
.bootVolume(ServerBootVolumeArgs.builder()
.sourceId("string")
.sourceType("string")
.deleteOnTermination(false)
.id("string")
.performanceClass("string")
.size(0)
.build())
.name("string")
.networkInterfaces("string")
.availabilityZone("string")
.region("string")
.userData("string")
.build());
server_resource = stackit.Server("serverResource",
machine_type="string",
project_id="string",
labels={
"string": "string",
},
desired_status="string",
image_id="string",
keypair_name="string",
affinity_group="string",
boot_volume={
"source_id": "string",
"source_type": "string",
"delete_on_termination": False,
"id": "string",
"performance_class": "string",
"size": 0,
},
name="string",
network_interfaces=["string"],
availability_zone="string",
region="string",
user_data="string")
const serverResource = new stackit.Server("serverResource", {
machineType: "string",
projectId: "string",
labels: {
string: "string",
},
desiredStatus: "string",
imageId: "string",
keypairName: "string",
affinityGroup: "string",
bootVolume: {
sourceId: "string",
sourceType: "string",
deleteOnTermination: false,
id: "string",
performanceClass: "string",
size: 0,
},
name: "string",
networkInterfaces: ["string"],
availabilityZone: "string",
region: "string",
userData: "string",
});
type: stackit:Server
properties:
affinityGroup: string
availabilityZone: string
bootVolume:
deleteOnTermination: false
id: string
performanceClass: string
size: 0
sourceId: string
sourceType: string
desiredStatus: string
imageId: string
keypairName: string
labels:
string: string
machineType: string
name: string
networkInterfaces:
- string
projectId: string
region: string
userData: string
Server Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The Server resource accepts the following input properties:
- Machine
Type string - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- Project
Id string - STACKIT project ID to which the server is associated.
- Affinity
Group string - The affinity group the server is assigned to.
- Availability
Zone string - The availability zone of the server.
- Boot
Volume ServerBoot Volume - The boot volume for the server
- Desired
Status string - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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 Dictionary<string, string>
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the server.
- Network
Interfaces List<string> - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- Region string
- The resource region. If not defined, the provider region is used.
- User
Data string - User data that is passed via cloud-init to the server.
- Machine
Type string - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- Project
Id string - STACKIT project ID to which the server is associated.
- Affinity
Group string - The affinity group the server is assigned to.
- Availability
Zone string - The availability zone of the server.
- Boot
Volume ServerBoot Volume Args - The boot volume for the server
- Desired
Status string - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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[string]string
- Labels are key-value string pairs which can be attached to a resource container
- Name string
- The name of the server.
- Network
Interfaces []string - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- Region string
- The resource region. If not defined, the provider region is used.
- User
Data string - User data that is passed via cloud-init to the server.
- machine
Type String - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- project
Id String - STACKIT project ID to which the server is associated.
- affinity
Group String - The affinity group the server is assigned to.
- availability
Zone String - The availability zone of the server.
- boot
Volume ServerBoot Volume - The boot volume for the server
- desired
Status String - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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<String,String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the server.
- network
Interfaces List<String> - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- region String
- The resource region. If not defined, the provider region is used.
- user
Data String - User data that is passed via cloud-init to the server.
- machine
Type string - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- project
Id string - STACKIT project ID to which the server is associated.
- affinity
Group string - The affinity group the server is assigned to.
- availability
Zone string - The availability zone of the server.
- boot
Volume ServerBoot Volume - The boot volume for the server
- desired
Status string - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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 {[key: string]: string}
- Labels are key-value string pairs which can be attached to a resource container
- name string
- The name of the server.
- network
Interfaces string[] - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- region string
- The resource region. If not defined, the provider region is used.
- user
Data string - User data that is passed via cloud-init to the server.
- machine_
type str - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- project_
id str - STACKIT project ID to which the server is associated.
- affinity_
group str - The affinity group the server is assigned to.
- availability_
zone str - The availability zone of the server.
- boot_
volume ServerBoot Volume Args - The boot volume for the server
- desired_
status str - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - image_
id str - The image ID to be used for an ephemeral disk on the server.
- keypair_
name str - The name of the keypair used during server creation.
- labels Mapping[str, str]
- Labels are key-value string pairs which can be attached to a resource container
- name str
- The name of the server.
- network_
interfaces Sequence[str] - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- region str
- The resource region. If not defined, the provider region is used.
- user_
data str - User data that is passed via cloud-init to the server.
- machine
Type String - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- project
Id String - STACKIT project ID to which the server is associated.
- affinity
Group String - The affinity group the server is assigned to.
- availability
Zone String - The availability zone of the server.
- boot
Volume Property Map - The boot volume for the server
- desired
Status String - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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<String>
- Labels are key-value string pairs which can be attached to a resource container
- name String
- The name of the server.
- network
Interfaces List<String> - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- region String
- The resource region. If not defined, the provider region is used.
- user
Data String - User data that is passed via cloud-init to the server.
Outputs
All input properties are implicitly available as output properties. Additionally, the Server resource produces the following output properties:
- Created
At string - Date-time when the server was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Launched
At string - Date-time when the server was launched
- Server
Id string - The server ID.
- Updated
At string - Date-time when the server was updated
- Created
At string - Date-time when the server was created
- Id string
- The provider-assigned unique ID for this managed resource.
- Launched
At string - Date-time when the server was launched
- Server
Id string - The server ID.
- Updated
At string - Date-time when the server was updated
- created
At String - Date-time when the server was created
- id String
- The provider-assigned unique ID for this managed resource.
- launched
At String - Date-time when the server was launched
- server
Id String - The server ID.
- updated
At String - Date-time when the server was updated
- created
At string - Date-time when the server was created
- id string
- The provider-assigned unique ID for this managed resource.
- launched
At string - Date-time when the server was launched
- server
Id string - The server ID.
- updated
At string - Date-time when the server was updated
- created_
at str - Date-time when the server was created
- id str
- The provider-assigned unique ID for this managed resource.
- launched_
at str - Date-time when the server was launched
- server_
id str - The server ID.
- updated_
at str - Date-time when the server was updated
- created
At String - Date-time when the server was created
- id String
- The provider-assigned unique ID for this managed resource.
- launched
At String - Date-time when the server was launched
- server
Id String - The server ID.
- updated
At String - Date-time when the server was updated
Look up Existing Server Resource
Get an existing Server resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.
public static get(name: string, id: Input<ID>, state?: ServerState, opts?: CustomResourceOptions): Server@staticmethod
def get(resource_name: str,
id: str,
opts: Optional[ResourceOptions] = None,
affinity_group: Optional[str] = None,
availability_zone: Optional[str] = None,
boot_volume: Optional[ServerBootVolumeArgs] = None,
created_at: Optional[str] = None,
desired_status: Optional[str] = None,
image_id: Optional[str] = None,
keypair_name: Optional[str] = None,
labels: Optional[Mapping[str, str]] = None,
launched_at: Optional[str] = None,
machine_type: Optional[str] = None,
name: Optional[str] = None,
network_interfaces: Optional[Sequence[str]] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
server_id: Optional[str] = None,
updated_at: Optional[str] = None,
user_data: Optional[str] = None) -> Serverfunc GetServer(ctx *Context, name string, id IDInput, state *ServerState, opts ...ResourceOption) (*Server, error)public static Server Get(string name, Input<string> id, ServerState? state, CustomResourceOptions? opts = null)public static Server get(String name, Output<String> id, ServerState state, CustomResourceOptions options)resources: _: type: stackit:Server get: id: ${id}- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- resource_name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- name
- The unique name of the resulting resource.
- id
- The unique provider ID of the resource to lookup.
- state
- Any extra arguments used during the lookup.
- opts
- A bag of options that control this resource's behavior.
- Affinity
Group string - The affinity group the server is assigned to.
- Availability
Zone string - The availability zone of the server.
- Boot
Volume ServerBoot Volume - The boot volume for the server
- Created
At string - Date-time when the server was created
- Desired
Status string - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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 Dictionary<string, 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<string> - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- Project
Id string - STACKIT project ID to which the server is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Server
Id string - The server ID.
- Updated
At string - Date-time when the server was updated
- User
Data string - User data that is passed via cloud-init to the server.
- Affinity
Group string - The affinity group the server is assigned to.
- Availability
Zone string - The availability zone of the server.
- Boot
Volume ServerBoot Volume Args - The boot volume for the server
- Created
At string - Date-time when the server was created
- Desired
Status string - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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[string]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 []string - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- Project
Id string - STACKIT project ID to which the server is associated.
- Region string
- The resource region. If not defined, the provider region is used.
- Server
Id string - The server ID.
- Updated
At string - Date-time when the server was updated
- User
Data string - User data that is passed via cloud-init to the server.
- affinity
Group String - The affinity group the server is assigned to.
- availability
Zone String - The availability zone of the server.
- boot
Volume ServerBoot Volume - The boot volume for the server
- created
At String - Date-time when the server was created
- desired
Status String - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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<String,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<String> - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- project
Id String - STACKIT project ID to which the server is associated.
- region String
- The resource region. If not defined, the provider region is used.
- server
Id String - The server ID.
- updated
At String - Date-time when the server was updated
- user
Data String - User data that is passed via cloud-init to the server.
- affinity
Group string - The affinity group the server is assigned to.
- availability
Zone string - The availability zone of the server.
- boot
Volume ServerBoot Volume - The boot volume for the server
- created
At string - Date-time when the server was created
- desired
Status string - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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 {[key: string]: 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 string[] - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- project
Id string - STACKIT project ID to which the server is associated.
- region string
- The resource region. If not defined, the provider region is used.
- server
Id string - The server ID.
- updated
At string - Date-time when the server was updated
- user
Data string - User data that is passed via cloud-init to the server.
- affinity_
group str - The affinity group the server is assigned to.
- availability_
zone str - The availability zone of the server.
- boot_
volume ServerBoot Volume Args - The boot volume for the server
- created_
at str - Date-time when the server was created
- desired_
status str - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - image_
id str - The image ID to be used for an ephemeral disk on the server.
- keypair_
name str - The name of the keypair used during server creation.
- labels Mapping[str, str]
- Labels are key-value string pairs which can be attached to a resource container
- launched_
at str - Date-time when the server was launched
- machine_
type str - Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
- name str
- The name of the server.
- network_
interfaces Sequence[str] - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- project_
id str - STACKIT project ID to which the server is associated.
- region str
- The resource region. If not defined, the provider region is used.
- server_
id str - The server ID.
- updated_
at str - Date-time when the server was updated
- user_
data str - User data that is passed via cloud-init to the server.
- affinity
Group String - The affinity group the server is assigned to.
- availability
Zone String - The availability zone of the server.
- boot
Volume Property Map - The boot volume for the server
- created
At String - Date-time when the server was created
- desired
Status String - The desired status of the server resource. Possible values are:
active,inactive,deallocated. - 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<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<String> - The IDs of network interfaces which should be attached to the server. Updating it will recreate the server. Required when (re-)creating servers. Still marked as optional in the schema to not introduce breaking changes. There will be a migration path for this field soon.
- project
Id String - STACKIT project ID to which the server is associated.
- region String
- The resource region. If not defined, the provider region is used.
- server
Id String - The server ID.
- updated
At String - Date-time when the server was updated
- user
Data String - User data that is passed via cloud-init to the server.
Supporting Types
ServerBootVolume, ServerBootVolumeArgs
- Source
Id string - The ID of the source, either image ID or volume ID
- Source
Type string - The type of the source. Possible values are:
volume,image. - Delete
On boolTermination - Delete the volume during the termination of the server. Only allowed when
source_typeisimage. - Id string
- The ID of the boot volume
- Performance
Class string - The performance class of the server.
- Size int
- The size of the boot volume in GB. Must be provided when
source_typeisimage.
- Source
Id string - The ID of the source, either image ID or volume ID
- Source
Type string - The type of the source. Possible values are:
volume,image. - Delete
On boolTermination - Delete the volume during the termination of the server. Only allowed when
source_typeisimage. - Id string
- The ID of the boot volume
- Performance
Class string - The performance class of the server.
- Size int
- The size of the boot volume in GB. Must be provided when
source_typeisimage.
- source
Id String - The ID of the source, either image ID or volume ID
- source
Type String - The type of the source. Possible values are:
volume,image. - delete
On BooleanTermination - Delete the volume during the termination of the server. Only allowed when
source_typeisimage. - id String
- The ID of the boot volume
- performance
Class String - The performance class of the server.
- size Integer
- The size of the boot volume in GB. Must be provided when
source_typeisimage.
- source
Id string - The ID of the source, either image ID or volume ID
- source
Type string - The type of the source. Possible values are:
volume,image. - delete
On booleanTermination - Delete the volume during the termination of the server. Only allowed when
source_typeisimage. - id string
- The ID of the boot volume
- performance
Class string - The performance class of the server.
- size number
- The size of the boot volume in GB. Must be provided when
source_typeisimage.
- source_
id str - The ID of the source, either image ID or volume ID
- source_
type str - The type of the source. Possible values are:
volume,image. - delete_
on_ booltermination - Delete the volume during the termination of the server. Only allowed when
source_typeisimage. - id str
- The ID of the boot volume
- performance_
class str - The performance class of the server.
- size int
- The size of the boot volume in GB. Must be provided when
source_typeisimage.
- source
Id String - The ID of the source, either image ID or volume ID
- source
Type String - The type of the source. Possible values are:
volume,image. - delete
On BooleanTermination - Delete the volume during the termination of the server. Only allowed when
source_typeisimage. - id String
- The ID of the boot volume
- performance
Class String - The performance class of the server.
- size Number
- The size of the boot volume in GB. Must be provided when
source_typeisimage.
Package Details
- Repository
- stackit stackitcloud/pulumi-stackit
- License
- Apache-2.0
- Notes
- This Pulumi package is based on the
stackitTerraform Provider.
published on Friday, Feb 20, 2026 by stackitcloud
