tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
tencentcloud.getTdmqRocketmqMessages
Start a Neo task
Explain and create a tencentcloud.getTdmqRocketmqMessages resource
tencentcloud 1.82.35 published on Friday, Nov 7, 2025 by tencentcloudstack
Use this data source to query detailed information of tdmq message
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const message = tencentcloud.getTdmqRocketmqMessages({
clusterId: "rocketmq-rkrbm52djmro",
environmentId: "keep_ns",
topicName: "keep-topic",
msgId: "A9FE8D0567FE15DB97425FC08EEF0000",
queryDlqMsg: false,
});
import pulumi
import pulumi_tencentcloud as tencentcloud
message = tencentcloud.get_tdmq_rocketmq_messages(cluster_id="rocketmq-rkrbm52djmro",
environment_id="keep_ns",
topic_name="keep-topic",
msg_id="A9FE8D0567FE15DB97425FC08EEF0000",
query_dlq_msg=False)
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 {
_, err := tencentcloud.GetTdmqRocketmqMessages(ctx, &tencentcloud.GetTdmqRocketmqMessagesArgs{
ClusterId: "rocketmq-rkrbm52djmro",
EnvironmentId: "keep_ns",
TopicName: "keep-topic",
MsgId: "A9FE8D0567FE15DB97425FC08EEF0000",
QueryDlqMsg: pulumi.BoolRef(false),
}, nil)
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 message = Tencentcloud.GetTdmqRocketmqMessages.Invoke(new()
{
ClusterId = "rocketmq-rkrbm52djmro",
EnvironmentId = "keep_ns",
TopicName = "keep-topic",
MsgId = "A9FE8D0567FE15DB97425FC08EEF0000",
QueryDlqMsg = false,
});
});
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.tencentcloud.TencentcloudFunctions;
import com.pulumi.tencentcloud.inputs.GetTdmqRocketmqMessagesArgs;
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) {
final var message = TencentcloudFunctions.getTdmqRocketmqMessages(GetTdmqRocketmqMessagesArgs.builder()
.clusterId("rocketmq-rkrbm52djmro")
.environmentId("keep_ns")
.topicName("keep-topic")
.msgId("A9FE8D0567FE15DB97425FC08EEF0000")
.queryDlqMsg(false)
.build());
}
}
variables:
message:
fn::invoke:
function: tencentcloud:getTdmqRocketmqMessages
arguments:
clusterId: rocketmq-rkrbm52djmro
environmentId: keep_ns
topicName: keep-topic
msgId: A9FE8D0567FE15DB97425FC08EEF0000
queryDlqMsg: false
Using getTdmqRocketmqMessages
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 getTdmqRocketmqMessages(args: GetTdmqRocketmqMessagesArgs, opts?: InvokeOptions): Promise<GetTdmqRocketmqMessagesResult>
function getTdmqRocketmqMessagesOutput(args: GetTdmqRocketmqMessagesOutputArgs, opts?: InvokeOptions): Output<GetTdmqRocketmqMessagesResult>def get_tdmq_rocketmq_messages(cluster_id: Optional[str] = None,
environment_id: Optional[str] = None,
id: Optional[str] = None,
msg_id: Optional[str] = None,
query_dlq_msg: Optional[bool] = None,
result_output_file: Optional[str] = None,
topic_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTdmqRocketmqMessagesResult
def get_tdmq_rocketmq_messages_output(cluster_id: Optional[pulumi.Input[str]] = None,
environment_id: Optional[pulumi.Input[str]] = None,
id: Optional[pulumi.Input[str]] = None,
msg_id: Optional[pulumi.Input[str]] = None,
query_dlq_msg: Optional[pulumi.Input[bool]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
topic_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTdmqRocketmqMessagesResult]func GetTdmqRocketmqMessages(ctx *Context, args *GetTdmqRocketmqMessagesArgs, opts ...InvokeOption) (*GetTdmqRocketmqMessagesResult, error)
func GetTdmqRocketmqMessagesOutput(ctx *Context, args *GetTdmqRocketmqMessagesOutputArgs, opts ...InvokeOption) GetTdmqRocketmqMessagesResultOutput> Note: This function is named GetTdmqRocketmqMessages in the Go SDK.
public static class GetTdmqRocketmqMessages
{
public static Task<GetTdmqRocketmqMessagesResult> InvokeAsync(GetTdmqRocketmqMessagesArgs args, InvokeOptions? opts = null)
public static Output<GetTdmqRocketmqMessagesResult> Invoke(GetTdmqRocketmqMessagesInvokeArgs args, InvokeOptions? opts = null)
}public static CompletableFuture<GetTdmqRocketmqMessagesResult> getTdmqRocketmqMessages(GetTdmqRocketmqMessagesArgs args, InvokeOptions options)
public static Output<GetTdmqRocketmqMessagesResult> getTdmqRocketmqMessages(GetTdmqRocketmqMessagesArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTdmqRocketmqMessages:getTdmqRocketmqMessages
arguments:
# arguments dictionaryThe following arguments are supported:
- Cluster
Id string - Cluster id.
- Environment
Id string - Environment.
- Msg
Id string - Message ID.
- Topic
Name string - Topic, groupId is passed when querying dead letters.
- Id string
- Query
Dlq boolMsg - The value is true when querying dead letters, only valid for Rocketmq.
- Result
Output stringFile - Used to save results.
- Cluster
Id string - Cluster id.
- Environment
Id string - Environment.
- Msg
Id string - Message ID.
- Topic
Name string - Topic, groupId is passed when querying dead letters.
- Id string
- Query
Dlq boolMsg - The value is true when querying dead letters, only valid for Rocketmq.
- Result
Output stringFile - Used to save results.
- cluster
Id String - Cluster id.
- environment
Id String - Environment.
- msg
Id String - Message ID.
- topic
Name String - Topic, groupId is passed when querying dead letters.
- id String
- query
Dlq BooleanMsg - The value is true when querying dead letters, only valid for Rocketmq.
- result
Output StringFile - Used to save results.
- cluster
Id string - Cluster id.
- environment
Id string - Environment.
- msg
Id string - Message ID.
- topic
Name string - Topic, groupId is passed when querying dead letters.
- id string
- query
Dlq booleanMsg - The value is true when querying dead letters, only valid for Rocketmq.
- result
Output stringFile - Used to save results.
- cluster_
id str - Cluster id.
- environment_
id str - Environment.
- msg_
id str - Message ID.
- topic_
name str - Topic, groupId is passed when querying dead letters.
- id str
- query_
dlq_ boolmsg - The value is true when querying dead letters, only valid for Rocketmq.
- result_
output_ strfile - Used to save results.
- cluster
Id String - Cluster id.
- environment
Id String - Environment.
- msg
Id String - Message ID.
- topic
Name String - Topic, groupId is passed when querying dead letters.
- id String
- query
Dlq BooleanMsg - The value is true when querying dead letters, only valid for Rocketmq.
- result
Output StringFile - Used to save results.
getTdmqRocketmqMessages Result
The following output properties are available:
- Body string
- Message body.
- Cluster
Id string - Environment
Id string - Id string
- Message
Tracks List<GetTdmq Rocketmq Messages Message Track> - Consumer Group ConsumptionNote: This field may return null, indicating that no valid value can be obtained.
- Msg
Id string - Produce
Time string - Production time.
- Producer
Addr string - Producer address.
- Properties string
- Detailed parameters.
- Show
Topic stringName - The topic name displayed on the details pageNote: This field may return null, indicating that no valid value can be obtained.
- Topic
Name string - Query
Dlq boolMsg - Result
Output stringFile
- Body string
- Message body.
- Cluster
Id string - Environment
Id string - Id string
- Message
Tracks []GetTdmq Rocketmq Messages Message Track - Consumer Group ConsumptionNote: This field may return null, indicating that no valid value can be obtained.
- Msg
Id string - Produce
Time string - Production time.
- Producer
Addr string - Producer address.
- Properties string
- Detailed parameters.
- Show
Topic stringName - The topic name displayed on the details pageNote: This field may return null, indicating that no valid value can be obtained.
- Topic
Name string - Query
Dlq boolMsg - Result
Output stringFile
- body String
- Message body.
- cluster
Id String - environment
Id String - id String
- message
Tracks List<GetTdmq Rocketmq Messages Message Track> - Consumer Group ConsumptionNote: This field may return null, indicating that no valid value can be obtained.
- msg
Id String - produce
Time String - Production time.
- producer
Addr String - Producer address.
- properties String
- Detailed parameters.
- show
Topic StringName - The topic name displayed on the details pageNote: This field may return null, indicating that no valid value can be obtained.
- topic
Name String - query
Dlq BooleanMsg - result
Output StringFile
- body string
- Message body.
- cluster
Id string - environment
Id string - id string
- message
Tracks GetTdmq Rocketmq Messages Message Track[] - Consumer Group ConsumptionNote: This field may return null, indicating that no valid value can be obtained.
- msg
Id string - produce
Time string - Production time.
- producer
Addr string - Producer address.
- properties string
- Detailed parameters.
- show
Topic stringName - The topic name displayed on the details pageNote: This field may return null, indicating that no valid value can be obtained.
- topic
Name string - query
Dlq booleanMsg - result
Output stringFile
- body str
- Message body.
- cluster_
id str - environment_
id str - id str
- message_
tracks Sequence[GetTdmq Rocketmq Messages Message Track] - Consumer Group ConsumptionNote: This field may return null, indicating that no valid value can be obtained.
- msg_
id str - produce_
time str - Production time.
- producer_
addr str - Producer address.
- properties str
- Detailed parameters.
- show_
topic_ strname - The topic name displayed on the details pageNote: This field may return null, indicating that no valid value can be obtained.
- topic_
name str - query_
dlq_ boolmsg - result_
output_ strfile
- body String
- Message body.
- cluster
Id String - environment
Id String - id String
- message
Tracks List<Property Map> - Consumer Group ConsumptionNote: This field may return null, indicating that no valid value can be obtained.
- msg
Id String - produce
Time String - Production time.
- producer
Addr String - Producer address.
- properties String
- Detailed parameters.
- show
Topic StringName - The topic name displayed on the details pageNote: This field may return null, indicating that no valid value can be obtained.
- topic
Name String - query
Dlq BooleanMsg - result
Output StringFile
Supporting Types
GetTdmqRocketmqMessagesMessageTrack
- Consume
Status string - consumption status.
- Exception
Desc string - Exception informationNote: This field may return null, indicating that no valid value can be obtained.
- Group string
- consumer group.
- Track
Type string - message track type.
- Consume
Status string - consumption status.
- Exception
Desc string - Exception informationNote: This field may return null, indicating that no valid value can be obtained.
- Group string
- consumer group.
- Track
Type string - message track type.
- consume
Status String - consumption status.
- exception
Desc String - Exception informationNote: This field may return null, indicating that no valid value can be obtained.
- group String
- consumer group.
- track
Type String - message track type.
- consume
Status string - consumption status.
- exception
Desc string - Exception informationNote: This field may return null, indicating that no valid value can be obtained.
- group string
- consumer group.
- track
Type string - message track type.
- consume_
status str - consumption status.
- exception_
desc str - Exception informationNote: This field may return null, indicating that no valid value can be obtained.
- group str
- consumer group.
- track_
type str - message track type.
- consume
Status String - consumption status.
- exception
Desc String - Exception informationNote: This field may return null, indicating that no valid value can be obtained.
- group String
- consumer group.
- track
Type String - message track type.
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
