1. Packages
  2. stackit
  3. API Docs
  4. Server
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
stackit logo
Viewing docs for stackit v0.0.4
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:

    MachineType string
    Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
    ProjectId string
    STACKIT project ID to which the server is associated.
    AffinityGroup string
    The affinity group the server is assigned to.
    AvailabilityZone string
    The availability zone of the server.
    BootVolume ServerBootVolume
    The boot volume for the server
    DesiredStatus string
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    ImageId string
    The image ID to be used for an ephemeral disk on the server.
    KeypairName 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.
    NetworkInterfaces 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.
    UserData string
    User data that is passed via cloud-init to the server.
    MachineType string
    Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
    ProjectId string
    STACKIT project ID to which the server is associated.
    AffinityGroup string
    The affinity group the server is assigned to.
    AvailabilityZone string
    The availability zone of the server.
    BootVolume ServerBootVolumeArgs
    The boot volume for the server
    DesiredStatus string
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    ImageId string
    The image ID to be used for an ephemeral disk on the server.
    KeypairName 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.
    NetworkInterfaces []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.
    UserData string
    User data that is passed via cloud-init to the server.
    machineType String
    Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
    projectId String
    STACKIT project ID to which the server is associated.
    affinityGroup String
    The affinity group the server is assigned to.
    availabilityZone String
    The availability zone of the server.
    bootVolume ServerBootVolume
    The boot volume for the server
    desiredStatus String
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    imageId String
    The image ID to be used for an ephemeral disk on the server.
    keypairName 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.
    networkInterfaces 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.
    userData String
    User data that is passed via cloud-init to the server.
    machineType string
    Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
    projectId string
    STACKIT project ID to which the server is associated.
    affinityGroup string
    The affinity group the server is assigned to.
    availabilityZone string
    The availability zone of the server.
    bootVolume ServerBootVolume
    The boot volume for the server
    desiredStatus string
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    imageId string
    The image ID to be used for an ephemeral disk on the server.
    keypairName 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.
    networkInterfaces 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.
    userData 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 ServerBootVolumeArgs
    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.
    machineType String
    Name of the type of the machine for the server. Possible values are documented in Virtual machine flavors
    projectId String
    STACKIT project ID to which the server is associated.
    affinityGroup String
    The affinity group the server is assigned to.
    availabilityZone String
    The availability zone of the server.
    bootVolume Property Map
    The boot volume for the server
    desiredStatus String
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    imageId String
    The image ID to be used for an ephemeral disk on the server.
    keypairName 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.
    networkInterfaces 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.
    userData 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:

    CreatedAt string
    Date-time when the server was created
    Id string
    The provider-assigned unique ID for this managed resource.
    LaunchedAt string
    Date-time when the server was launched
    ServerId string
    The server ID.
    UpdatedAt string
    Date-time when the server was updated
    CreatedAt string
    Date-time when the server was created
    Id string
    The provider-assigned unique ID for this managed resource.
    LaunchedAt string
    Date-time when the server was launched
    ServerId string
    The server ID.
    UpdatedAt string
    Date-time when the server was updated
    createdAt String
    Date-time when the server was created
    id String
    The provider-assigned unique ID for this managed resource.
    launchedAt String
    Date-time when the server was launched
    serverId String
    The server ID.
    updatedAt String
    Date-time when the server was updated
    createdAt string
    Date-time when the server was created
    id string
    The provider-assigned unique ID for this managed resource.
    launchedAt string
    Date-time when the server was launched
    serverId string
    The server ID.
    updatedAt 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
    createdAt String
    Date-time when the server was created
    id String
    The provider-assigned unique ID for this managed resource.
    launchedAt String
    Date-time when the server was launched
    serverId String
    The server ID.
    updatedAt 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) -> Server
    func 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.
    The following state arguments are supported:
    AffinityGroup string
    The affinity group the server is assigned to.
    AvailabilityZone string
    The availability zone of the server.
    BootVolume ServerBootVolume
    The boot volume for the server
    CreatedAt string
    Date-time when the server was created
    DesiredStatus string
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    ImageId string
    The image ID to be used for an ephemeral disk on the server.
    KeypairName 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
    LaunchedAt string
    Date-time when the server was launched
    MachineType 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.
    NetworkInterfaces 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.
    ProjectId string
    STACKIT project ID to which the server is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ServerId string
    The server ID.
    UpdatedAt string
    Date-time when the server was updated
    UserData string
    User data that is passed via cloud-init to the server.
    AffinityGroup string
    The affinity group the server is assigned to.
    AvailabilityZone string
    The availability zone of the server.
    BootVolume ServerBootVolumeArgs
    The boot volume for the server
    CreatedAt string
    Date-time when the server was created
    DesiredStatus string
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    ImageId string
    The image ID to be used for an ephemeral disk on the server.
    KeypairName 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
    LaunchedAt string
    Date-time when the server was launched
    MachineType 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.
    NetworkInterfaces []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.
    ProjectId string
    STACKIT project ID to which the server is associated.
    Region string
    The resource region. If not defined, the provider region is used.
    ServerId string
    The server ID.
    UpdatedAt string
    Date-time when the server was updated
    UserData string
    User data that is passed via cloud-init to the server.
    affinityGroup String
    The affinity group the server is assigned to.
    availabilityZone String
    The availability zone of the server.
    bootVolume ServerBootVolume
    The boot volume for the server
    createdAt String
    Date-time when the server was created
    desiredStatus String
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    imageId String
    The image ID to be used for an ephemeral disk on the server.
    keypairName 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
    launchedAt String
    Date-time when the server was launched
    machineType 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.
    networkInterfaces 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.
    projectId String
    STACKIT project ID to which the server is associated.
    region String
    The resource region. If not defined, the provider region is used.
    serverId String
    The server ID.
    updatedAt String
    Date-time when the server was updated
    userData String
    User data that is passed via cloud-init to the server.
    affinityGroup string
    The affinity group the server is assigned to.
    availabilityZone string
    The availability zone of the server.
    bootVolume ServerBootVolume
    The boot volume for the server
    createdAt string
    Date-time when the server was created
    desiredStatus string
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    imageId string
    The image ID to be used for an ephemeral disk on the server.
    keypairName 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
    launchedAt string
    Date-time when the server was launched
    machineType 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.
    networkInterfaces 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.
    projectId string
    STACKIT project ID to which the server is associated.
    region string
    The resource region. If not defined, the provider region is used.
    serverId string
    The server ID.
    updatedAt string
    Date-time when the server was updated
    userData 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 ServerBootVolumeArgs
    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.
    affinityGroup String
    The affinity group the server is assigned to.
    availabilityZone String
    The availability zone of the server.
    bootVolume Property Map
    The boot volume for the server
    createdAt String
    Date-time when the server was created
    desiredStatus String
    The desired status of the server resource. Possible values are: active, inactive, deallocated.
    imageId String
    The image ID to be used for an ephemeral disk on the server.
    keypairName 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
    launchedAt String
    Date-time when the server was launched
    machineType 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.
    networkInterfaces 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.
    projectId String
    STACKIT project ID to which the server is associated.
    region String
    The resource region. If not defined, the provider region is used.
    serverId String
    The server ID.
    updatedAt String
    Date-time when the server was updated
    userData String
    User data that is passed via cloud-init to the server.

    Supporting Types

    ServerBootVolume, ServerBootVolumeArgs

    SourceId string
    The ID of the source, either image ID or volume ID
    SourceType string
    The type of the source. Possible values are: volume, image.
    DeleteOnTermination bool
    Delete the volume during the termination of the server. Only allowed when source_type is image.
    Id string
    The ID of the boot volume
    PerformanceClass string
    The performance class of the server.
    Size int
    The size of the boot volume in GB. Must be provided when source_type is image.
    SourceId string
    The ID of the source, either image ID or volume ID
    SourceType string
    The type of the source. Possible values are: volume, image.
    DeleteOnTermination bool
    Delete the volume during the termination of the server. Only allowed when source_type is image.
    Id string
    The ID of the boot volume
    PerformanceClass string
    The performance class of the server.
    Size int
    The size of the boot volume in GB. Must be provided when source_type is image.
    sourceId String
    The ID of the source, either image ID or volume ID
    sourceType String
    The type of the source. Possible values are: volume, image.
    deleteOnTermination Boolean
    Delete the volume during the termination of the server. Only allowed when source_type is image.
    id String
    The ID of the boot volume
    performanceClass String
    The performance class of the server.
    size Integer
    The size of the boot volume in GB. Must be provided when source_type is image.
    sourceId string
    The ID of the source, either image ID or volume ID
    sourceType string
    The type of the source. Possible values are: volume, image.
    deleteOnTermination boolean
    Delete the volume during the termination of the server. Only allowed when source_type is image.
    id string
    The ID of the boot volume
    performanceClass string
    The performance class of the server.
    size number
    The size of the boot volume in GB. Must be provided when source_type is image.
    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_termination bool
    Delete the volume during the termination of the server. Only allowed when source_type is image.
    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_type is image.
    sourceId String
    The ID of the source, either image ID or volume ID
    sourceType String
    The type of the source. Possible values are: volume, image.
    deleteOnTermination Boolean
    Delete the volume during the termination of the server. Only allowed when source_type is image.
    id String
    The ID of the boot volume
    performanceClass String
    The performance class of the server.
    size Number
    The size of the boot volume in GB. Must be provided when source_type is image.

    Package Details

    Repository
    stackit stackitcloud/pulumi-stackit
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the stackit Terraform Provider.
    stackit logo
    Viewing docs for stackit v0.0.4
    published on Friday, Feb 20, 2026 by stackitcloud
      Try Pulumi Cloud free. Your team will thank you.