tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack
tencentcloud.getTdmqRocketmqGroup
Explore with Pulumi AI
tencentcloud 1.81.182 published on Monday, Apr 14, 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:
- Cluster
Id This property is required. string - Cluster ID.
- Namespace
Id This property is required. string - Namespace.
- Filter
Group string - Consumer group query by consumer group name. Fuzzy query is supported.
- Filter
One stringGroup - Subscription group name. After it is specified, the information of only this subscription group will be returned.
- Filter
Topic string - Topic name, which can be used to query all subscription groups under the topic.
- Id string
- Result
Output stringFile - Used to save results.
- Cluster
Id This property is required. string - Cluster ID.
- Namespace
Id This property is required. string - Namespace.
- Filter
Group string - Consumer group query by consumer group name. Fuzzy query is supported.
- Filter
One stringGroup - Subscription group name. After it is specified, the information of only this subscription group will be returned.
- Filter
Topic string - Topic name, which can be used to query all subscription groups under the topic.
- Id string
- Result
Output stringFile - Used to save results.
- cluster
Id This property is required. String - Cluster ID.
- namespace
Id This property is required. String - Namespace.
- filter
Group String - Consumer group query by consumer group name. Fuzzy query is supported.
- filter
One StringGroup - Subscription group name. After it is specified, the information of only this subscription group will be returned.
- filter
Topic String - Topic name, which can be used to query all subscription groups under the topic.
- id String
- result
Output StringFile - Used to save results.
- cluster
Id This property is required. string - Cluster ID.
- namespace
Id This property is required. string - Namespace.
- filter
Group string - Consumer group query by consumer group name. Fuzzy query is supported.
- filter
One stringGroup - Subscription group name. After it is specified, the information of only this subscription group will be returned.
- filter
Topic string - Topic name, which can be used to query all subscription groups under the topic.
- id string
- result
Output stringFile - 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_ strgroup - 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_ strfile - Used to save results.
- cluster
Id This property is required. String - Cluster ID.
- namespace
Id This property is required. String - Namespace.
- filter
Group String - Consumer group query by consumer group name. Fuzzy query is supported.
- filter
One StringGroup - Subscription group name. After it is specified, the information of only this subscription group will be returned.
- filter
Topic String - Topic name, which can be used to query all subscription groups under the topic.
- id String
- result
Output StringFile - Used to save results.
getTdmqRocketmqGroup Result
The following output properties are available:
- Cluster
Id string - Groups
List<Get
Tdmq Rocketmq Group Group> - List of subscription groups.
- Id string
- Namespace
Id string - Filter
Group string - Filter
One stringGroup - Filter
Topic string - Result
Output stringFile
- Cluster
Id string - Groups
[]Get
Tdmq Rocketmq Group Group - List of subscription groups.
- Id string
- Namespace
Id string - Filter
Group string - Filter
One stringGroup - Filter
Topic string - Result
Output stringFile
- cluster
Id String - groups
List<Get
Tdmq Rocketmq Group Group> - List of subscription groups.
- id String
- namespace
Id String - filter
Group String - filter
One StringGroup - filter
Topic String - result
Output StringFile
- cluster
Id string - groups
Get
Tdmq Rocketmq Group Group[] - List of subscription groups.
- id string
- namespace
Id string - filter
Group string - filter
One stringGroup - filter
Topic string - result
Output stringFile
- cluster_
id str - groups
Sequence[Get
Tdmq Rocketmq Group Group] - List of subscription groups.
- id str
- namespace_
id str - filter_
group str - filter_
one_ strgroup - filter_
topic str - result_
output_ strfile
- cluster
Id String - groups List<Property Map>
- List of subscription groups.
- id String
- namespace
Id String - filter
Group String - filter
One StringGroup - filter
Topic String - result
Output StringFile
Supporting Types
GetTdmqRocketmqGroupGroup
- Broadcast
Enable This property is required. bool - Whether to enable broadcast consumption.
- Client
Protocol This property is required. string - Client protocol.
- Consumer
Num This property is required. double - The number of online consumers.
- Consumer
Type This property is required. string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- Consumption
Mode This property is required. double 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- Create
Time This property is required. double - Creation time in milliseconds.
- Name
This property is required. string - Consumer group name.
- Read
Enable This property is required. bool - Whether to enable consumption.
- Remark
This property is required. string - Remarks (up to 128 characters).
- Retry
Partition Num This property is required. double - The number of partitions in a retry topic.
- Total
Accumulative This property is required. double - The total number of heaped messages.
- Tps
This property is required. double - Consumption TPS.
- Update
Time This property is required. double - Modification time in milliseconds.
- Broadcast
Enable This property is required. bool - Whether to enable broadcast consumption.
- Client
Protocol This property is required. string - Client protocol.
- Consumer
Num This property is required. float64 - The number of online consumers.
- Consumer
Type This property is required. string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- Consumption
Mode This property is required. float64 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- Create
Time This property is required. float64 - Creation time in milliseconds.
- Name
This property is required. string - Consumer group name.
- Read
Enable This property is required. bool - Whether to enable consumption.
- Remark
This property is required. string - Remarks (up to 128 characters).
- Retry
Partition Num This property is required. float64 - The number of partitions in a retry topic.
- Total
Accumulative This property is required. float64 - The total number of heaped messages.
- Tps
This property is required. float64 - Consumption TPS.
- Update
Time This property is required. float64 - Modification time in milliseconds.
- broadcast
Enable This property is required. Boolean - Whether to enable broadcast consumption.
- client
Protocol This property is required. String - Client protocol.
- consumer
Num This property is required. Double - The number of online consumers.
- consumer
Type This property is required. String - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode This property is required. Double 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time This property is required. Double - Creation time in milliseconds.
- name
This property is required. String - Consumer group name.
- read
Enable This property is required. Boolean - Whether to enable consumption.
- remark
This property is required. String - Remarks (up to 128 characters).
- retry
Partition Num This property is required. Double - The number of partitions in a retry topic.
- total
Accumulative This property is required. Double - The total number of heaped messages.
- tps
This property is required. Double - Consumption TPS.
- update
Time This property is required. Double - Modification time in milliseconds.
- broadcast
Enable This property is required. boolean - Whether to enable broadcast consumption.
- client
Protocol This property is required. string - Client protocol.
- consumer
Num This property is required. number - The number of online consumers.
- consumer
Type This property is required. string - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode This property is required. number 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time This property is required. number - Creation time in milliseconds.
- name
This property is required. string - Consumer group name.
- read
Enable This property is required. boolean - Whether to enable consumption.
- remark
This property is required. string - Remarks (up to 128 characters).
- retry
Partition Num This property is required. number - The number of partitions in a retry topic.
- total
Accumulative This property is required. number - The total number of heaped messages.
- tps
This property is required. number - Consumption TPS.
- update
Time 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.
- broadcast
Enable This property is required. Boolean - Whether to enable broadcast consumption.
- client
Protocol This property is required. String - Client protocol.
- consumer
Num This property is required. Number - The number of online consumers.
- consumer
Type This property is required. String - Consumer type. Enumerated values: ACTIVELY or PASSIVELY.
- consumption
Mode This property is required. Number 0
: Cluster consumption mode;1
: Broadcast consumption mode;-1
: Unknown.- create
Time This property is required. Number - Creation time in milliseconds.
- name
This property is required. String - Consumer group name.
- read
Enable This property is required. Boolean - Whether to enable consumption.
- remark
This property is required. String - Remarks (up to 128 characters).
- retry
Partition Num This property is required. Number - The number of partitions in a retry topic.
- total
Accumulative This property is required. Number - The total number of heaped messages.
- tps
This property is required. Number - Consumption TPS.
- update
Time 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.
tencentcloud 1.81.182 published on Monday, Apr 14, 2025 by tencentcloudstack