1. Packages
  2. Ibm Provider
  3. API Docs
  4. getPdrGetDrLocations
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_dr_locations. 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 pdrGetDrLocations = ibm.getPdrGetDrLocations({
        instanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    pdr_get_dr_locations = ibm.get_pdr_get_dr_locations(instance_id="crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
    
    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.GetPdrGetDrLocations(ctx, &ibm.GetPdrGetDrLocationsArgs{
    			InstanceId: "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455: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 = "crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455: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("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
                .build());
    
        }
    }
    
    variables:
      pdrGetDrLocations:
        fn::invoke:
          function: ibm:getPdrGetDrLocations
          arguments:
            instanceId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455: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: Optional[pulumi.Input[str]] = None,
                                 id: Optional[pulumi.Input[str]] = None,
                                 instance_id: Optional[pulumi.Input[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 dictionary

    The following arguments are supported:

    InstanceId string
    instance id of instance to provision.
    AcceptLanguage string
    The language requested for the return document.
    Id string
    (String) Unique identifier of the DR location.
    InstanceId string
    instance id of instance to provision.
    AcceptLanguage string
    The language requested for the return document.
    Id string
    (String) Unique identifier of the DR location.
    instanceId String
    instance id of instance to provision.
    acceptLanguage String
    The language requested for the return document.
    id String
    (String) Unique identifier of the DR location.
    instanceId string
    instance id of instance to provision.
    acceptLanguage string
    The language requested for the return document.
    id string
    (String) Unique identifier of the DR location.
    instance_id str
    instance id of instance to provision.
    accept_language str
    The language requested for the return document.
    id str
    (String) Unique identifier of the DR location.
    instanceId String
    instance id of instance to provision.
    acceptLanguage String
    The language requested for the return document.
    id String
    (String) Unique identifier of the DR location.

    getPdrGetDrLocations Result

    The following output properties are available:

    DrLocations List<GetPdrGetDrLocationsDrLocation>
    (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
    Id string
    (String) Unique identifier of the DR location.
    InstanceId string
    AcceptLanguage string
    DrLocations []GetPdrGetDrLocationsDrLocation
    (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
    Id string
    (String) Unique identifier of the DR location.
    InstanceId string
    AcceptLanguage string
    drLocations List<GetPdrGetDrLocationsDrLocation>
    (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
    id String
    (String) Unique identifier of the DR location.
    instanceId String
    acceptLanguage String
    drLocations GetPdrGetDrLocationsDrLocation[]
    (List) List of disaster recovery locations available for the service. Nested schema for dr_locations:
    id string
    (String) Unique identifier of the DR location.
    instanceId string
    acceptLanguage string
    dr_locations Sequence[GetPdrGetDrLocationsDrLocation]
    (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
    drLocations 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.
    instanceId String
    acceptLanguage String

    Supporting Types

    GetPdrGetDrLocationsDrLocation

    Id string
    (String) Unique identifier of the DR location.
    Name string
    (String) The name of the Power virtual server DR location .
    Id string
    (String) Unique identifier of the DR location.
    Name string
    (String) The name of the Power virtual server DR location .
    id String
    (String) Unique identifier of the DR location.
    name String
    (String) The name of the Power virtual server DR location .
    id string
    (String) Unique identifier of the DR location.
    name string
    (String) The name of the Power virtual server DR location .
    id str
    (String) Unique identifier of the DR location.
    name str
    (String) The name of the Power virtual server DR location .
    id String
    (String) Unique identifier of the DR location.
    name String
    (String) The name of the Power virtual server 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