ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
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 dictionaryThe following arguments are supported:
- Instance
Id string - instance id of instance to provision.
- Location
Id string - Location ID value.
- Accept
Language string - Id string
- (String) The unique identifier of the DR workspace.
- Instance
Id string - instance id of instance to provision.
- Location
Id string - Location ID value.
- Accept
Language string - Id string
- (String) The unique identifier of the DR workspace.
- instance
Id String - instance id of instance to provision.
- location
Id String - Location ID value.
- accept
Language String - id String
- (String) The unique identifier of the DR workspace.
- instance
Id string - instance id of instance to provision.
- location
Id string - Location ID value.
- accept
Language 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.
- instance
Id String - instance id of instance to provision.
- location
Id String - Location ID value.
- accept
Language String - id String
- (String) The unique identifier of the DR workspace.
getPdrGetPowervsWorkspace Result
The following output properties are available:
- Dr
Standby stringWorkspace Description - (String) Description of Standby Workspace.
- Dr
Standby List<GetWorkspaces Pdr Get Powervs Workspace Dr Standby Workspace> - (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
- Dr
Workspace stringDescription - (String) Description of Workspace.
- Dr
Workspaces List<GetPdr Get Powervs Workspace Dr Workspace> - (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
- Id string
- (String) The unique identifier of the DR workspace.
- Instance
Id string - Location
Id string - Accept
Language string
- Dr
Standby stringWorkspace Description - (String) Description of Standby Workspace.
- Dr
Standby []GetWorkspaces Pdr Get Powervs Workspace Dr Standby Workspace - (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
- Dr
Workspace stringDescription - (String) Description of Workspace.
- Dr
Workspaces []GetPdr Get Powervs Workspace Dr Workspace - (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
- Id string
- (String) The unique identifier of the DR workspace.
- Instance
Id string - Location
Id string - Accept
Language string
- dr
Standby StringWorkspace Description - (String) Description of Standby Workspace.
- dr
Standby List<GetWorkspaces Pdr Get Powervs Workspace Dr Standby Workspace> - (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
- dr
Workspace StringDescription - (String) Description of Workspace.
- dr
Workspaces List<GetPdr Get Powervs Workspace Dr Workspace> - (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
- id String
- (String) The unique identifier of the DR workspace.
- instance
Id String - location
Id String - accept
Language String
- dr
Standby stringWorkspace Description - (String) Description of Standby Workspace.
- dr
Standby GetWorkspaces Pdr Get Powervs Workspace Dr Standby Workspace[] - (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
- dr
Workspace stringDescription - (String) Description of Workspace.
- dr
Workspaces GetPdr Get Powervs Workspace Dr Workspace[] - (List) The list of primary disaster recovery workspaces. Nested schema for dr_workspaces:
- id string
- (String) The unique identifier of the DR workspace.
- instance
Id string - location
Id string - accept
Language string
- dr_
standby_ strworkspace_ description - (String) Description of Standby Workspace.
- dr_
standby_ Sequence[Getworkspaces Pdr Get Powervs Workspace Dr Standby Workspace] - (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
- dr_
workspace_ strdescription - (String) Description of Workspace.
- dr_
workspaces Sequence[GetPdr Get Powervs Workspace Dr Workspace] - (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
- dr
Standby StringWorkspace Description - (String) Description of Standby Workspace.
- dr
Standby List<Property Map>Workspaces - (List) The list of standby disaster recovery workspaces. Nested schema for dr_standby_workspaces:
- dr
Workspace StringDescription - (String) Description of Workspace.
- dr
Workspaces 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.
- instance
Id String - location
Id String - accept
Language String
Supporting Types
GetPdrGetPowervsWorkspaceDrStandbyWorkspace
- Details
List<Get
Pdr Get Powervs Workspace Dr Standby Workspace Detail> - (List) The detailed information about the DR workspace. Nested schema for details:
- Id string
- (String) The unique identifier of the DR workspace.
- Locations
List<Get
Pdr Get Powervs Workspace Dr Standby Workspace Location> - (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
[]Get
Pdr Get Powervs Workspace Dr Standby Workspace Detail - (List) The detailed information about the DR workspace. Nested schema for details:
- Id string
- (String) The unique identifier of the DR workspace.
- Locations
[]Get
Pdr Get Powervs Workspace Dr Standby Workspace Location - (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<Get
Pdr Get Powervs Workspace Dr Standby Workspace Detail> - (List) The detailed information about the DR workspace. Nested schema for details:
- id String
- (String) The unique identifier of the DR workspace.
- locations
List<Get
Pdr Get Powervs Workspace Dr Standby Workspace Location> - (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
Get
Pdr Get Powervs Workspace Dr Standby Workspace Detail[] - (List) The detailed information about the DR workspace. Nested schema for details:
- id string
- (String) The unique identifier of the DR workspace.
- locations
Get
Pdr Get Powervs Workspace Dr Standby Workspace Location[] - (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[Get
Pdr Get Powervs Workspace Dr Standby Workspace Detail] - (List) The detailed information about the DR workspace. Nested schema for details:
- id str
- (String) The unique identifier of the DR workspace.
- locations
Sequence[Get
Pdr Get Powervs Workspace Dr Standby Workspace Location] - (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
GetPdrGetPowervsWorkspaceDrWorkspace
- Default bool
- (Boolean) Indicates if this is the default DR workspace.
- Details
List<Get
Pdr Get Powervs Workspace Dr Workspace Detail> - (List) The detailed information about the DR workspace. Nested schema for details:
- Id string
- (String) The unique identifier of the DR workspace.
- Locations
List<Get
Pdr Get Powervs Workspace Dr Workspace Location> - (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
[]Get
Pdr Get Powervs Workspace Dr Workspace Detail - (List) The detailed information about the DR workspace. Nested schema for details:
- Id string
- (String) The unique identifier of the DR workspace.
- Locations
[]Get
Pdr Get Powervs Workspace Dr Workspace Location - (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<Get
Pdr Get Powervs Workspace Dr Workspace Detail> - (List) The detailed information about the DR workspace. Nested schema for details:
- id String
- (String) The unique identifier of the DR workspace.
- locations
List<Get
Pdr Get Powervs Workspace Dr Workspace Location> - (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
Get
Pdr Get Powervs Workspace Dr Workspace Detail[] - (List) The detailed information about the DR workspace. Nested schema for details:
- id string
- (String) The unique identifier of the DR workspace.
- locations
Get
Pdr Get Powervs Workspace Dr Workspace Location[] - (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[Get
Pdr Get Powervs Workspace Dr Workspace Detail] - (List) The detailed information about the DR workspace. Nested schema for details:
- id str
- (String) The unique identifier of the DR workspace.
- locations
Sequence[Get
Pdr Get Powervs Workspace Dr Workspace Location] - (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
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
ibm 1.86.0 published on Wednesday, Dec 3, 2025 by ibm-cloud
