Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
published on Thursday, Nov 5, 2026 by ibm-cloud
ibm
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
published on Thursday, Nov 5, 2026 by ibm-cloud
Retrieve information about a specific IBM Cloud Transit Gateway redundancy group by name. For more information, about transit gateways, see managing transit gateways.
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as ibm from "@pulumi/ibm";
const rg = ibm.getTgRedundancyGroup({
name: "my-redundancy-group",
});
export const redundancyGroupId = rg.then(rg => rg.id);
import pulumi
import pulumi_ibm as ibm
rg = ibm.get_tg_redundancy_group(name="my-redundancy-group")
pulumi.export("redundancyGroupId", rg.id)
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 {
rg, err := ibm.GetTgRedundancyGroup(ctx, &ibm.GetTgRedundancyGroupArgs{
Name: "my-redundancy-group",
}, nil)
if err != nil {
return err
}
ctx.Export("redundancyGroupId", rg.Id)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Ibm = Pulumi.Ibm;
return await Deployment.RunAsync(() =>
{
var rg = Ibm.GetTgRedundancyGroup.Invoke(new()
{
Name = "my-redundancy-group",
});
return new Dictionary<string, object?>
{
["redundancyGroupId"] = rg.Apply(getTgRedundancyGroupResult => getTgRedundancyGroupResult.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.GetTgRedundancyGroupArgs;
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 rg = IbmFunctions.getTgRedundancyGroup(GetTgRedundancyGroupArgs.builder()
.name("my-redundancy-group")
.build());
ctx.export("redundancyGroupId", rg.id());
}
}
variables:
rg:
fn::invoke:
function: ibm:getTgRedundancyGroup
arguments:
name: my-redundancy-group
outputs:
redundancyGroupId: ${rg.id}
Example coming soon!
Using getTgRedundancyGroup
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 getTgRedundancyGroup(args: GetTgRedundancyGroupArgs, opts?: InvokeOptions): Promise<GetTgRedundancyGroupResult>
function getTgRedundancyGroupOutput(args: GetTgRedundancyGroupOutputArgs, opts?: InvokeOutputOptions): Output<GetTgRedundancyGroupResult>def get_tg_redundancy_group(name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTgRedundancyGroupResult
def get_tg_redundancy_group_output(name: pulumi.Input[Optional[str]] = None,
opts: Optional[InvokeOutputOptions] = None) -> Output[GetTgRedundancyGroupResult]func GetTgRedundancyGroup(ctx *Context, args *GetTgRedundancyGroupArgs, opts ...InvokeOption) (*GetTgRedundancyGroupResult, error)
func GetTgRedundancyGroupOutput(ctx *Context, args *GetTgRedundancyGroupOutputArgs, opts ...InvokeOption) GetTgRedundancyGroupResultOutput> Note: This function is named GetTgRedundancyGroup in the Go SDK.
public static class GetTgRedundancyGroup
{
public static Task<GetTgRedundancyGroupResult> InvokeAsync(GetTgRedundancyGroupArgs args, InvokeOptions? opts = null)
public static Output<GetTgRedundancyGroupResult> Invoke(GetTgRedundancyGroupInvokeArgs args, InvokeOptions? opts = null)
public static Output<GetTgRedundancyGroupResult> Invoke(GetTgRedundancyGroupInvokeArgs args, InvokeOutputOptions opts)
}public static CompletableFuture<GetTgRedundancyGroupResult> getTgRedundancyGroup(GetTgRedundancyGroupArgs args, InvokeOptions options)
public static Output<GetTgRedundancyGroupResult> getTgRedundancyGroup(GetTgRedundancyGroupArgs args, InvokeOptions options)
public static Output<GetTgRedundancyGroupResult> getTgRedundancyGroup(GetTgRedundancyGroupArgs args, InvokeOutputOptions options)
fn::invoke:
function: ibm:index/getTgRedundancyGroup:getTgRedundancyGroup
arguments:
# arguments dictionarydata "ibm_get_tg_redundancy_group" "name" {
# arguments
}The following arguments are supported:
- Name string
- The name of the redundancy group.
- Name string
- The name of the redundancy group.
- name string
- The name of the redundancy group.
- name String
- The name of the redundancy group.
- name string
- The name of the redundancy group.
- name str
- The name of the redundancy group.
- name String
- The name of the redundancy group.
getTgRedundancyGroup Result
The following output properties are available:
- created_
at string - (String) The date and time the redundancy group was created.
- id string
- (String) The unique identifier of the redundancy group.
- name string
- updated_
at string - (String) The date and time the redundancy group was last updated.
- created_
at str - (String) The date and time the redundancy group was created.
- id str
- (String) The unique identifier of the redundancy group.
- name str
- updated_
at str - (String) The date and time the redundancy group was last updated.
Package Details
- Repository
- ibm ibm-cloud/terraform-provider-ibm
- License
- Notes
- This Pulumi package is based on the
ibmTerraform Provider.
ibm
Viewing docs for ibm 2.9.0
published on Thursday, Nov 5, 2026 by ibm-cloud
published on Thursday, Nov 5, 2026 by ibm-cloud