1. Packages
  2. stackit
  3. API Docs
  4. getMachineType
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

    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 dictionary

    The following arguments are supported:

    Filter string
    Expr-lang filter for filtering machine types.
    ProjectId string
    Region string
    SortAscending bool
    Filter string
    Expr-lang filter for filtering machine types.
    ProjectId string
    Region string
    SortAscending bool
    filter String
    Expr-lang filter for filtering machine types.
    projectId String
    region String
    sortAscending Boolean
    filter string
    Expr-lang filter for filtering machine types.
    projectId string
    region string
    sortAscending 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.
    projectId String
    region String
    sortAscending Boolean

    getMachineType Result

    The following output properties are available:

    Description string
    Disk int
    ExtraSpecs Dictionary<string, string>
    Filter string
    Expr-lang filter for filtering machine types.
    Id string
    Name string
    ProjectId string
    Ram int
    Vcpus int
    Region string
    SortAscending bool
    Description string
    Disk int
    ExtraSpecs map[string]string
    Filter string
    Expr-lang filter for filtering machine types.
    Id string
    Name string
    ProjectId string
    Ram int
    Vcpus int
    Region string
    SortAscending bool
    description String
    disk Integer
    extraSpecs Map<String,String>
    filter String
    Expr-lang filter for filtering machine types.
    id String
    name String
    projectId String
    ram Integer
    vcpus Integer
    region String
    sortAscending Boolean
    description string
    disk number
    extraSpecs {[key: string]: string}
    filter string
    Expr-lang filter for filtering machine types.
    id string
    name string
    projectId string
    ram number
    vcpus number
    region string
    sortAscending 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
    extraSpecs Map<String>
    filter String
    Expr-lang filter for filtering machine types.
    id String
    name String
    projectId String
    ram Number
    vcpus Number
    region String
    sortAscending Boolean

    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.