1. Packages
  2. stackit
  3. API Docs
  4. getServer
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 datasource schema. Must have a region specified in the provider configuration.

    Example Usage

    data "stackit_server" "example" {
      project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
      server_id  = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
    }
    

    Using getServer

    Two invocation forms are available. The direct form accepts plain arguments and either blocks until the result value is available, or returns a Promise-wrapped result. The output form accepts Input-wrapped arguments and returns an Output-wrapped result.

    function getServer(args: GetServerArgs, opts?: InvokeOptions): Promise<GetServerResult>
    function getServerOutput(args: GetServerOutputArgs, opts?: InvokeOptions): Output<GetServerResult>
    def get_server(project_id: Optional[str] = None,
                   region: Optional[str] = None,
                   server_id: Optional[str] = None,
                   opts: Optional[InvokeOptions] = None) -> GetServerResult
    def get_server_output(project_id: Optional[pulumi.Input[str]] = None,
                   region: Optional[pulumi.Input[str]] = None,
                   server_id: Optional[pulumi.Input[str]] = None,
                   opts: Optional[InvokeOptions] = None) -> Output[GetServerResult]
    func LookupServer(ctx *Context, args *LookupServerArgs, opts ...InvokeOption) (*LookupServerResult, error)
    func LookupServerOutput(ctx *Context, args *LookupServerOutputArgs, opts ...InvokeOption) LookupServerResultOutput

    > Note: This function is named LookupServer in the Go SDK.

    public static class GetServer 
    {
        public static Task<GetServerResult> InvokeAsync(GetServerArgs args, InvokeOptions? opts = null)
        public static Output<GetServerResult> Invoke(GetServerInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetServerResult> getServer(GetServerArgs args, InvokeOptions options)
    public static Output<GetServerResult> getServer(GetServerArgs args, InvokeOptions options)
    
    fn::invoke:
      function: stackit:index/getServer:getServer
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ProjectId string
    STACKIT project ID to which the server is associated.
    ServerId string
    The server ID.
    Region string
    The resource region. If not defined, the provider region is used.
    ProjectId string
    STACKIT project ID to which the server is associated.
    ServerId string
    The server ID.
    Region string
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the server is associated.
    serverId String
    The server ID.
    region String
    The resource region. If not defined, the provider region is used.
    projectId string
    STACKIT project ID to which the server is associated.
    serverId string
    The server ID.
    region string
    The resource region. If not defined, the provider region is used.
    project_id str
    STACKIT project ID to which the server is associated.
    server_id str
    The server ID.
    region str
    The resource region. If not defined, the provider region is used.
    projectId String
    STACKIT project ID to which the server is associated.
    serverId String
    The server ID.
    region String
    The resource region. If not defined, the provider region is used.

    getServer Result

    The following output properties are available:

    AffinityGroup string
    The affinity group the server is assigned to.
    AvailabilityZone string
    The availability zone of the server.
    BootVolume GetServerBootVolume
    The boot volume for the server
    CreatedAt string
    Date-time when the server was created
    Id string
    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.
    ProjectId string
    STACKIT project ID to which the server is associated.
    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.
    Region string
    The resource region. If not defined, the provider region is used.
    AffinityGroup string
    The affinity group the server is assigned to.
    AvailabilityZone string
    The availability zone of the server.
    BootVolume GetServerBootVolume
    The boot volume for the server
    CreatedAt string
    Date-time when the server was created
    Id string
    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.
    ProjectId string
    STACKIT project ID to which the server is associated.
    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.
    Region string
    The resource region. If not defined, the provider region is used.
    affinityGroup String
    The affinity group the server is assigned to.
    availabilityZone String
    The availability zone of the server.
    bootVolume GetServerBootVolume
    The boot volume for the server
    createdAt String
    Date-time when the server was created
    id String
    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.
    projectId String
    STACKIT project ID to which the server is associated.
    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.
    region String
    The resource region. If not defined, the provider region is used.
    affinityGroup string
    The affinity group the server is assigned to.
    availabilityZone string
    The availability zone of the server.
    bootVolume GetServerBootVolume
    The boot volume for the server
    createdAt string
    Date-time when the server was created
    id string
    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.
    projectId string
    STACKIT project ID to which the server is associated.
    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.
    region string
    The resource region. If not defined, the provider region is used.
    affinity_group str
    The affinity group the server is assigned to.
    availability_zone str
    The availability zone of the server.
    boot_volume GetServerBootVolume
    The boot volume for the server
    created_at str
    Date-time when the server was created
    id str
    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.
    project_id str
    STACKIT project ID to which the server is associated.
    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.
    region str
    The resource region. If not defined, the provider region is used.
    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
    id String
    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.
    projectId String
    STACKIT project ID to which the server is associated.
    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.
    region String
    The resource region. If not defined, the provider region is used.

    Supporting Types

    GetServerBootVolume

    DeleteOnTermination bool
    Delete the volume during the termination of the server.
    Id string
    The ID of the boot volume
    DeleteOnTermination bool
    Delete the volume during the termination of the server.
    Id string
    The ID of the boot volume
    deleteOnTermination Boolean
    Delete the volume during the termination of the server.
    id String
    The ID of the boot volume
    deleteOnTermination boolean
    Delete the volume during the termination of the server.
    id string
    The ID of the boot volume
    delete_on_termination bool
    Delete the volume during the termination of the server.
    id str
    The ID of the boot volume
    deleteOnTermination Boolean
    Delete the volume during the termination of the server.
    id String
    The ID of the boot volume

    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.