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
Machine type data source.
This datasource is in beta and may be subject to breaking changes in the future. Use with caution. See our guide for how to opt-in to use beta resources.
Example Usage
data "stackit_machine_type" "two_vcpus_filter" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
filter = "vcpus==2"
}
data "stackit_machine_type" "filter_sorted_ascending_false" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
filter = "vcpus >= 2 && ram >= 2048"
sort_ascending = false
}
data "stackit_machine_type" "intel_icelake_generic_filter" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
filter = "extraSpecs.cpu==\"intel-icelake-generic\" && vcpus == 2"
}
# returns warning
data "stackit_machine_type" "no_match" {
project_id = "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
filter = "vcpus == 99"
}
Using getMachineType
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 getMachineType(args: GetMachineTypeArgs, opts?: InvokeOptions): Promise<GetMachineTypeResult>
function getMachineTypeOutput(args: GetMachineTypeOutputArgs, opts?: InvokeOptions): Output<GetMachineTypeResult>def get_machine_type(filter: Optional[str] = None,
project_id: Optional[str] = None,
region: Optional[str] = None,
sort_ascending: Optional[bool] = None,
opts: Optional[InvokeOptions] = None) -> GetMachineTypeResult
def get_machine_type_output(filter: Optional[pulumi.Input[str]] = None,
project_id: Optional[pulumi.Input[str]] = None,
region: Optional[pulumi.Input[str]] = None,
sort_ascending: Optional[pulumi.Input[bool]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetMachineTypeResult]func GetMachineType(ctx *Context, args *GetMachineTypeArgs, opts ...InvokeOption) (*GetMachineTypeResult, error)
func GetMachineTypeOutput(ctx *Context, args *GetMachineTypeOutputArgs, opts ...InvokeOption) GetMachineTypeResultOutput> Note: This function is named GetMachineType in the Go SDK.
public static class GetMachineType
{
public static Task<GetMachineTypeResult> InvokeAsync(GetMachineTypeArgs args, InvokeOptions? opts = null)
public static Output<GetMachineTypeResult> Invoke(GetMachineTypeInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetMachineTypeResult> getMachineType(GetMachineTypeArgs args, InvokeOptions options)
public static Output<GetMachineTypeResult> getMachineType(GetMachineTypeArgs args, InvokeOptions options)
fn::invoke:
function: stackit:index/getMachineType:getMachineType
arguments:
# arguments dictionaryThe following arguments are supported:
- Filter string
- Expr-lang filter for filtering machine types.
- Project
Id string - Region string
- Sort
Ascending bool
- Filter string
- Expr-lang filter for filtering machine types.
- Project
Id string - Region string
- Sort
Ascending bool
- filter String
- Expr-lang filter for filtering machine types.
- project
Id String - region String
- sort
Ascending Boolean
- filter string
- Expr-lang filter for filtering machine types.
- project
Id string - region string
- sort
Ascending boolean
- filter str
- Expr-lang filter for filtering machine types.
- project_
id str - region str
- sort_
ascending bool
- filter String
- Expr-lang filter for filtering machine types.
- project
Id String - region String
- sort
Ascending Boolean
getMachineType Result
The following output properties are available:
- Description string
- Disk int
- Extra
Specs Dictionary<string, string> - Filter string
- Expr-lang filter for filtering machine types.
- Id string
- Name string
- Project
Id string - Ram int
- Vcpus int
- Region string
- Sort
Ascending bool
- Description string
- Disk int
- Extra
Specs map[string]string - Filter string
- Expr-lang filter for filtering machine types.
- Id string
- Name string
- Project
Id string - Ram int
- Vcpus int
- Region string
- Sort
Ascending bool
- description String
- disk Integer
- extra
Specs Map<String,String> - filter String
- Expr-lang filter for filtering machine types.
- id String
- name String
- project
Id String - ram Integer
- vcpus Integer
- region String
- sort
Ascending Boolean
- description string
- disk number
- extra
Specs {[key: string]: string} - filter string
- Expr-lang filter for filtering machine types.
- id string
- name string
- project
Id string - ram number
- vcpus number
- region string
- sort
Ascending boolean
- description str
- disk int
- extra_
specs Mapping[str, str] - filter str
- Expr-lang filter for filtering machine types.
- id str
- name str
- project_
id str - ram int
- vcpus int
- region str
- sort_
ascending bool
- description String
- disk Number
- extra
Specs Map<String> - filter String
- Expr-lang filter for filtering machine types.
- id String
- name String
- project
Id String - ram Number
- vcpus Number
- region String
- sort
Ascending Boolean
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
