tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTcmqTopic
Explore with Pulumi AI
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
Use this data source to query detailed information of tcmq topic
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const topic = tencentcloud.getTcmqTopic({
topicName: "topic_name",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
topic = tencentcloud.get_tcmq_topic(topic_name="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 {
_, err := tencentcloud.LookupTcmqTopic(ctx, &tencentcloud.LookupTcmqTopicArgs{
TopicName: pulumi.StringRef("topic_name"),
}, 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 topic = Tencentcloud.GetTcmqTopic.Invoke(new()
{
TopicName = "topic_name",
});
});
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.GetTcmqTopicArgs;
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 topic = TencentcloudFunctions.getTcmqTopic(GetTcmqTopicArgs.builder()
.topicName("topic_name")
.build());
}
}
variables:
topic:
fn::invoke:
function: tencentcloud:getTcmqTopic
arguments:
topicName: topic_name
Using getTcmqTopic
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 getTcmqTopic(args: GetTcmqTopicArgs, opts?: InvokeOptions): Promise<GetTcmqTopicResult>
function getTcmqTopicOutput(args: GetTcmqTopicOutputArgs, opts?: InvokeOptions): Output<GetTcmqTopicResult>
def get_tcmq_topic(filters: Optional[Sequence[GetTcmqTopicFilter]] = None,
id: Optional[str] = None,
is_tag_filter: Optional[bool] = None,
limit: Optional[float] = None,
offset: Optional[float] = None,
result_output_file: Optional[str] = None,
topic_name: Optional[str] = None,
topic_name_lists: Optional[Sequence[str]] = None,
opts: Optional[InvokeOptions] = None) -> GetTcmqTopicResult
def get_tcmq_topic_output(filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTcmqTopicFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
is_tag_filter: Optional[pulumi.Input[bool]] = None,
limit: Optional[pulumi.Input[float]] = None,
offset: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
topic_name: Optional[pulumi.Input[str]] = None,
topic_name_lists: Optional[pulumi.Input[Sequence[pulumi.Input[str]]]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTcmqTopicResult]
func LookupTcmqTopic(ctx *Context, args *LookupTcmqTopicArgs, opts ...InvokeOption) (*LookupTcmqTopicResult, error)
func LookupTcmqTopicOutput(ctx *Context, args *LookupTcmqTopicOutputArgs, opts ...InvokeOption) LookupTcmqTopicResultOutput
> Note: This function is named LookupTcmqTopic
in the Go SDK.
public static class GetTcmqTopic
{
public static Task<GetTcmqTopicResult> InvokeAsync(GetTcmqTopicArgs args, InvokeOptions? opts = null)
public static Output<GetTcmqTopicResult> Invoke(GetTcmqTopicInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTcmqTopicResult> getTcmqTopic(GetTcmqTopicArgs args, InvokeOptions options)
public static Output<GetTcmqTopicResult> getTcmqTopic(GetTcmqTopicArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTcmqTopic:getTcmqTopic
arguments:
# arguments dictionary
The following arguments are supported:
- Filters
List<Get
Tcmq Topic Filter> - Filter. Currently, you can filter by tag. The tag name must be prefixed with
tag:
, such astag: owner
,tag: environment
, ortag: business
. - Id string
- Is
Tag boolFilter - For filtering by tag, this parameter must be set to
true
. - Limit double
- Number of topics to be returned per page in case of paginated return. If this parameter is not passed in, 20 will be used by default. Maximum value: 50.
- Offset double
- Starting position of the list of topics to be returned on the current page in case of paginated return. If a value is entered, limit is required. If this parameter is left empty, 0 will be used by default.
- Result
Output stringFile - Used to save results.
- Topic
Name string - Fuzzy search by TopicName.
- Topic
Name List<string>Lists - Filter by CMQ topic name.
- Filters
[]Get
Tcmq Topic Filter - Filter. Currently, you can filter by tag. The tag name must be prefixed with
tag:
, such astag: owner
,tag: environment
, ortag: business
. - Id string
- Is
Tag boolFilter - For filtering by tag, this parameter must be set to
true
. - Limit float64
- Number of topics to be returned per page in case of paginated return. If this parameter is not passed in, 20 will be used by default. Maximum value: 50.
- Offset float64
- Starting position of the list of topics to be returned on the current page in case of paginated return. If a value is entered, limit is required. If this parameter is left empty, 0 will be used by default.
- Result
Output stringFile - Used to save results.
- Topic
Name string - Fuzzy search by TopicName.
- Topic
Name []stringLists - Filter by CMQ topic name.
- filters
List<Get
Tcmq Topic Filter> - Filter. Currently, you can filter by tag. The tag name must be prefixed with
tag:
, such astag: owner
,tag: environment
, ortag: business
. - id String
- is
Tag BooleanFilter - For filtering by tag, this parameter must be set to
true
. - limit Double
- Number of topics to be returned per page in case of paginated return. If this parameter is not passed in, 20 will be used by default. Maximum value: 50.
- offset Double
- Starting position of the list of topics to be returned on the current page in case of paginated return. If a value is entered, limit is required. If this parameter is left empty, 0 will be used by default.
- result
Output StringFile - Used to save results.
- topic
Name String - Fuzzy search by TopicName.
- topic
Name List<String>Lists - Filter by CMQ topic name.
- filters
Get
Tcmq Topic Filter[] - Filter. Currently, you can filter by tag. The tag name must be prefixed with
tag:
, such astag: owner
,tag: environment
, ortag: business
. - id string
- is
Tag booleanFilter - For filtering by tag, this parameter must be set to
true
. - limit number
- Number of topics to be returned per page in case of paginated return. If this parameter is not passed in, 20 will be used by default. Maximum value: 50.
- offset number
- Starting position of the list of topics to be returned on the current page in case of paginated return. If a value is entered, limit is required. If this parameter is left empty, 0 will be used by default.
- result
Output stringFile - Used to save results.
- topic
Name string - Fuzzy search by TopicName.
- topic
Name string[]Lists - Filter by CMQ topic name.
- filters
Sequence[Get
Tcmq Topic Filter] - Filter. Currently, you can filter by tag. The tag name must be prefixed with
tag:
, such astag: owner
,tag: environment
, ortag: business
. - id str
- is_
tag_ boolfilter - For filtering by tag, this parameter must be set to
true
. - limit float
- Number of topics to be returned per page in case of paginated return. If this parameter is not passed in, 20 will be used by default. Maximum value: 50.
- offset float
- Starting position of the list of topics to be returned on the current page in case of paginated return. If a value is entered, limit is required. If this parameter is left empty, 0 will be used by default.
- result_
output_ strfile - Used to save results.
- topic_
name str - Fuzzy search by TopicName.
- topic_
name_ Sequence[str]lists - Filter by CMQ topic name.
- filters List<Property Map>
- Filter. Currently, you can filter by tag. The tag name must be prefixed with
tag:
, such astag: owner
,tag: environment
, ortag: business
. - id String
- is
Tag BooleanFilter - For filtering by tag, this parameter must be set to
true
. - limit Number
- Number of topics to be returned per page in case of paginated return. If this parameter is not passed in, 20 will be used by default. Maximum value: 50.
- offset Number
- Starting position of the list of topics to be returned on the current page in case of paginated return. If a value is entered, limit is required. If this parameter is left empty, 0 will be used by default.
- result
Output StringFile - Used to save results.
- topic
Name String - Fuzzy search by TopicName.
- topic
Name List<String>Lists - Filter by CMQ topic name.
getTcmqTopic Result
The following output properties are available:
- Id string
- Topic
Lists List<GetTcmq Topic Topic List> - Topic list.
- Filters
List<Get
Tcmq Topic Filter> - Is
Tag boolFilter - Limit double
- Offset double
- Result
Output stringFile - Topic
Name string - Topic name.
- Topic
Name List<string>Lists
- Id string
- Topic
Lists []GetTcmq Topic Topic List - Topic list.
- Filters
[]Get
Tcmq Topic Filter - Is
Tag boolFilter - Limit float64
- Offset float64
- Result
Output stringFile - Topic
Name string - Topic name.
- Topic
Name []stringLists
- id String
- topic
Lists List<GetTcmq Topic Topic List> - Topic list.
- filters
List<Get
Tcmq Topic Filter> - is
Tag BooleanFilter - limit Double
- offset Double
- result
Output StringFile - topic
Name String - Topic name.
- topic
Name List<String>Lists
- id string
- topic
Lists GetTcmq Topic Topic List[] - Topic list.
- filters
Get
Tcmq Topic Filter[] - is
Tag booleanFilter - limit number
- offset number
- result
Output stringFile - topic
Name string - Topic name.
- topic
Name string[]Lists
- id str
- topic_
lists Sequence[GetTcmq Topic Topic List] - Topic list.
- filters
Sequence[Get
Tcmq Topic Filter] - is_
tag_ boolfilter - limit float
- offset float
- result_
output_ strfile - topic_
name str - Topic name.
- topic_
name_ Sequence[str]lists
- id String
- topic
Lists List<Property Map> - Topic list.
- filters List<Property Map>
- is
Tag BooleanFilter - limit Number
- offset Number
- result
Output StringFile - topic
Name String - Topic name.
- topic
Name List<String>Lists
Supporting Types
GetTcmqTopicFilter
GetTcmqTopicTopicList
- Broker
Type double - Valid values:
0
(Pulsar),1
(RocketMQ). - Create
Time double - Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
- Create
Uin double - Creator
Uin
. Theresource
field for CAM authentication is composed of this field. - Filter
Type double - Filtering policy selected when a subscription is created: If
filterType
is 1,FilterTag
will be used for filtering. IffilterType
is 2,BindingKey
will be used for filtering. - Last
Modify doubleTime - Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- Max
Msg doubleSize - Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1-1,024 KB). The default value is 65,536.
- Msg
Count double - Number of current messages in the topic (number of retained messages).
- Msg
Retention doubleSeconds - Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
- Namespace
Name string - Namespace name.
- Qps double
- Number of messages published per second.
- Status double
- Cluster status.
0
: creating;1
: normal;2
: terminating;3
: deleted;4
: isolated;5
: creation failed;6
: deletion failed. - List<Get
Tcmq Topic Topic List Tag> - Associated tag.
- Tenant
Id string - Tenant ID.
- Topic
Id string - Topic ID.
- Topic
Name string - Fuzzy search by TopicName.
- Trace bool
- Message trace. true: enabled; false: not enabled.
- Broker
Type float64 - Valid values:
0
(Pulsar),1
(RocketMQ). - Create
Time float64 - Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
- Create
Uin float64 - Creator
Uin
. Theresource
field for CAM authentication is composed of this field. - Filter
Type float64 - Filtering policy selected when a subscription is created: If
filterType
is 1,FilterTag
will be used for filtering. IffilterType
is 2,BindingKey
will be used for filtering. - Last
Modify float64Time - Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- Max
Msg float64Size - Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1-1,024 KB). The default value is 65,536.
- Msg
Count float64 - Number of current messages in the topic (number of retained messages).
- Msg
Retention float64Seconds - Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
- Namespace
Name string - Namespace name.
- Qps float64
- Number of messages published per second.
- Status float64
- Cluster status.
0
: creating;1
: normal;2
: terminating;3
: deleted;4
: isolated;5
: creation failed;6
: deletion failed. - []Get
Tcmq Topic Topic List Tag - Associated tag.
- Tenant
Id string - Tenant ID.
- Topic
Id string - Topic ID.
- Topic
Name string - Fuzzy search by TopicName.
- Trace bool
- Message trace. true: enabled; false: not enabled.
- broker
Type Double - Valid values:
0
(Pulsar),1
(RocketMQ). - create
Time Double - Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
- create
Uin Double - Creator
Uin
. Theresource
field for CAM authentication is composed of this field. - filter
Type Double - Filtering policy selected when a subscription is created: If
filterType
is 1,FilterTag
will be used for filtering. IffilterType
is 2,BindingKey
will be used for filtering. - last
Modify DoubleTime - Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- max
Msg DoubleSize - Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1-1,024 KB). The default value is 65,536.
- msg
Count Double - Number of current messages in the topic (number of retained messages).
- msg
Retention DoubleSeconds - Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
- namespace
Name String - Namespace name.
- qps Double
- Number of messages published per second.
- status Double
- Cluster status.
0
: creating;1
: normal;2
: terminating;3
: deleted;4
: isolated;5
: creation failed;6
: deletion failed. - List<Get
Tcmq Topic Topic List Tag> - Associated tag.
- tenant
Id String - Tenant ID.
- topic
Id String - Topic ID.
- topic
Name String - Fuzzy search by TopicName.
- trace Boolean
- Message trace. true: enabled; false: not enabled.
- broker
Type number - Valid values:
0
(Pulsar),1
(RocketMQ). - create
Time number - Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
- create
Uin number - Creator
Uin
. Theresource
field for CAM authentication is composed of this field. - filter
Type number - Filtering policy selected when a subscription is created: If
filterType
is 1,FilterTag
will be used for filtering. IffilterType
is 2,BindingKey
will be used for filtering. - last
Modify numberTime - Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- max
Msg numberSize - Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1-1,024 KB). The default value is 65,536.
- msg
Count number - Number of current messages in the topic (number of retained messages).
- msg
Retention numberSeconds - Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
- namespace
Name string - Namespace name.
- qps number
- Number of messages published per second.
- status number
- Cluster status.
0
: creating;1
: normal;2
: terminating;3
: deleted;4
: isolated;5
: creation failed;6
: deletion failed. - Get
Tcmq Topic Topic List Tag[] - Associated tag.
- tenant
Id string - Tenant ID.
- topic
Id string - Topic ID.
- topic
Name string - Fuzzy search by TopicName.
- trace boolean
- Message trace. true: enabled; false: not enabled.
- broker_
type float - Valid values:
0
(Pulsar),1
(RocketMQ). - create_
time float - Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
- create_
uin float - Creator
Uin
. Theresource
field for CAM authentication is composed of this field. - filter_
type float - Filtering policy selected when a subscription is created: If
filterType
is 1,FilterTag
will be used for filtering. IffilterType
is 2,BindingKey
will be used for filtering. - last_
modify_ floattime - Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- max_
msg_ floatsize - Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1-1,024 KB). The default value is 65,536.
- msg_
count float - Number of current messages in the topic (number of retained messages).
- msg_
retention_ floatseconds - Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
- namespace_
name str - Namespace name.
- qps float
- Number of messages published per second.
- status float
- Cluster status.
0
: creating;1
: normal;2
: terminating;3
: deleted;4
: isolated;5
: creation failed;6
: deletion failed. - Sequence[Get
Tcmq Topic Topic List Tag] - Associated tag.
- tenant_
id str - Tenant ID.
- topic_
id str - Topic ID.
- topic_
name str - Fuzzy search by TopicName.
- trace bool
- Message trace. true: enabled; false: not enabled.
- broker
Type Number - Valid values:
0
(Pulsar),1
(RocketMQ). - create
Time Number - Topic creation time. A Unix timestamp accurate down to the millisecond will be returned.
- create
Uin Number - Creator
Uin
. Theresource
field for CAM authentication is composed of this field. - filter
Type Number - Filtering policy selected when a subscription is created: If
filterType
is 1,FilterTag
will be used for filtering. IffilterType
is 2,BindingKey
will be used for filtering. - last
Modify NumberTime - Time when the topic attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- max
Msg NumberSize - Maximum message size, which ranges from 1,024 to 1,048,576 bytes (i.e., 1-1,024 KB). The default value is 65,536.
- msg
Count Number - Number of current messages in the topic (number of retained messages).
- msg
Retention NumberSeconds - Maximum lifecycle of message in topic. After the period specified by this parameter has elapsed since a message is sent to the topic, the message will be deleted no matter whether it has been successfully pushed to the user. This parameter is measured in seconds and defaulted to one day (86,400 seconds), which cannot be modified.
- namespace
Name String - Namespace name.
- qps Number
- Number of messages published per second.
- status Number
- Cluster status.
0
: creating;1
: normal;2
: terminating;3
: deleted;4
: isolated;5
: creation failed;6
: deletion failed. - List<Property Map>
- Associated tag.
- tenant
Id String - Tenant ID.
- topic
Id String - Topic ID.
- topic
Name String - Fuzzy search by TopicName.
- trace Boolean
- Message trace. true: enabled; false: not enabled.
GetTcmqTopicTopicListTag
Package Details
- Repository
- tencentcloud tencentcloudstack/terraform-provider-tencentcloud
- License
- Notes
- This Pulumi package is based on the
tencentcloud
Terraform Provider.
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack