Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud
published on Tuesday, May 5, 2026 by ibm-cloud
Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud
published on Tuesday, May 5, 2026 by ibm-cloud
Retrieves the list of supported machine types for the given workspace. This endpoint is used to identify machine types available for disaster recovery automation.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const pdrMachineTypes = ibm.getPdrMachineTypes({
instanceId: "123456d3-1122-3344-b67d-4389b44b7bf9",
primaryWorkspaceName: "Test-workspace-wdc06",
standbyWorkspaceName: "Test-workspace-wdc07",
});
import pulumi
import pulumi_ibm as ibm
pdr_machine_types = ibm.get_pdr_machine_types(instance_id="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/v2/ibm"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := ibm.GetPdrMachineTypes(ctx, &ibm.GetPdrMachineTypesArgs{
InstanceId: "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 pdrMachineTypes = Ibm.GetPdrMachineTypes.Invoke(new()
{
InstanceId = "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.GetPdrMachineTypesArgs;
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 pdrMachineTypes = IbmFunctions.getPdrMachineTypes(GetPdrMachineTypesArgs.builder()
.instanceId("123456d3-1122-3344-b67d-4389b44b7bf9")
.primaryWorkspaceName("Test-workspace-wdc06")
.standbyWorkspaceName("Test-workspace-wdc07")
.build());
}
}
variables:
pdrMachineTypes:
fn::invoke:
function: ibm:getPdrMachineTypes
arguments:
instanceId: 123456d3-1122-3344-b67d-4389b44b7bf9
primaryWorkspaceName: Test-workspace-wdc06
standbyWorkspaceName: Test-workspace-wdc07
Example coming soon!
Using getPdrMachineTypes
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 getPdrMachineTypes(args: GetPdrMachineTypesArgs, opts?: InvokeOptions): Promise<GetPdrMachineTypesResult>
function getPdrMachineTypesOutput(args: GetPdrMachineTypesOutputArgs, opts?: InvokeOptions): Output<GetPdrMachineTypesResult>def get_pdr_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) -> GetPdrMachineTypesResult
def get_pdr_machine_types_output(accept_language: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
instance_id: pulumi.Input[Optional[str]] = None,
primary_workspace_name: pulumi.Input[Optional[str]] = None,
standby_workspace_name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPdrMachineTypesResult]func GetPdrMachineTypes(ctx *Context, args *GetPdrMachineTypesArgs, opts ...InvokeOption) (*GetPdrMachineTypesResult, error)
func GetPdrMachineTypesOutput(ctx *Context, args *GetPdrMachineTypesOutputArgs, opts ...InvokeOption) GetPdrMachineTypesResultOutput> Note: This function is named GetPdrMachineTypes in the Go SDK.
public static class GetPdrMachineTypes
{
public static Task<GetPdrMachineTypesResult> InvokeAsync(GetPdrMachineTypesArgs args, InvokeOptions? opts = null)
public static Output<GetPdrMachineTypesResult> Invoke(GetPdrMachineTypesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPdrMachineTypesResult> getPdrMachineTypes(GetPdrMachineTypesArgs args, InvokeOptions options)
public static Output<GetPdrMachineTypesResult> getPdrMachineTypes(GetPdrMachineTypesArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPdrMachineTypes:getPdrMachineTypes
arguments:
# arguments dictionarydata "ibm_getpdrmachinetypes" "name" {
# arguments
}The following arguments are supported:
- Instance
Id string - ID of the service instance.
- Primary
Workspace stringName - The primary Power virtual server workspace name.
- Accept
Language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- Id string
- The unique identifier of the pdr_machine_types.
- Standby
Workspace stringName - The standby Power virtual server workspace name.
- Instance
Id string - ID of the service instance.
- Primary
Workspace stringName - The primary Power virtual server workspace name.
- Accept
Language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- Id string
- The unique identifier of the pdr_machine_types.
- Standby
Workspace stringName - The standby Power virtual server workspace name.
- instance_
id string - ID of the service instance.
- primary_
workspace_ stringname - The primary Power virtual server workspace name.
- accept_
language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- id string
- The unique identifier of the pdr_machine_types.
- standby_
workspace_ stringname - The standby Power virtual server workspace name.
- instance
Id String - ID of the service instance.
- primary
Workspace StringName - The primary Power virtual server workspace name.
- accept
Language String - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- id String
- The unique identifier of the pdr_machine_types.
- standby
Workspace StringName - The standby Power virtual server workspace name.
- instance
Id string - ID of the service instance.
- primary
Workspace stringName - The primary Power virtual server workspace name.
- accept
Language string - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- id string
- The unique identifier of the pdr_machine_types.
- standby
Workspace stringName - The standby Power virtual server workspace name.
- instance_
id str - ID of the service instance.
- primary_
workspace_ strname - The primary Power virtual server workspace name.
- accept_
language str - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- id str
- The unique identifier of the pdr_machine_types.
- standby_
workspace_ strname - The standby Power virtual server workspace name.
- instance
Id String - ID of the service instance.
- primary
Workspace StringName - The primary Power virtual server workspace name.
- accept
Language String - The language requested for the return document.(ex., en,it,fr,es,de,ja,ko,pt-BR,zh-HANS,zh-HANT)
- id String
- The unique identifier of the pdr_machine_types.
- standby
Workspace StringName - The standby Power virtual server workspace name.
getPdrMachineTypes Result
The following output properties are available:
- Id string
- The unique identifier of the pdr_machine_types.
- Instance
Id string - Primary
Workspace stringName - Workspaces
List<Get
Pdr Machine Types Workspace> - (Map) The Map of workspace IDs to lists of machine types.
- Accept
Language string - Standby
Workspace stringName
- Id string
- The unique identifier of the pdr_machine_types.
- Instance
Id string - Primary
Workspace stringName - Workspaces
[]Get
Pdr Machine Types Workspace - (Map) The Map of workspace IDs to lists of machine types.
- Accept
Language string - Standby
Workspace stringName
- id string
- The unique identifier of the pdr_machine_types.
- instance_
id string - primary_
workspace_ stringname - workspaces list(object)
- (Map) The Map of workspace IDs to lists of machine types.
- accept_
language string - standby_
workspace_ stringname
- id String
- The unique identifier of the pdr_machine_types.
- instance
Id String - primary
Workspace StringName - workspaces
List<Get
Pdr Machine Types Workspace> - (Map) The Map of workspace IDs to lists of machine types.
- accept
Language String - standby
Workspace StringName
- id string
- The unique identifier of the pdr_machine_types.
- instance
Id string - primary
Workspace stringName - workspaces
Get
Pdr Machine Types Workspace[] - (Map) The Map of workspace IDs to lists of machine types.
- accept
Language string - standby
Workspace stringName
- id str
- The unique identifier of the pdr_machine_types.
- instance_
id str - primary_
workspace_ strname - workspaces
Sequence[Get
Pdr Machine Types Workspace] - (Map) The Map of workspace IDs to lists of machine types.
- accept_
language str - standby_
workspace_ strname
- id String
- The unique identifier of the pdr_machine_types.
- instance
Id String - primary
Workspace StringName - workspaces List<Property Map>
- (Map) The Map of workspace IDs to lists of machine types.
- accept
Language String - standby
Workspace StringName
Supporting Types
GetPdrMachineTypesWorkspace
- Machine
Types List<string> - Name string
- Machine
Types []string - Name string
- machine_
types list(string) - name string
- machine
Types List<String> - name String
- machine
Types string[] - name string
- machine_
types Sequence[str] - name str
- machine
Types List<String> - name String
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
Viewing docs for ibm 2.1.0
published on Tuesday, May 5, 2026 by ibm-cloud
published on Tuesday, May 5, 2026 by ibm-cloud
