1. Registry
  2. Packages
  3. Ibm Provider
  4. API Docs
  5. getTgRedundancyGroups
Viewing docs for ibm 2.9.0
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

    Retrieve a list of all redundancy groups in the IBM Cloud account. For more information, about transit gateways, see managing transit gateways.

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as ibm from "@pulumi/ibm";
    
    // List all redundancy groups
    const all = ibm.getTgRedundancyGroups({});
    // Filter by name
    const named = ibm.getTgRedundancyGroups({
        name: "my-redundancy-group",
    });
    
    import pulumi
    import pulumi_ibm as ibm
    
    # List all redundancy groups
    all = ibm.get_tg_redundancy_groups()
    # Filter by name
    named = ibm.get_tg_redundancy_groups(name="my-redundancy-group")
    
    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 {
    		// List all redundancy groups
    		_, err := ibm.GetTgRedundancyGroups(ctx, &ibm.GetTgRedundancyGroupsArgs{}, nil)
    		if err != nil {
    			return err
    		}
    		// Filter by name
    		_, err = ibm.GetTgRedundancyGroups(ctx, &ibm.GetTgRedundancyGroupsArgs{
    			Name: pulumi.StringRef("my-redundancy-group"),
    		}, 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(() => 
    {
        // List all redundancy groups
        var all = Ibm.GetTgRedundancyGroups.Invoke();
    
        // Filter by name
        var named = Ibm.GetTgRedundancyGroups.Invoke(new()
        {
            Name = "my-redundancy-group",
        });
    
    });
    
    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.GetTgRedundancyGroupsArgs;
    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) {
            // List all redundancy groups
            final var all = IbmFunctions.getTgRedundancyGroups(GetTgRedundancyGroupsArgs.builder()
                .build());
    
            // Filter by name
            final var named = IbmFunctions.getTgRedundancyGroups(GetTgRedundancyGroupsArgs.builder()
                .name("my-redundancy-group")
                .build());
    
        }
    }
    
    variables:
      # List all redundancy groups
      all:
        fn::invoke:
          function: ibm:getTgRedundancyGroups
          arguments: {}
      # Filter by name
      named:
        fn::invoke:
          function: ibm:getTgRedundancyGroups
          arguments:
            name: my-redundancy-group
    
    Example coming soon!
    

    Using getTgRedundancyGroups

    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 getTgRedundancyGroups(args: GetTgRedundancyGroupsArgs, opts?: InvokeOptions): Promise<GetTgRedundancyGroupsResult>
    function getTgRedundancyGroupsOutput(args: GetTgRedundancyGroupsOutputArgs, opts?: InvokeOutputOptions): Output<GetTgRedundancyGroupsResult>
    def get_tg_redundancy_groups(id: Optional[str] = None,
                                 name: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetTgRedundancyGroupsResult
    def get_tg_redundancy_groups_output(id: pulumi.Input[Optional[str]] = None,
                                 name: pulumi.Input[Optional[str]] = None,
                                 opts: Optional[InvokeOutputOptions] = None) -> Output[GetTgRedundancyGroupsResult]
    func GetTgRedundancyGroups(ctx *Context, args *GetTgRedundancyGroupsArgs, opts ...InvokeOption) (*GetTgRedundancyGroupsResult, error)
    func GetTgRedundancyGroupsOutput(ctx *Context, args *GetTgRedundancyGroupsOutputArgs, opts ...InvokeOption) GetTgRedundancyGroupsResultOutput

    > Note: This function is named GetTgRedundancyGroups in the Go SDK.

    public static class GetTgRedundancyGroups 
    {
        public static Task<GetTgRedundancyGroupsResult> InvokeAsync(GetTgRedundancyGroupsArgs args, InvokeOptions? opts = null)
        public static Output<GetTgRedundancyGroupsResult> Invoke(GetTgRedundancyGroupsInvokeArgs args, InvokeOptions? opts = null)
        public static Output<GetTgRedundancyGroupsResult> Invoke(GetTgRedundancyGroupsInvokeArgs args, InvokeOutputOptions opts)
    }
    public static CompletableFuture<GetTgRedundancyGroupsResult> getTgRedundancyGroups(GetTgRedundancyGroupsArgs args, InvokeOptions options)
    public static Output<GetTgRedundancyGroupsResult> getTgRedundancyGroups(GetTgRedundancyGroupsArgs args, InvokeOptions options)
    public static Output<GetTgRedundancyGroupsResult> getTgRedundancyGroups(GetTgRedundancyGroupsArgs args, InvokeOutputOptions options)
    
    fn::invoke:
      function: ibm:index/getTgRedundancyGroups:getTgRedundancyGroups
      arguments:
        # arguments dictionary
    data "ibm_get_tg_redundancy_groups" "name" {
        # arguments
    }

    The following arguments are supported:

    Id string
    (String) The unique identifier of the redundancy group.
    Name string
    Filter the results to only the redundancy group with this name.
    Id string
    (String) The unique identifier of the redundancy group.
    Name string
    Filter the results to only the redundancy group with this name.
    id string
    (String) The unique identifier of the redundancy group.
    name string
    Filter the results to only the redundancy group with this name.
    id String
    (String) The unique identifier of the redundancy group.
    name String
    Filter the results to only the redundancy group with this name.
    id string
    (String) The unique identifier of the redundancy group.
    name string
    Filter the results to only the redundancy group with this name.
    id str
    (String) The unique identifier of the redundancy group.
    name str
    Filter the results to only the redundancy group with this name.
    id String
    (String) The unique identifier of the redundancy group.
    name String
    Filter the results to only the redundancy group with this name.

    getTgRedundancyGroups Result

    The following output properties are available:

    Id string
    (String) The unique identifier of the redundancy group.
    RedundancyGroups List<GetTgRedundancyGroupsRedundancyGroup>
    (List) List of redundancy groups.
    Name string
    (String) The name of the redundancy group.
    Id string
    (String) The unique identifier of the redundancy group.
    RedundancyGroups []GetTgRedundancyGroupsRedundancyGroup
    (List) List of redundancy groups.
    Name string
    (String) The name of the redundancy group.
    id string
    (String) The unique identifier of the redundancy group.
    redundancy_groups list(object)
    (List) List of redundancy groups.
    name string
    (String) The name of the redundancy group.
    id String
    (String) The unique identifier of the redundancy group.
    redundancyGroups List<GetTgRedundancyGroupsRedundancyGroup>
    (List) List of redundancy groups.
    name String
    (String) The name of the redundancy group.
    id string
    (String) The unique identifier of the redundancy group.
    redundancyGroups GetTgRedundancyGroupsRedundancyGroup[]
    (List) List of redundancy groups.
    name string
    (String) The name of the redundancy group.
    id str
    (String) The unique identifier of the redundancy group.
    redundancy_groups Sequence[GetTgRedundancyGroupsRedundancyGroup]
    (List) List of redundancy groups.
    name str
    (String) The name of the redundancy group.
    id String
    (String) The unique identifier of the redundancy group.
    redundancyGroups List<Property Map>
    (List) List of redundancy groups.
    name String
    (String) The name of the redundancy group.

    Supporting Types

    GetTgRedundancyGroupsRedundancyGroup

    CreatedAt string
    (String) The date and time the redundancy group was created.
    Id string
    (String) The unique identifier of the redundancy group.
    Name string
    Filter the results to only the redundancy group with this name.
    UpdatedAt string
    (String) The date and time the redundancy group was last updated.
    CreatedAt string
    (String) The date and time the redundancy group was created.
    Id string
    (String) The unique identifier of the redundancy group.
    Name string
    Filter the results to only the redundancy group with this name.
    UpdatedAt string
    (String) The date and time the redundancy group was last updated.
    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
    Filter the results to only the redundancy group with this name.
    updated_at string
    (String) The date and time the redundancy group was last updated.
    createdAt String
    (String) The date and time the redundancy group was created.
    id String
    (String) The unique identifier of the redundancy group.
    name String
    Filter the results to only the redundancy group with this name.
    updatedAt String
    (String) The date and time the redundancy group was last updated.
    createdAt string
    (String) The date and time the redundancy group was created.
    id string
    (String) The unique identifier of the redundancy group.
    name string
    Filter the results to only the redundancy group with this name.
    updatedAt 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
    Filter the results to only the redundancy group with this name.
    updated_at str
    (String) The date and time the redundancy group was last updated.
    createdAt String
    (String) The date and time the redundancy group was created.
    id String
    (String) The unique identifier of the redundancy group.
    name String
    Filter the results to only the redundancy group with this name.
    updatedAt String
    (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 ibm Terraform Provider.
    ibm
    Viewing docs for ibm 2.9.0
    published on Thursday, Nov 5, 2026 by ibm-cloud

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial