tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getTdmqRocketmqTopic
Start a Neo task
Explain and create a tencentcloud.getTdmqRocketmqTopic resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of tdmqRocketmq topic
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const exampleTdmqRocketmqCluster = new tencentcloud.TdmqRocketmqCluster("example", {
clusterName: "tf_example",
remark: "remark.",
});
const exampleTdmqRocketmqNamespace = new tencentcloud.TdmqRocketmqNamespace("example", {
clusterId: exampleTdmqRocketmqCluster.clusterId,
namespaceName: "tf_example",
remark: "remark.",
});
const exampleTdmqRocketmqTopic = new tencentcloud.TdmqRocketmqTopic("example", {
topicName: "tf_example",
namespaceName: exampleTdmqRocketmqNamespace.namespaceName,
clusterId: exampleTdmqRocketmqCluster.clusterId,
type: "Normal",
remark: "remark.",
});
const example = tencentcloud.getTdmqRocketmqTopicOutput({
clusterId: exampleTdmqRocketmqCluster.clusterId,
namespaceId: exampleTdmqRocketmqNamespace.namespaceName,
filterName: exampleTdmqRocketmqTopic.topicName,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
example_tdmq_rocketmq_cluster = tencentcloud.TdmqRocketmqCluster("example",
cluster_name="tf_example",
remark="remark.")
example_tdmq_rocketmq_namespace = tencentcloud.TdmqRocketmqNamespace("example",
cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
namespace_name="tf_example",
remark="remark.")
example_tdmq_rocketmq_topic = tencentcloud.TdmqRocketmqTopic("example",
topic_name="tf_example",
namespace_name=example_tdmq_rocketmq_namespace.namespace_name,
cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
type="Normal",
remark="remark.")
example = tencentcloud.get_tdmq_rocketmq_topic_output(cluster_id=example_tdmq_rocketmq_cluster.cluster_id,
namespace_id=example_tdmq_rocketmq_namespace.namespace_name,
filter_name=example_tdmq_rocketmq_topic.topic_name)
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, "example", &tencentcloud.TdmqRocketmqClusterArgs{
ClusterName: pulumi.String("tf_example"),
Remark: pulumi.String("remark."),
})
if err != nil {
return err
}
exampleTdmqRocketmqNamespace, err := tencentcloud.NewTdmqRocketmqNamespace(ctx, "example", &tencentcloud.TdmqRocketmqNamespaceArgs{
ClusterId: exampleTdmqRocketmqCluster.ClusterId,
NamespaceName: pulumi.String("tf_example"),
Remark: pulumi.String("remark."),
})
if err != nil {
return err
}
exampleTdmqRocketmqTopic, err := tencentcloud.NewTdmqRocketmqTopic(ctx, "example", &tencentcloud.TdmqRocketmqTopicArgs{
TopicName: pulumi.String("tf_example"),
NamespaceName: exampleTdmqRocketmqNamespace.NamespaceName,
ClusterId: exampleTdmqRocketmqCluster.ClusterId,
Type: pulumi.String("Normal"),
Remark: pulumi.String("remark."),
})
if err != nil {
return err
}
_ = tencentcloud.LookupTdmqRocketmqTopicOutput(ctx, tencentcloud.GetTdmqRocketmqTopicOutputArgs{
ClusterId: exampleTdmqRocketmqCluster.ClusterId,
NamespaceId: exampleTdmqRocketmqNamespace.NamespaceName,
FilterName: exampleTdmqRocketmqTopic.TopicName,
}, nil)
return nil
})
}
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Tencentcloud = Pulumi.Tencentcloud;
return await Deployment.RunAsync(() =>
{
var exampleTdmqRocketmqCluster = new Tencentcloud.TdmqRocketmqCluster("example", new()
{
ClusterName = "tf_example",
Remark = "remark.",
});
var exampleTdmqRocketmqNamespace = new Tencentcloud.TdmqRocketmqNamespace("example", new()
{
ClusterId = exampleTdmqRocketmqCluster.ClusterId,
NamespaceName = "tf_example",
Remark = "remark.",
});
var exampleTdmqRocketmqTopic = new Tencentcloud.TdmqRocketmqTopic("example", new()
{
TopicName = "tf_example",
NamespaceName = exampleTdmqRocketmqNamespace.NamespaceName,
ClusterId = exampleTdmqRocketmqCluster.ClusterId,
Type = "Normal",
Remark = "remark.",
});
var example = Tencentcloud.GetTdmqRocketmqTopic.Invoke(new()
{
ClusterId = exampleTdmqRocketmqCluster.ClusterId,
NamespaceId = exampleTdmqRocketmqNamespace.NamespaceName,
FilterName = exampleTdmqRocketmqTopic.TopicName,
});
});
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.TdmqRocketmqTopic;
import com.pulumi.tencentcloud.TdmqRocketmqTopicArgs;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetTdmqRocketmqTopicArgs;
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());
var exampleTdmqRocketmqTopic = new TdmqRocketmqTopic("exampleTdmqRocketmqTopic", TdmqRocketmqTopicArgs.builder()
.topicName("tf_example")
.namespaceName(exampleTdmqRocketmqNamespace.namespaceName())
.clusterId(exampleTdmqRocketmqCluster.clusterId())
.type("Normal")
.remark("remark.")
.build());
final var example = TencentcloudFunctions.getTdmqRocketmqTopic(GetTdmqRocketmqTopicArgs.builder()
.clusterId(exampleTdmqRocketmqCluster.clusterId())
.namespaceId(exampleTdmqRocketmqNamespace.namespaceName())
.filterName(exampleTdmqRocketmqTopic.topicName())
.build());
}
}
resources:
exampleTdmqRocketmqCluster:
type: tencentcloud:TdmqRocketmqCluster
name: example
properties:
clusterName: tf_example
remark: remark.
exampleTdmqRocketmqNamespace:
type: tencentcloud:TdmqRocketmqNamespace
name: example
properties:
clusterId: ${exampleTdmqRocketmqCluster.clusterId}
namespaceName: tf_example
remark: remark.
exampleTdmqRocketmqTopic:
type: tencentcloud:TdmqRocketmqTopic
name: example
properties:
topicName: tf_example
namespaceName: ${exampleTdmqRocketmqNamespace.namespaceName}
clusterId: ${exampleTdmqRocketmqCluster.clusterId}
type: Normal
remark: remark.
variables:
example:
fn::invoke:
function: tencentcloud:getTdmqRocketmqTopic
arguments:
clusterId: ${exampleTdmqRocketmqCluster.clusterId}
namespaceId: ${exampleTdmqRocketmqNamespace.namespaceName}
filterName: ${exampleTdmqRocketmqTopic.topicName}
Using getTdmqRocketmqTopic
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 getTdmqRocketmqTopic(args: GetTdmqRocketmqTopicArgs, opts?: InvokeOptions): Promise<GetTdmqRocketmqTopicResult>
function getTdmqRocketmqTopicOutput(args: GetTdmqRocketmqTopicOutputArgs, opts?: InvokeOptions): Output<GetTdmqRocketmqTopicResult>def get_tdmq_rocketmq_topic(cluster_id: Optional[str] = None,
filter_name: Optional[str] = None,
filter_types: Optional[Sequence[str]] = None,
id: Optional[str] = None,
namespace_id: Optional[str] = None,
result_output_file: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTdmqRocketmqTopicResult
def get_tdmq_rocketmq_topic_output(cluster_id: Optional[pulumi.Input[str]] = None,
filter_name: Optional[pulumi.Input[str]] = None,
filter_types: Optional[pulumi.Input[Sequence[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[GetTdmqRocketmqTopicResult]func LookupTdmqRocketmqTopic(ctx *Context, args *LookupTdmqRocketmqTopicArgs, opts ...InvokeOption) (*LookupTdmqRocketmqTopicResult, error)
func LookupTdmqRocketmqTopicOutput(ctx *Context, args *LookupTdmqRocketmqTopicOutputArgs, opts ...InvokeOption) LookupTdmqRocketmqTopicResultOutput> Note: This function is named LookupTdmqRocketmqTopic in the Go SDK.
public static class GetTdmqRocketmqTopic
{
public static Task<GetTdmqRocketmqTopicResult> InvokeAsync(GetTdmqRocketmqTopicArgs args, InvokeOptions? opts = null)
public static Output<GetTdmqRocketmqTopicResult> Invoke(GetTdmqRocketmqTopicInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTdmqRocketmqTopicResult> getTdmqRocketmqTopic(GetTdmqRocketmqTopicArgs args, InvokeOptions options)
public static Output<GetTdmqRocketmqTopicResult> getTdmqRocketmqTopic(GetTdmqRocketmqTopicArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTdmqRocketmqTopic:getTdmqRocketmqTopic
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster ID.
- Namespace
Id string - Namespace.
- Filter
Name string - Search by topic name. Fuzzy query is supported.
- Filter
Types List<string> - Filter by topic type. Valid values:
Normal,GlobalOrder,PartitionedOrder,Transaction. - Id string
- Result
Output stringFile - Used to save results.
- Cluster
Id string - Cluster ID.
- Namespace
Id string - Namespace.
- Filter
Name string - Search by topic name. Fuzzy query is supported.
- Filter
Types []string - Filter by topic type. Valid values:
Normal,GlobalOrder,PartitionedOrder,Transaction. - Id string
- Result
Output stringFile - Used to save results.
- cluster
Id String - Cluster ID.
- namespace
Id String - Namespace.
- filter
Name String - Search by topic name. Fuzzy query is supported.
- filter
Types List<String> - Filter by topic type. Valid values:
Normal,GlobalOrder,PartitionedOrder,Transaction. - id String
- result
Output StringFile - Used to save results.
- cluster
Id string - Cluster ID.
- namespace
Id string - Namespace.
- filter
Name string - Search by topic name. Fuzzy query is supported.
- filter
Types string[] - Filter by topic type. Valid values:
Normal,GlobalOrder,PartitionedOrder,Transaction. - id string
- result
Output stringFile - Used to save results.
- cluster_
id str - Cluster ID.
- namespace_
id str - Namespace.
- filter_
name str - Search by topic name. Fuzzy query is supported.
- filter_
types Sequence[str] - Filter by topic type. Valid values:
Normal,GlobalOrder,PartitionedOrder,Transaction. - id str
- result_
output_ strfile - Used to save results.
- cluster
Id String - Cluster ID.
- namespace
Id String - Namespace.
- filter
Name String - Search by topic name. Fuzzy query is supported.
- filter
Types List<String> - Filter by topic type. Valid values:
Normal,GlobalOrder,PartitionedOrder,Transaction. - id String
- result
Output StringFile - Used to save results.
getTdmqRocketmqTopic Result
The following output properties are available:
- Cluster
Id string - Id string
- Namespace
Id string - Topics
List<Get
Tdmq Rocketmq Topic Topic> - List of topic information.
- Filter
Name string - Filter
Types List<string> - Result
Output stringFile
- Cluster
Id string - Id string
- Namespace
Id string - Topics
[]Get
Tdmq Rocketmq Topic Topic - List of topic information.
- Filter
Name string - Filter
Types []string - Result
Output stringFile
- cluster
Id String - id String
- namespace
Id String - topics
List<Get
Tdmq Rocketmq Topic Topic> - List of topic information.
- filter
Name String - filter
Types List<String> - result
Output StringFile
- cluster
Id string - id string
- namespace
Id string - topics
Get
Tdmq Rocketmq Topic Topic[] - List of topic information.
- filter
Name string - filter
Types string[] - result
Output stringFile
- cluster_
id str - id str
- namespace_
id str - topics
Sequence[Get
Tdmq Rocketmq Topic Topic] - List of topic information.
- filter_
name str - filter_
types Sequence[str] - result_
output_ strfile
- cluster
Id String - id String
- namespace
Id String - topics List<Property Map>
- List of topic information.
- filter
Name String - filter
Types List<String> - result
Output StringFile
Supporting Types
GetTdmqRocketmqTopicTopic
- Create
Time double - Creation time in milliseconds.
- Name string
- Topic name.
- Partition
Num double - The number of read/write partitions.
- Remark string
- Topic name.
- Update
Time double - Update time in milliseconds.
- Create
Time float64 - Creation time in milliseconds.
- Name string
- Topic name.
- Partition
Num float64 - The number of read/write partitions.
- Remark string
- Topic name.
- Update
Time float64 - Update time in milliseconds.
- create
Time Double - Creation time in milliseconds.
- name String
- Topic name.
- partition
Num Double - The number of read/write partitions.
- remark String
- Topic name.
- update
Time Double - Update time in milliseconds.
- create
Time number - Creation time in milliseconds.
- name string
- Topic name.
- partition
Num number - The number of read/write partitions.
- remark string
- Topic name.
- update
Time number - Update time in milliseconds.
- create_
time float - Creation time in milliseconds.
- name str
- Topic name.
- partition_
num float - The number of read/write partitions.
- remark str
- Topic name.
- update_
time float - Update time in milliseconds.
- create
Time Number - Creation time in milliseconds.
- name String
- Topic name.
- partition
Num Number - The number of read/write partitions.
- remark String
- Topic name.
- update
Time Number - Update time in milliseconds.
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloudTerraform Provider.
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
