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 pdr_get_grs_location_pairs. 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 pdrGetGrsLocationPairs = ibm.getPdrGetGrsLocationPairs({
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_grs_location_pairs = ibm.get_pdr_get_grs_location_pairs(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.GetPdrGetGrsLocationPairs(ctx, &ibm.GetPdrGetGrsLocationPairsArgs{
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 pdrGetGrsLocationPairs = Ibm.GetPdrGetGrsLocationPairs.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.GetPdrGetGrsLocationPairsArgs;
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 pdrGetGrsLocationPairs = IbmFunctions.getPdrGetGrsLocationPairs(GetPdrGetGrsLocationPairsArgs.builder()
.instanceId("crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::")
.build());
}
}
variables:
pdrGetGrsLocationPairs:
fn::invoke:
function: ibm:getPdrGetGrsLocationPairs
arguments:
instanceId: 'crn:v1:staging:public:power-dr-automation:global:a/a123456fb04ceebfb4a9fd38c22334455:123456d3-1122-3344-b67d-4389b44b7bf9::'
Using getPdrGetGrsLocationPairs
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 getPdrGetGrsLocationPairs(args: GetPdrGetGrsLocationPairsArgs, opts?: InvokeOptions): Promise<GetPdrGetGrsLocationPairsResult>
function getPdrGetGrsLocationPairsOutput(args: GetPdrGetGrsLocationPairsOutputArgs, opts?: InvokeOptions): Output<GetPdrGetGrsLocationPairsResult>def get_pdr_get_grs_location_pairs(accept_language: Optional[str] = None,
id: Optional[str] = None,
instance_id: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetPdrGetGrsLocationPairsResult
def get_pdr_get_grs_location_pairs_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[GetPdrGetGrsLocationPairsResult]func GetPdrGetGrsLocationPairs(ctx *Context, args *GetPdrGetGrsLocationPairsArgs, opts ...InvokeOption) (*GetPdrGetGrsLocationPairsResult, error)
func GetPdrGetGrsLocationPairsOutput(ctx *Context, args *GetPdrGetGrsLocationPairsOutputArgs, opts ...InvokeOption) GetPdrGetGrsLocationPairsResultOutput> Note: This function is named GetPdrGetGrsLocationPairs in the Go SDK.
public static class GetPdrGetGrsLocationPairs
{
public static Task<GetPdrGetGrsLocationPairsResult> InvokeAsync(GetPdrGetGrsLocationPairsArgs args, InvokeOptions? opts = null)
public static Output<GetPdrGetGrsLocationPairsResult> Invoke(GetPdrGetGrsLocationPairsInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetPdrGetGrsLocationPairsResult> getPdrGetGrsLocationPairs(GetPdrGetGrsLocationPairsArgs args, InvokeOptions options)
public static Output<GetPdrGetGrsLocationPairsResult> getPdrGetGrsLocationPairs(GetPdrGetGrsLocationPairsArgs args, InvokeOptions options)
fn::invoke:
function: ibm:index/getPdrGetGrsLocationPairs:getPdrGetGrsLocationPairs
arguments:
# arguments dictionaryThe following arguments are supported:
- Instance
Id string - instance id of instance to provision.
- Accept
Language string - The language requested for the return document.
- Id string
- The unique identifier of the pdr_get_grs_location_pairs.
- Instance
Id string - instance id of instance to provision.
- Accept
Language string - The language requested for the return document.
- Id string
- The unique identifier of the pdr_get_grs_location_pairs.
- instance
Id String - instance id of instance to provision.
- accept
Language String - The language requested for the return document.
- id String
- The unique identifier of the pdr_get_grs_location_pairs.
- instance
Id string - instance id of instance to provision.
- accept
Language string - The language requested for the return document.
- id string
- The unique identifier of the pdr_get_grs_location_pairs.
- instance_
id str - instance id of instance to provision.
- accept_
language str - The language requested for the return document.
- id str
- The unique identifier of the pdr_get_grs_location_pairs.
- instance
Id String - instance id of instance to provision.
- accept
Language String - The language requested for the return document.
- id String
- The unique identifier of the pdr_get_grs_location_pairs.
getPdrGetGrsLocationPairs Result
The following output properties are available:
- Id string
- The unique identifier of the pdr_get_grs_location_pairs.
- Instance
Id string - Location
Pairs Dictionary<string, string> - (Map) A map of GRS location pairs where each key is a primary location and the value is its paired location.
- Accept
Language string
- Id string
- The unique identifier of the pdr_get_grs_location_pairs.
- Instance
Id string - Location
Pairs map[string]string - (Map) A map of GRS location pairs where each key is a primary location and the value is its paired location.
- Accept
Language string
- id String
- The unique identifier of the pdr_get_grs_location_pairs.
- instance
Id String - location
Pairs Map<String,String> - (Map) A map of GRS location pairs where each key is a primary location and the value is its paired location.
- accept
Language String
- id string
- The unique identifier of the pdr_get_grs_location_pairs.
- instance
Id string - location
Pairs {[key: string]: string} - (Map) A map of GRS location pairs where each key is a primary location and the value is its paired location.
- accept
Language string
- id str
- The unique identifier of the pdr_get_grs_location_pairs.
- instance_
id str - location_
pairs Mapping[str, str] - (Map) A map of GRS location pairs where each key is a primary location and the value is its paired location.
- accept_
language str
- id String
- The unique identifier of the pdr_get_grs_location_pairs.
- instance
Id String - location
Pairs Map<String> - (Map) A map of GRS location pairs where each key is a primary location and the value is its paired location.
- accept
Language String
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
