1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPdrGetMachineTypes
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
ibm logo
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud

    Provides a read-only data source to retrieve information about pdr_get_machine_types. You can then reference the fields of the data source in other resources within the same configuration by using interpolation syntax.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    const pdrGetMachineTypes = ibm.getPdrGetMachineTypes({
        instanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        primaryWorkspaceName: "Test-workspace-wdc06",
        standbyWorkspaceName: "Test-workspace-wdc07",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pdr_get_machine_types = ibm.get_pdr_get_machine_types(instance_id="crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        primary_workspace_name="Test-workspace-wdc06",
        standby_workspace_name="Test-workspace-wdc07")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/ibm/ibm"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		_, err := ibm.GetPdrGetMachineTypes(ctx, &ibm.GetPdrGetMachineTypesArgs{
    			InstanceId:           "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
    			PrimaryWorkspaceName: "Test-workspace-wdc06",
    			StandbyWorkspaceName: pulumi.StringRef("Test-workspace-wdc07"),
    		}, nil)
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Ibm = Pulumi.Ibm;
    
    return await Deployment.RunAsync(() => 
    {
        var pdrGetMachineTypes = Ibm.GetPdrGetMachineTypes.Invoke(new()
        {
            InstanceId = "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
            PrimaryWorkspaceName = "Test-workspace-wdc06",
            StandbyWorkspaceName = "Test-workspace-wdc07",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.ibm.IbmFunctions;
    import com.pulumi.ibm.inputs.GetPdrGetMachineTypesArgs;
    import java.util.List;
    import java.util.ArrayList;
    import java.util.Map;
    import java.io.File;
    import java.nio.file.Files;
    import java.nio.file.Paths;
    
    public class App {
        public static void main(String[] args) {
            Pulumi.run(App::stack);
        }
    
        public static void stack(Context ctx) {
            final var pdrGetMachineTypes = IbmFunctions.getPdrGetMachineTypes(GetPdrGetMachineTypesArgs.builder()
                .instanceId("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
                .primaryWorkspaceName("Test-workspace-wdc06")
                .standbyWorkspaceName("Test-workspace-wdc07")
                .build());
    
        }
    }
    
    variables:
      pdrGetMachineTypes:
        fn::invoke:
          function: ibm:getPdrGetMachineTypes
          arguments:
            instanceId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::'
            primaryWorkspaceName: Test-workspace-wdc06
            standbyWorkspaceName: Test-workspace-wdc07
    

    Using getPdrGetMachineTypes

    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 getPdrGetMachineTypes(args: GetPdrGetMachineTypesArgs, opts?: InvokeOptions): Promise<GetPdrGetMachineTypesResult>
    function getPdrGetMachineTypesOutput(args: GetPdrGetMachineTypesOutputArgs, opts?: InvokeOptions): Output<GetPdrGetMachineTypesResult>
    def get_pdr_get_machine_types(accept_language: Optional[str] = None,
                                  id: Optional[str] = None,
                                  instance_id: Optional[str] = None,
                                  primary_workspace_name: Optional[str] = None,
                                  standby_workspace_name: Optional[str] = None,
                                  opts: Optional[InvokeOptions] = None) -> GetPdrGetMachineTypesResult
    def get_pdr_get_machine_types_output(accept_language: Optional[pulumi.Input[str]] = None,
                                  id: Optional[pulumi.Input[str]] = None,
                                  instance_id: Optional[pulumi.Input[str]] = None,
                                  primary_workspace_name: Optional[pulumi.Input[str]] = None,
                                  standby_workspace_name: Optional[pulumi.Input[str]] = None,
                                  opts: Optional[InvokeOptions] = None) -> Output[GetPdrGetMachineTypesResult]
    func GetPdrGetMachineTypes(ctx *Context, args *GetPdrGetMachineTypesArgs, opts ...InvokeOption) (*GetPdrGetMachineTypesResult, error)
    func GetPdrGetMachineTypesOutput(ctx *Context, args *GetPdrGetMachineTypesOutputArgs, opts ...InvokeOption) GetPdrGetMachineTypesResultOutput

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

    public static class GetPdrGetMachineTypes 
    {
        public static Task<GetPdrGetMachineTypesResult> InvokeAsync(GetPdrGetMachineTypesArgs args, InvokeOptions? opts = null)
        public static Output<GetPdrGetMachineTypesResult> Invoke(GetPdrGetMachineTypesInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPdrGetMachineTypesResult> getPdrGetMachineTypes(GetPdrGetMachineTypesArgs args, InvokeOptions options)
    public static Output<GetPdrGetMachineTypesResult> getPdrGetMachineTypes(GetPdrGetMachineTypesArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPdrGetMachineTypes:getPdrGetMachineTypes
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    instance id of instance to provision.
    PrimaryWorkspaceName string
    The primary Power virtual server workspace name.
    AcceptLanguage string
    The language requested for the return document.
    Id string
    The unique identifier of the pdr_get_machine_types.
    StandbyWorkspaceName string
    The standby Power virtual server workspace name.
    InstanceId string
    instance id of instance to provision.
    PrimaryWorkspaceName string
    The primary Power virtual server workspace name.
    AcceptLanguage string
    The language requested for the return document.
    Id string
    The unique identifier of the pdr_get_machine_types.
    StandbyWorkspaceName string
    The standby Power virtual server workspace name.
    instanceId String
    instance id of instance to provision.
    primaryWorkspaceName String
    The primary Power virtual server workspace name.
    acceptLanguage String
    The language requested for the return document.
    id String
    The unique identifier of the pdr_get_machine_types.
    standbyWorkspaceName String
    The standby Power virtual server workspace name.
    instanceId string
    instance id of instance to provision.
    primaryWorkspaceName string
    The primary Power virtual server workspace name.
    acceptLanguage string
    The language requested for the return document.
    id string
    The unique identifier of the pdr_get_machine_types.
    standbyWorkspaceName string
    The standby Power virtual server workspace name.
    instance_id str
    instance id of instance to provision.
    primary_workspace_name str
    The primary Power virtual server workspace name.
    accept_language str
    The language requested for the return document.
    id str
    The unique identifier of the pdr_get_machine_types.
    standby_workspace_name str
    The standby Power virtual server workspace name.
    instanceId String
    instance id of instance to provision.
    primaryWorkspaceName String
    The primary Power virtual server workspace name.
    acceptLanguage String
    The language requested for the return document.
    id String
    The unique identifier of the pdr_get_machine_types.
    standbyWorkspaceName String
    The standby Power virtual server workspace name.

    getPdrGetMachineTypes Result

    The following output properties are available:

    Id string
    The unique identifier of the pdr_get_machine_types.
    InstanceId string
    PrimaryWorkspaceName string
    Workspaces List<GetPdrGetMachineTypesWorkspace>
    (Map) The Map of workspace IDs to lists of machine types.
    AcceptLanguage string
    StandbyWorkspaceName string
    Id string
    The unique identifier of the pdr_get_machine_types.
    InstanceId string
    PrimaryWorkspaceName string
    Workspaces []GetPdrGetMachineTypesWorkspace
    (Map) The Map of workspace IDs to lists of machine types.
    AcceptLanguage string
    StandbyWorkspaceName string
    id String
    The unique identifier of the pdr_get_machine_types.
    instanceId String
    primaryWorkspaceName String
    workspaces List<GetPdrGetMachineTypesWorkspace>
    (Map) The Map of workspace IDs to lists of machine types.
    acceptLanguage String
    standbyWorkspaceName String
    id string
    The unique identifier of the pdr_get_machine_types.
    instanceId string
    primaryWorkspaceName string
    workspaces GetPdrGetMachineTypesWorkspace[]
    (Map) The Map of workspace IDs to lists of machine types.
    acceptLanguage string
    standbyWorkspaceName string
    id str
    The unique identifier of the pdr_get_machine_types.
    instance_id str
    primary_workspace_name str
    workspaces Sequence[GetPdrGetMachineTypesWorkspace]
    (Map) The Map of workspace IDs to lists of machine types.
    accept_language str
    standby_workspace_name str
    id String
    The unique identifier of the pdr_get_machine_types.
    instanceId String
    primaryWorkspaceName String
    workspaces List<Property Map>
    (Map) The Map of workspace IDs to lists of machine types.
    acceptLanguage String
    standbyWorkspaceName String

    Supporting Types

    GetPdrGetMachineTypesWorkspace

    MachineTypes List<string>
    Name string
    MachineTypes []string
    Name string
    machineTypes List<String>
    name String
    machineTypes string[]
    name string
    machine_types Sequence[str]
    name str
    machineTypes List<String>
    name String

    Package Details

    Repository
    ibm ibm-cloud/terraform-provider-ibm
    License
    Notes
    This Pulumi package is based on the ibm Terraform Provider.
    ibm logo
    ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
      Meet Neo: Your AI Platform Teammate