1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTdmqRocketmqGroup
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getTdmqRocketmqGroup

Explore with Pulumi AI

tencentcloud logo
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

    Use this data source to query detailed information of tdmqRocketmq group

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const exampleTdmqRocketmqCluster = new tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster", {
        clusterName: "tf_example",
        remark: "remark.",
    });
    const exampleTdmqRocketmqNamespace = new tencentcloud.TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace", {
        clusterId: exampleTdmqRocketmqCluster.clusterId,
        namespaceName: "tf_example",
        remark: "remark.",
    });
    const exampleTdmqRocketmqGroup = tencentcloud.getTdmqRocketmqGroupOutput({
        clusterId: exampleTdmqRocketmqCluster.clusterId,
        namespaceId: exampleTdmqRocketmqNamespace.namespaceName,
        filterGroup: exampleIndex / tdmqRocketmqGroupTdmqRocketmqGroup.groupName,
    });
    const exampleIndex_tdmqRocketmqGroupTdmqRocketmqGroup = new tencentcloud.TdmqRocketmqGroup("exampleIndex/tdmqRocketmqGroupTdmqRocketmqGroup", {
        groupName: "tf_example",
        namespace: exampleTdmqRocketmqNamespace.namespaceName,
        readEnable: true,
        broadcastEnable: true,
        clusterId: exampleTdmqRocketmqCluster.clusterId,
        remark: "remark.",
    });
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    example_tdmq_rocketmq_cluster = tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster",
        cluster_name="tf_example",
        remark="remark.")
    example_tdmq_rocketmq_namespace = tencentcloud.TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace",
        cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
        namespace_name="tf_example",
        remark="remark.")
    example_tdmq_rocketmq_group = tencentcloud.get_tdmq_rocketmq_group_output(cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
        namespace_id=example_tdmq_rocketmq_namespace.namespace_name,
        filter_group=example_index / tdmq_rocketmq_group_tdmq_rocketmq_group["groupName"])
    example_index_tdmq_rocketmq_group_tdmq_rocketmq_group = tencentcloud.TdmqRocketmqGroup("exampleIndex/tdmqRocketmqGroupTdmqRocketmqGroup",
        group_name="tf_example",
        namespace=example_tdmq_rocketmq_namespace.namespace_name,
        read_enable=True,
        broadcast_enable=True,
        cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
        remark="remark.")
    
    package main
    
    import (
    	"github.com/pulumi/pulumi-terraform-provider/sdks/go/tencentcloud/tencentcloud"
    	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
    )
    
    func main() {
    	pulumi.Run(func(ctx *pulumi.Context) error {
    		exampleTdmqRocketmqCluster, err := tencentcloud.NewTdmqRocketmqCluster(ctx, "exampleTdmqRocketmqCluster", &tencentcloud.TdmqRocketmqClusterArgs{
    			ClusterName: pulumi.String("tf_example"),
    			Remark:      pulumi.String("remark."),
    		})
    		if err != nil {
    			return err
    		}
    		exampleTdmqRocketmqNamespace, err := tencentcloud.NewTdmqRocketmqNamespace(ctx, "exampleTdmqRocketmqNamespace", &tencentcloud.TdmqRocketmqNamespaceArgs{
    			ClusterId:     exampleTdmqRocketmqCluster.ClusterId,
    			NamespaceName: pulumi.String("tf_example"),
    			Remark:        pulumi.String("remark."),
    		})
    		if err != nil {
    			return err
    		}
    		_ = tencentcloud.LookupTdmqRocketmqGroupOutput(ctx, tencentcloud.GetTdmqRocketmqGroupOutputArgs{
    			ClusterId:   exampleTdmqRocketmqCluster.ClusterId,
    			NamespaceId: exampleTdmqRocketmqNamespace.NamespaceName,
    			FilterGroup: pulumi.String(exampleIndex / tdmqRocketmqGroupTdmqRocketmqGroup.GroupName),
    		}, nil)
    		_, err = tencentcloud.NewTdmqRocketmqGroup(ctx, "exampleIndex/tdmqRocketmqGroupTdmqRocketmqGroup", &tencentcloud.TdmqRocketmqGroupArgs{
    			GroupName:       pulumi.String("tf_example"),
    			Namespace:       exampleTdmqRocketmqNamespace.NamespaceName,
    			ReadEnable:      pulumi.Bool(true),
    			BroadcastEnable: pulumi.Bool(true),
    			ClusterId:       exampleTdmqRocketmqCluster.ClusterId,
    			Remark:          pulumi.String("remark."),
    		})
    		if err != nil {
    			return err
    		}
    		return nil
    	})
    }
    
    using System.Collections.Generic;
    using System.Linq;
    using Pulumi;
    using Tencentcloud = Pulumi.Tencentcloud;
    
    return await Deployment.RunAsync(() => 
    {
        var exampleTdmqRocketmqCluster = new Tencentcloud.TdmqRocketmqCluster("exampleTdmqRocketmqCluster", new()
        {
            ClusterName = "tf_example",
            Remark = "remark.",
        });
    
        var exampleTdmqRocketmqNamespace = new Tencentcloud.TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace", new()
        {
            ClusterId = exampleTdmqRocketmqCluster.ClusterId,
            NamespaceName = "tf_example",
            Remark = "remark.",
        });
    
        var exampleTdmqRocketmqGroup = Tencentcloud.GetTdmqRocketmqGroup.Invoke(new()
        {
            ClusterId = exampleTdmqRocketmqCluster.ClusterId,
            NamespaceId = exampleTdmqRocketmqNamespace.NamespaceName,
            FilterGroup = exampleIndex / tdmqRocketmqGroupTdmqRocketmqGroup.GroupName,
        });
    
        var exampleIndex_tdmqRocketmqGroupTdmqRocketmqGroup = new Tencentcloud.TdmqRocketmqGroup("exampleIndex/tdmqRocketmqGroupTdmqRocketmqGroup", new()
        {
            GroupName = "tf_example",
            Namespace = exampleTdmqRocketmqNamespace.NamespaceName,
            ReadEnable = true,
            BroadcastEnable = true,
            ClusterId = exampleTdmqRocketmqCluster.ClusterId,
            Remark = "remark.",
        });
    
    });
    
    package generated_program;
    
    import com.pulumi.Context;
    import com.pulumi.Pulumi;
    import com.pulumi.core.Output;
    import com.pulumi.tencentcloud.TdmqRocketmqCluster;
    import com.pulumi.tencentcloud.TdmqRocketmqClusterArgs;
    import com.pulumi.tencentcloud.TdmqRocketmqNamespace;
    import com.pulumi.tencentcloud.TdmqRocketmqNamespaceArgs;
    import com.pulumi.tencentcloud.TencentcloudFunctions;
    import com.pulumi.tencentcloud.inputs.GetTdmqRocketmqGroupArgs;
    import com.pulumi.tencentcloud.TdmqRocketmqGroup;
    import com.pulumi.tencentcloud.TdmqRocketmqGroupArgs;
    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) {
            var exampleTdmqRocketmqCluster = new TdmqRocketmqCluster("exampleTdmqRocketmqCluster", TdmqRocketmqClusterArgs.builder()
                .clusterName("tf_example")
                .remark("remark.")
                .build());
    
            var exampleTdmqRocketmqNamespace = new TdmqRocketmqNamespace("exampleTdmqRocketmqNamespace", TdmqRocketmqNamespaceArgs.builder()
                .clusterId(exampleTdmqRocketmqCluster.clusterId())
                .namespaceName("tf_example")
                .remark("remark.")
                .build());
    
            final var exampleTdmqRocketmqGroup = TencentcloudFunctions.getTdmqRocketmqGroup(GetTdmqRocketmqGroupArgs.builder()
                .clusterId(exampleTdmqRocketmqCluster.clusterId())
                .namespaceId(exampleTdmqRocketmqNamespace.namespaceName())
                .filterGroup(exampleIndex / tdmqRocketmqGroupTdmqRocketmqGroup.groupName())
                .build());
    
            var exampleIndex_tdmqRocketmqGroupTdmqRocketmqGroup = new TdmqRocketmqGroup("exampleIndex/tdmqRocketmqGroupTdmqRocketmqGroup", TdmqRocketmqGroupArgs.builder()
                .groupName("tf_example")
                .namespace(exampleTdmqRocketmqNamespace.namespaceName())
                .readEnable(true)
                .broadcastEnable(true)
                .clusterId(exampleTdmqRocketmqCluster.clusterId())
                .remark("remark.")
                .build());
    
        }
    }
    
    Coming soon!
    

    Using getTdmqRocketmqGroup

    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 getTdmqRocketmqGroup(args: GetTdmqRocketmqGroupArgs, opts?: InvokeOptions): Promise<GetTdmqRocketmqGroupResult>
    function getTdmqRocketmqGroupOutput(args: GetTdmqRocketmqGroupOutputArgs, opts?: InvokeOptions): Output<GetTdmqRocketmqGroupResult>
    def get_tdmq_rocketmq_group(cluster_id: Optional[str] = None,
                                filter_group: Optional[str] = None,
                                filter_one_group: Optional[str] = None,
                                filter_topic: Optional[str] = None,
                                id: Optional[str] = None,
                                namespace_id: Optional[str] = None,
                                result_output_file: Optional[str] = None,
                                opts: Optional[InvokeOptions] = None) -> GetTdmqRocketmqGroupResult
    def get_tdmq_rocketmq_group_output(cluster_id: Optional[pulumi.Input[str]] = None,
                                filter_group: Optional[pulumi.Input[str]] = None,
                                filter_one_group: Optional[pulumi.Input[str]] = None,
                                filter_topic: Optional[pulumi.Input[str]] = None,
                                id: Optional[pulumi.Input[str]] = None,
                                namespace_id: Optional[pulumi.Input[str]] = None,
                                result_output_file: Optional[pulumi.Input[str]] = None,
                                opts: Optional[InvokeOptions] = None) -> Output[GetTdmqRocketmqGroupResult]
    func LookupTdmqRocketmqGroup(ctx *Context, args *LookupTdmqRocketmqGroupArgs, opts ...InvokeOption) (*LookupTdmqRocketmqGroupResult, error)
    func LookupTdmqRocketmqGroupOutput(ctx *Context, args *LookupTdmqRocketmqGroupOutputArgs, opts ...InvokeOption) LookupTdmqRocketmqGroupResultOutput

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

    public static class GetTdmqRocketmqGroup 
    {
        public static Task<GetTdmqRocketmqGroupResult> InvokeAsync(GetTdmqRocketmqGroupArgs args, InvokeOptions? opts = null)
        public static Output<GetTdmqRocketmqGroupResult> Invoke(GetTdmqRocketmqGroupInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTdmqRocketmqGroupResult> getTdmqRocketmqGroup(GetTdmqRocketmqGroupArgs args, InvokeOptions options)
    public static Output<GetTdmqRocketmqGroupResult> getTdmqRocketmqGroup(GetTdmqRocketmqGroupArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getTdmqRocketmqGroup:getTdmqRocketmqGroup
      arguments:
        # arguments dictionary

    The following arguments are supported:

    ClusterId string
    Cluster ID.
    NamespaceId string
    Namespace.
    FilterGroup string
    Consumer group query by consumer group name. Fuzzy query is supported.
    FilterOneGroup string
    Subscription group name. After it is specified, the information of only this subscription group will be returned.
    FilterTopic string
    Topic name, which can be used to query all subscription groups under the topic.
    Id string
    ResultOutputFile string
    Used to save results.
    ClusterId string
    Cluster ID.
    NamespaceId string
    Namespace.
    FilterGroup string
    Consumer group query by consumer group name. Fuzzy query is supported.
    FilterOneGroup string
    Subscription group name. After it is specified, the information of only this subscription group will be returned.
    FilterTopic string
    Topic name, which can be used to query all subscription groups under the topic.
    Id string
    ResultOutputFile string
    Used to save results.
    clusterId String
    Cluster ID.
    namespaceId String
    Namespace.
    filterGroup String
    Consumer group query by consumer group name. Fuzzy query is supported.
    filterOneGroup String
    Subscription group name. After it is specified, the information of only this subscription group will be returned.
    filterTopic String
    Topic name, which can be used to query all subscription groups under the topic.
    id String
    resultOutputFile String
    Used to save results.
    clusterId string
    Cluster ID.
    namespaceId string
    Namespace.
    filterGroup string
    Consumer group query by consumer group name. Fuzzy query is supported.
    filterOneGroup string
    Subscription group name. After it is specified, the information of only this subscription group will be returned.
    filterTopic string
    Topic name, which can be used to query all subscription groups under the topic.
    id string
    resultOutputFile string
    Used to save results.
    cluster_id str
    Cluster ID.
    namespace_id str
    Namespace.
    filter_group str
    Consumer group query by consumer group name. Fuzzy query is supported.
    filter_one_group str
    Subscription group name. After it is specified, the information of only this subscription group will be returned.
    filter_topic str
    Topic name, which can be used to query all subscription groups under the topic.
    id str
    result_output_file str
    Used to save results.
    clusterId String
    Cluster ID.
    namespaceId String
    Namespace.
    filterGroup String
    Consumer group query by consumer group name. Fuzzy query is supported.
    filterOneGroup String
    Subscription group name. After it is specified, the information of only this subscription group will be returned.
    filterTopic String
    Topic name, which can be used to query all subscription groups under the topic.
    id String
    resultOutputFile String
    Used to save results.

    getTdmqRocketmqGroup Result

    The following output properties are available:

    ClusterId string
    Groups List<GetTdmqRocketmqGroupGroup>
    List of subscription groups.
    Id string
    NamespaceId string
    FilterGroup string
    FilterOneGroup string
    FilterTopic string
    ResultOutputFile string
    ClusterId string
    Groups []GetTdmqRocketmqGroupGroup
    List of subscription groups.
    Id string
    NamespaceId string
    FilterGroup string
    FilterOneGroup string
    FilterTopic string
    ResultOutputFile string
    clusterId String
    groups List<GetTdmqRocketmqGroupGroup>
    List of subscription groups.
    id String
    namespaceId String
    filterGroup String
    filterOneGroup String
    filterTopic String
    resultOutputFile String
    clusterId string
    groups GetTdmqRocketmqGroupGroup[]
    List of subscription groups.
    id string
    namespaceId string
    filterGroup string
    filterOneGroup string
    filterTopic string
    resultOutputFile string
    clusterId String
    groups List<Property Map>
    List of subscription groups.
    id String
    namespaceId String
    filterGroup String
    filterOneGroup String
    filterTopic String
    resultOutputFile String

    Supporting Types

    GetTdmqRocketmqGroupGroup

    BroadcastEnable bool
    Whether to enable broadcast consumption.
    ClientProtocol string
    Client protocol.
    ConsumerNum double
    The number of online consumers.
    ConsumerType string
    Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
    ConsumptionMode double
    0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown.
    CreateTime double
    Creation time in milliseconds.
    Name string
    Consumer group name.
    ReadEnable bool
    Whether to enable consumption.
    Remark string
    Remarks (up to 128 characters).
    RetryPartitionNum double
    The number of partitions in a retry topic.
    TotalAccumulative double
    The total number of heaped messages.
    Tps double
    Consumption TPS.
    UpdateTime double
    Modification time in milliseconds.
    BroadcastEnable bool
    Whether to enable broadcast consumption.
    ClientProtocol string
    Client protocol.
    ConsumerNum float64
    The number of online consumers.
    ConsumerType string
    Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
    ConsumptionMode float64
    0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown.
    CreateTime float64
    Creation time in milliseconds.
    Name string
    Consumer group name.
    ReadEnable bool
    Whether to enable consumption.
    Remark string
    Remarks (up to 128 characters).
    RetryPartitionNum float64
    The number of partitions in a retry topic.
    TotalAccumulative float64
    The total number of heaped messages.
    Tps float64
    Consumption TPS.
    UpdateTime float64
    Modification time in milliseconds.
    broadcastEnable Boolean
    Whether to enable broadcast consumption.
    clientProtocol String
    Client protocol.
    consumerNum Double
    The number of online consumers.
    consumerType String
    Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
    consumptionMode Double
    0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown.
    createTime Double
    Creation time in milliseconds.
    name String
    Consumer group name.
    readEnable Boolean
    Whether to enable consumption.
    remark String
    Remarks (up to 128 characters).
    retryPartitionNum Double
    The number of partitions in a retry topic.
    totalAccumulative Double
    The total number of heaped messages.
    tps Double
    Consumption TPS.
    updateTime Double
    Modification time in milliseconds.
    broadcastEnable boolean
    Whether to enable broadcast consumption.
    clientProtocol string
    Client protocol.
    consumerNum number
    The number of online consumers.
    consumerType string
    Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
    consumptionMode number
    0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown.
    createTime number
    Creation time in milliseconds.
    name string
    Consumer group name.
    readEnable boolean
    Whether to enable consumption.
    remark string
    Remarks (up to 128 characters).
    retryPartitionNum number
    The number of partitions in a retry topic.
    totalAccumulative number
    The total number of heaped messages.
    tps number
    Consumption TPS.
    updateTime number
    Modification time in milliseconds.
    broadcast_enable bool
    Whether to enable broadcast consumption.
    client_protocol str
    Client protocol.
    consumer_num float
    The number of online consumers.
    consumer_type str
    Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
    consumption_mode float
    0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown.
    create_time float
    Creation time in milliseconds.
    name str
    Consumer group name.
    read_enable bool
    Whether to enable consumption.
    remark str
    Remarks (up to 128 characters).
    retry_partition_num float
    The number of partitions in a retry topic.
    total_accumulative float
    The total number of heaped messages.
    tps float
    Consumption TPS.
    update_time float
    Modification time in milliseconds.
    broadcastEnable Boolean
    Whether to enable broadcast consumption.
    clientProtocol String
    Client protocol.
    consumerNum Number
    The number of online consumers.
    consumerType String
    Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
    consumptionMode Number
    0: Cluster consumption mode; 1: Broadcast consumption mode; -1: Unknown.
    createTime Number
    Creation time in milliseconds.
    name String
    Consumer group name.
    readEnable Boolean
    Whether to enable consumption.
    remark String
    Remarks (up to 128 characters).
    retryPartitionNum Number
    The number of partitions in a retry topic.
    totalAccumulative Number
    The total number of heaped messages.
    tps Number
    Consumption TPS.
    updateTime Number
    Modification time in milliseconds.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack