Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
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 dictionaryThe following arguments are supported:
- 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.
getServer Result
The following output properties are available:
- Affinity
Group string - The affinity group the server is assigned to.
- Availability
Zone string - The availability zone of the server.
- Boot
Volume GetServer Boot Volume - The boot volume for the server
- Created
At string - Date-time when the server was created
- Id string
- 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.
- Project
Id string - STACKIT project ID to which the server is associated.
- 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.
- Region string
- The resource region. If not defined, the provider region is used.
- Affinity
Group string - The affinity group the server is assigned to.
- Availability
Zone string - The availability zone of the server.
- Boot
Volume GetServer Boot Volume - The boot volume for the server
- Created
At string - Date-time when the server was created
- Id string
- 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.
- Project
Id string - STACKIT project ID to which the server is associated.
- 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.
- Region string
- The resource region. If not defined, the provider region is used.
- affinity
Group String - The affinity group the server is assigned to.
- availability
Zone String - The availability zone of the server.
- boot
Volume GetServer Boot Volume - The boot volume for the server
- created
At String - Date-time when the server was created
- id String
- 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.
- project
Id String - STACKIT project ID to which the server is associated.
- 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.
- region String
- The resource region. If not defined, the provider region is used.
- affinity
Group string - The affinity group the server is assigned to.
- availability
Zone string - The availability zone of the server.
- boot
Volume GetServer Boot Volume - The boot volume for the server
- created
At string - Date-time when the server was created
- id string
- 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.
- project
Id string - STACKIT project ID to which the server is associated.
- 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.
- 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 GetServer Boot Volume - 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.
- 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
- id String
- 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.
- project
Id String - STACKIT project ID to which the server is associated.
- 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.
- region String
- The resource region. If not defined, the provider region is used.
Supporting Types
GetServerBootVolume
- Delete
On boolTermination - Delete the volume during the termination of the server.
- Id string
- The ID of the boot volume
- Delete
On boolTermination - Delete the volume during the termination of the server.
- Id string
- The ID of the boot volume
- delete
On BooleanTermination - Delete the volume during the termination of the server.
- id String
- The ID of the boot volume
- delete
On booleanTermination - Delete the volume during the termination of the server.
- id string
- The ID of the boot volume
- delete_
on_ booltermination - Delete the volume during the termination of the server.
- id str
- The ID of the boot volume
- delete
On BooleanTermination - 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
stackitTerraform Provider.
Viewing docs for stackit v0.0.4
published on Friday, Feb 20, 2026 by stackitcloud
published on Friday, Feb 20, 2026 by stackitcloud
