1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTdmqRocketmqGroup
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack

tencentcloud.getTdmqRocketmqGroup

Explore with Pulumi AI

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.",
});
Copy
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.")
Copy
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
	})
}
Copy
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.",
    });

});
Copy
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());

    }
}
Copy
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>
Copy
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]
Copy
func LookupTdmqRocketmqGroup(ctx *Context, args *LookupTdmqRocketmqGroupArgs, opts ...InvokeOption) (*LookupTdmqRocketmqGroupResult, error)
func LookupTdmqRocketmqGroupOutput(ctx *Context, args *LookupTdmqRocketmqGroupOutputArgs, opts ...InvokeOption) LookupTdmqRocketmqGroupResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTdmqRocketmqGroupResult> getTdmqRocketmqGroup(GetTdmqRocketmqGroupArgs args, InvokeOptions options)
public static Output<GetTdmqRocketmqGroupResult> getTdmqRocketmqGroup(GetTdmqRocketmqGroupArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getTdmqRocketmqGroup:getTdmqRocketmqGroup
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

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