1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPdrGetPowervsWorkspace
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 a pdr_get_powervs_workspace. 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 pdrGetPowervsWorkspace = ibm.getPdrGetPowervsWorkspace({
        instanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        locationId: "location_id",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pdr_get_powervs_workspace = ibm.get_pdr_get_powervs_workspace(instance_id="crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
        location_id="location_id")
    
    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.GetPdrGetPowervsWorkspace(ctx, &ibm.GetPdrGetPowervsWorkspaceArgs{
    			InstanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
    			LocationId: "location_id",
    		}, 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 pdrGetPowervsWorkspace = Ibm.GetPdrGetPowervsWorkspace.Invoke(new()
        {
            InstanceId = "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
            LocationId = "location_id",
        });
    
    });
    
    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.GetPdrGetPowervsWorkspaceArgs;
    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 pdrGetPowervsWorkspace = IbmFunctions.getPdrGetPowervsWorkspace(GetPdrGetPowervsWorkspaceArgs.builder()
                .instanceId("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
                .locationId("location_id")
                .build());
    
        }
    }
    
    variables:
      pdrGetPowervsWorkspace:
        fn::invoke:
          function: ibm:getPdrGetPowervsWorkspace
          arguments:
            instanceId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::'
            locationId: location_id
    

    Using getPdrGetPowervsWorkspace

    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 getPdrGetPowervsWorkspace(args: GetPdrGetPowervsWorkspaceArgs, opts?: InvokeOptions): Promise<GetPdrGetPowervsWorkspaceResult>
    function getPdrGetPowervsWorkspaceOutput(args: GetPdrGetPowervsWorkspaceOutputArgs, opts?: InvokeOptions): Output<GetPdrGetPowervsWorkspaceResult>
    def get_pdr_get_powervs_workspace(accept_language: Optional[str] = None,
                                      id: Optional[str] = None,
                                      instance_id: Optional[str] = None,
                                      location_id: Optional[str] = None,
                                      opts: Optional[InvokeOptions] = None) -> GetPdrGetPowervsWorkspaceResult
    def get_pdr_get_powervs_workspace_output(accept_language: Optional[pulumi.Input[str]] = None,
                                      id: Optional[pulumi.Input[str]] = None,
                                      instance_id: Optional[pulumi.Input[str]] = None,
                                      location_id: Optional[pulumi.Input[str]] = None,
                                      opts: Optional[InvokeOptions] = None) -> Output[GetPdrGetPowervsWorkspaceResult]
    func GetPdrGetPowervsWorkspace(ctx *Context, args *GetPdrGetPowervsWorkspaceArgs, opts ...InvokeOption) (*GetPdrGetPowervsWorkspaceResult, error)
    func GetPdrGetPowervsWorkspaceOutput(ctx *Context, args *GetPdrGetPowervsWorkspaceOutputArgs, opts ...InvokeOption) GetPdrGetPowervsWorkspaceResultOutput

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

    public static class GetPdrGetPowervsWorkspace 
    {
        public static Task<GetPdrGetPowervsWorkspaceResult> InvokeAsync(GetPdrGetPowervsWorkspaceArgs args, InvokeOptions? opts = null)
        public static Output<GetPdrGetPowervsWorkspaceResult> Invoke(GetPdrGetPowervsWorkspaceInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetPdrGetPowervsWorkspaceResult> getPdrGetPowervsWorkspace(GetPdrGetPowervsWorkspaceArgs args, InvokeOptions options)
    public static Output<GetPdrGetPowervsWorkspaceResult> getPdrGetPowervsWorkspace(GetPdrGetPowervsWorkspaceArgs args, InvokeOptions options)
    
    fn::invoke:
      function: ibm:index/getPdrGetPowervsWorkspace:getPdrGetPowervsWorkspace
      arguments:
        # arguments dictionary

    The following arguments are supported:

    InstanceId string
    instance id of instance to provision.
    LocationId string
    Location ID value.
    AcceptLanguage string
    Id string
    (String) The unique identifier of the DR workspace.
    InstanceId string
    instance id of instance to provision.
    LocationId string
    Location ID value.
    AcceptLanguage string
    Id string
    (String) The unique identifier of the DR workspace.
    instanceId String
    instance id of instance to provision.
    locationId String
    Location ID value.
    acceptLanguage String
    id String
    (String) The unique identifier of the DR workspace.
    instanceId string
    instance id of instance to provision.
    locationId string
    Location ID value.
    acceptLanguage string
    id string
    (String) The unique identifier of the DR workspace.
    instance_id str
    instance id of instance to provision.
    location_id str
    Location ID value.
    accept_language str
    id str
    (String) The unique identifier of the DR workspace.
    instanceId String
    instance id of instance to provision.
    locationId String
    Location ID value.
    acceptLanguage String
    id String
    (String) The unique identifier of the DR workspace.

    getPdrGetPowervsWorkspace Result

    The following output properties are available:

    DrStandbyWorkspaceDescription string
    (String) Description of Standby Workspace.
    DrStandbyWorkspaces List<GetPdrGetPowervsWorkspaceDrStandbyWorkspace>
    (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
    DrWorkspaceDescription string
    (String) Description of Workspace.
    DrWorkspaces List<GetPdrGetPowervsWorkspaceDrWorkspace>
    (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
    Id string
    (String) The unique identifier of the DR workspace.
    InstanceId string
    LocationId string
    AcceptLanguage string
    DrStandbyWorkspaceDescription string
    (String) Description of Standby Workspace.
    DrStandbyWorkspaces []GetPdrGetPowervsWorkspaceDrStandbyWorkspace
    (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
    DrWorkspaceDescription string
    (String) Description of Workspace.
    DrWorkspaces []GetPdrGetPowervsWorkspaceDrWorkspace
    (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
    Id string
    (String) The unique identifier of the DR workspace.
    InstanceId string
    LocationId string
    AcceptLanguage string
    drStandbyWorkspaceDescription String
    (String) Description of Standby Workspace.
    drStandbyWorkspaces List<GetPdrGetPowervsWorkspaceDrStandbyWorkspace>
    (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
    drWorkspaceDescription String
    (String) Description of Workspace.
    drWorkspaces List<GetPdrGetPowervsWorkspaceDrWorkspace>
    (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
    id String
    (String) The unique identifier of the DR workspace.
    instanceId String
    locationId String
    acceptLanguage String
    drStandbyWorkspaceDescription string
    (String) Description of Standby Workspace.
    drStandbyWorkspaces GetPdrGetPowervsWorkspaceDrStandbyWorkspace[]
    (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
    drWorkspaceDescription string
    (String) Description of Workspace.
    drWorkspaces GetPdrGetPowervsWorkspaceDrWorkspace[]
    (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
    id string
    (String) The unique identifier of the DR workspace.
    instanceId string
    locationId string
    acceptLanguage string
    dr_standby_workspace_description str
    (String) Description of Standby Workspace.
    dr_standby_workspaces Sequence[GetPdrGetPowervsWorkspaceDrStandbyWorkspace]
    (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
    dr_workspace_description str
    (String) Description of Workspace.
    dr_workspaces Sequence[GetPdrGetPowervsWorkspaceDrWorkspace]
    (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
    id str
    (String) The unique identifier of the DR workspace.
    instance_id str
    location_id str
    accept_language str
    drStandbyWorkspaceDescription String
    (String) Description of Standby Workspace.
    drStandbyWorkspaces List<Property Map>
    (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
    drWorkspaceDescription String
    (String) Description of Workspace.
    drWorkspaces List<Property Map>
    (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
    id String
    (String) The unique identifier of the DR workspace.
    instanceId String
    locationId String
    acceptLanguage String

    Supporting Types

    GetPdrGetPowervsWorkspaceDrStandbyWorkspace

    Details List<GetPdrGetPowervsWorkspaceDrStandbyWorkspaceDetail>
    (List) The detailed information about the DR workspace. Nested schema for details:
    Id string
    (String) The unique identifier of the DR workspace.
    Locations List<GetPdrGetPowervsWorkspaceDrStandbyWorkspaceLocation>
    (List) The location information of the DR workspace. Nested schema for location:
    Name string
    (String) The name of the DR workspace.
    Status string
    (String) The status of the DR workspace.
    Details []GetPdrGetPowervsWorkspaceDrStandbyWorkspaceDetail
    (List) The detailed information about the DR workspace. Nested schema for details:
    Id string
    (String) The unique identifier of the DR workspace.
    Locations []GetPdrGetPowervsWorkspaceDrStandbyWorkspaceLocation
    (List) The location information of the DR workspace. Nested schema for location:
    Name string
    (String) The name of the DR workspace.
    Status string
    (String) The status of the DR workspace.
    details List<GetPdrGetPowervsWorkspaceDrStandbyWorkspaceDetail>
    (List) The detailed information about the DR workspace. Nested schema for details:
    id String
    (String) The unique identifier of the DR workspace.
    locations List<GetPdrGetPowervsWorkspaceDrStandbyWorkspaceLocation>
    (List) The location information of the DR workspace. Nested schema for location:
    name String
    (String) The name of the DR workspace.
    status String
    (String) The status of the DR workspace.
    details GetPdrGetPowervsWorkspaceDrStandbyWorkspaceDetail[]
    (List) The detailed information about the DR workspace. Nested schema for details:
    id string
    (String) The unique identifier of the DR workspace.
    locations GetPdrGetPowervsWorkspaceDrStandbyWorkspaceLocation[]
    (List) The location information of the DR workspace. Nested schema for location:
    name string
    (String) The name of the DR workspace.
    status string
    (String) The status of the DR workspace.
    details Sequence[GetPdrGetPowervsWorkspaceDrStandbyWorkspaceDetail]
    (List) The detailed information about the DR workspace. Nested schema for details:
    id str
    (String) The unique identifier of the DR workspace.
    locations Sequence[GetPdrGetPowervsWorkspaceDrStandbyWorkspaceLocation]
    (List) The location information of the DR workspace. Nested schema for location:
    name str
    (String) The name of the DR workspace.
    status str
    (String) The status of the DR workspace.
    details List<Property Map>
    (List) The detailed information about the DR workspace. Nested schema for details:
    id String
    (String) The unique identifier of the DR workspace.
    locations List<Property Map>
    (List) The location information of the DR workspace. Nested schema for location:
    name String
    (String) The name of the DR workspace.
    status String
    (String) The status of the DR workspace.

    GetPdrGetPowervsWorkspaceDrStandbyWorkspaceDetail

    Crn string
    (String) Cloud Resource Name (CRN) of the DR workspace.
    Crn string
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn String
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn string
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn str
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn String
    (String) Cloud Resource Name (CRN) of the DR workspace.

    GetPdrGetPowervsWorkspaceDrStandbyWorkspaceLocation

    Region string
    (String) The region identifier of the DR location.
    Type string
    (String) The type of location (e.g., data-center, cloud-region).
    Url string
    (String) The URL endpoint to access the DR location.
    Region string
    (String) The region identifier of the DR location.
    Type string
    (String) The type of location (e.g., data-center, cloud-region).
    Url string
    (String) The URL endpoint to access the DR location.
    region String
    (String) The region identifier of the DR location.
    type String
    (String) The type of location (e.g., data-center, cloud-region).
    url String
    (String) The URL endpoint to access the DR location.
    region string
    (String) The region identifier of the DR location.
    type string
    (String) The type of location (e.g., data-center, cloud-region).
    url string
    (String) The URL endpoint to access the DR location.
    region str
    (String) The region identifier of the DR location.
    type str
    (String) The type of location (e.g., data-center, cloud-region).
    url str
    (String) The URL endpoint to access the DR location.
    region String
    (String) The region identifier of the DR location.
    type String
    (String) The type of location (e.g., data-center, cloud-region).
    url String
    (String) The URL endpoint to access the DR location.

    GetPdrGetPowervsWorkspaceDrWorkspace

    Default bool
    (Boolean) Indicates if this is the default DR workspace.
    Details List<GetPdrGetPowervsWorkspaceDrWorkspaceDetail>
    (List) The detailed information about the DR workspace. Nested schema for details:
    Id string
    (String) The unique identifier of the DR workspace.
    Locations List<GetPdrGetPowervsWorkspaceDrWorkspaceLocation>
    (List) The location information of the DR workspace. Nested schema for location:
    Name string
    (String) The name of the DR workspace.
    Status string
    (String) The status of the DR workspace.
    Default bool
    (Boolean) Indicates if this is the default DR workspace.
    Details []GetPdrGetPowervsWorkspaceDrWorkspaceDetail
    (List) The detailed information about the DR workspace. Nested schema for details:
    Id string
    (String) The unique identifier of the DR workspace.
    Locations []GetPdrGetPowervsWorkspaceDrWorkspaceLocation
    (List) The location information of the DR workspace. Nested schema for location:
    Name string
    (String) The name of the DR workspace.
    Status string
    (String) The status of the DR workspace.
    default_ Boolean
    (Boolean) Indicates if this is the default DR workspace.
    details List<GetPdrGetPowervsWorkspaceDrWorkspaceDetail>
    (List) The detailed information about the DR workspace. Nested schema for details:
    id String
    (String) The unique identifier of the DR workspace.
    locations List<GetPdrGetPowervsWorkspaceDrWorkspaceLocation>
    (List) The location information of the DR workspace. Nested schema for location:
    name String
    (String) The name of the DR workspace.
    status String
    (String) The status of the DR workspace.
    default boolean
    (Boolean) Indicates if this is the default DR workspace.
    details GetPdrGetPowervsWorkspaceDrWorkspaceDetail[]
    (List) The detailed information about the DR workspace. Nested schema for details:
    id string
    (String) The unique identifier of the DR workspace.
    locations GetPdrGetPowervsWorkspaceDrWorkspaceLocation[]
    (List) The location information of the DR workspace. Nested schema for location:
    name string
    (String) The name of the DR workspace.
    status string
    (String) The status of the DR workspace.
    default bool
    (Boolean) Indicates if this is the default DR workspace.
    details Sequence[GetPdrGetPowervsWorkspaceDrWorkspaceDetail]
    (List) The detailed information about the DR workspace. Nested schema for details:
    id str
    (String) The unique identifier of the DR workspace.
    locations Sequence[GetPdrGetPowervsWorkspaceDrWorkspaceLocation]
    (List) The location information of the DR workspace. Nested schema for location:
    name str
    (String) The name of the DR workspace.
    status str
    (String) The status of the DR workspace.
    default Boolean
    (Boolean) Indicates if this is the default DR workspace.
    details List<Property Map>
    (List) The detailed information about the DR workspace. Nested schema for details:
    id String
    (String) The unique identifier of the DR workspace.
    locations List<Property Map>
    (List) The location information of the DR workspace. Nested schema for location:
    name String
    (String) The name of the DR workspace.
    status String
    (String) The status of the DR workspace.

    GetPdrGetPowervsWorkspaceDrWorkspaceDetail

    Crn string
    (String) Cloud Resource Name (CRN) of the DR workspace.
    Crn string
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn String
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn string
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn str
    (String) Cloud Resource Name (CRN) of the DR workspace.
    crn String
    (String) Cloud Resource Name (CRN) of the DR workspace.

    GetPdrGetPowervsWorkspaceDrWorkspaceLocation

    Region string
    (String) The region identifier of the DR location.
    Type string
    (String) The type of location (e.g., data-center, cloud-region).
    Url string
    (String) The URL endpoint to access the DR location.
    Region string
    (String) The region identifier of the DR location.
    Type string
    (String) The type of location (e.g., data-center, cloud-region).
    Url string
    (String) The URL endpoint to access the DR location.
    region String
    (String) The region identifier of the DR location.
    type String
    (String) The type of location (e.g., data-center, cloud-region).
    url String
    (String) The URL endpoint to access the DR location.
    region string
    (String) The region identifier of the DR location.
    type string
    (String) The type of location (e.g., data-center, cloud-region).
    url string
    (String) The URL endpoint to access the DR location.
    region str
    (String) The region identifier of the DR location.
    type str
    (String) The type of location (e.g., data-center, cloud-region).
    url str
    (String) The URL endpoint to access the DR location.
    region String
    (String) The region identifier of the DR location.
    type String
    (String) The type of location (e.g., data-center, cloud-region).
    url String
    (String) The URL endpoint to access the DR location.

    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