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 disaster recovery (DR) locations available for the specified service instance.
This data source is deprecated and will be removed in the next major version. Use
ibm.getPdrDrLocationsinstead.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const pdrGetDrLocations = ibm.getPdrGetDrLocations({
instanceId: "123456d3-1122-3344-b67d-4389b44b7bf9",
});
import pulumi
import pulumi_ibm as ibm
pdr_get_dr_locations = ibm.get_pdr_get_dr_locations(instance_id="123456d3-1122-3344-b67d-4389b44b7bf9")
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.GetPdrGetDrLocations(ctx, &ibm.GetPdrGetDrLocationsArgs{
InstanceId: "123456d3-1122-3344-b67d-4389b44b7bf9",
}, 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 pdrGetDrLocations = Ibm.GetPdrGetDrLocations.Invoke(new()
{
InstanceId = "123456d3-1122-3344-b67d-4389b44b7bf9",
});
});
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.GetPdrGetDrLocationsArgs;
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 pdrGetDrLocations = IbmFunctions.getPdrGetDrLocations(GetPdrGetDrLocationsArgs.builder()
.instanceId("123456d3-1122-3344-b67d-4389b44b7bf9")
.build());
}
}
variables:
pdrGetDrLocations:
fn::invoke:
function: ibm:getPdrGetDrLocations
arguments:
instanceId: 123456d3-1122-3344-b67d-4389b44b7bf9
Using getPdrGetDrLocations
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 getPdrGetDrLocations(args: GetPdrGetDrLocationsArgs, opts?: InvokeOptions): Promise<GetPdrGetDrLocationsResult>
function getPdrGetDrLocationsOutput(args: GetPdrGetDrLocationsOutputArgs, opts?: InvokeOptions): Output<GetPdrGetDrLocationsResult>def get_pdr_get_dr_locations(accept_language: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPdrGetDrLocationsResult
def get_pdr_get_dr_locations_output(accept_language: pulumi.Input[Optional[str]] = None,
id: pulumi.Input[Optional[str]] = None,
instance_id: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetPdrGetDrLocationsResult]func GetPdrGetDrLocations(ctx *Context, args *GetPdrGetDrLocationsArgs, opts ...InvokeOption) (*GetPdrGetDrLocationsResult, error)
func GetPdrGetDrLocationsOutput(ctx *Context, args *GetPdrGetDrLocationsOutputArgs, opts ...InvokeOption) GetPdrGetDrLocationsResultOutput> Note: This function is named GetPdrGetDrLocations in the Go SDK.
public static class GetPdrGetDrLocations
{
public static Task<GetPdrGetDrLocationsResult> InvokeAsync(GetPdrGetDrLocationsArgs args, InvokeOptions? opts = null)
public static Output<GetPdrGetDrLocationsResult> Invoke(GetPdrGetDrLocationsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPdrGetDrLocationsResult> getPdrGetDrLocations(GetPdrGetDrLocationsArgs args, InvokeOptions options)
public static Output<GetPdrGetDrLocationsResult> getPdrGetDrLocations(GetPdrGetDrLocationsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPdrGetDrLocations:getPdrGetDrLocations
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - ID of the service instance.
- 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
- (String) Unique identifier of the DR location.
- Instance
Id string - ID of the service instance.
- 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
- (String) Unique identifier of the DR location.
- instance
Id String - ID of the service instance.
- 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
- (String) Unique identifier of the DR location.
- instance
Id string - ID of the service instance.
- 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
- (String) Unique identifier of the DR location.
- instance_
id str - ID of the service instance.
- 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
- (String) Unique identifier of the DR location.
- instance
Id String - ID of the service instance.
- 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
- (String) Unique identifier of the DR location.
getPdrGetDrLocations Result
The following output properties are available:
- Dr
Locations List<GetPdr Get Dr Locations Dr Location> - (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
- Id string
- (String) Unique identifier of the DR location.
- Instance
Id string - Accept
Language string
- Dr
Locations []GetPdr Get Dr Locations Dr Location - (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
- Id string
- (String) Unique identifier of the DR location.
- Instance
Id string - Accept
Language string
- dr
Locations List<GetPdr Get Dr Locations Dr Location> - (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
- id String
- (String) Unique identifier of the DR location.
- instance
Id String - accept
Language String
- dr
Locations GetPdr Get Dr Locations Dr Location[] - (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
- id string
- (String) Unique identifier of the DR location.
- instance
Id string - accept
Language string
- dr_
locations Sequence[GetPdr Get Dr Locations Dr Location] - (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
- id str
- (String) Unique identifier of the DR location.
- instance_
id str - accept_
language str
- dr
Locations List<Property Map> - (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
- id String
- (String) Unique identifier of the DR location.
- instance
Id String - accept
Language String
Supporting Types
GetPdrGetDrLocationsDrLocation
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
