tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTcmqSubscribe
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 subscribe
Using getTcmqSubscribe
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 getTcmqSubscribe(args: GetTcmqSubscribeArgs, opts?: InvokeOptions): Promise<GetTcmqSubscribeResult>
function getTcmqSubscribeOutput(args: GetTcmqSubscribeOutputArgs, opts?: InvokeOptions): Output<GetTcmqSubscribeResult>
def get_tcmq_subscribe(id: Optional[str] = None,
limit: Optional[float] = None,
offset: Optional[float] = None,
result_output_file: Optional[str] = None,
subscription_name: Optional[str] = None,
topic_name: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTcmqSubscribeResult
def get_tcmq_subscribe_output(id: Optional[pulumi.Input[str]] = None,
limit: Optional[pulumi.Input[float]] = None,
offset: Optional[pulumi.Input[float]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
subscription_name: Optional[pulumi.Input[str]] = None,
topic_name: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTcmqSubscribeResult]
func LookupTcmqSubscribe(ctx *Context, args *LookupTcmqSubscribeArgs, opts ...InvokeOption) (*LookupTcmqSubscribeResult, error)
func LookupTcmqSubscribeOutput(ctx *Context, args *LookupTcmqSubscribeOutputArgs, opts ...InvokeOption) LookupTcmqSubscribeResultOutput
> Note: This function is named LookupTcmqSubscribe
in the Go SDK.
public static class GetTcmqSubscribe
{
public static Task<GetTcmqSubscribeResult> InvokeAsync(GetTcmqSubscribeArgs args, InvokeOptions? opts = null)
public static Output<GetTcmqSubscribeResult> Invoke(GetTcmqSubscribeInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTcmqSubscribeResult> getTcmqSubscribe(GetTcmqSubscribeArgs args, InvokeOptions options)
public static Output<GetTcmqSubscribeResult> getTcmqSubscribe(GetTcmqSubscribeArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTcmqSubscribe:getTcmqSubscribe
arguments:
# arguments dictionary
The following arguments are supported:
- Topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Id string
- 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.
- Subscription
Name string - Fuzzy search by SubscriptionName.
- Topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Id string
- 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.
- Subscription
Name string - Fuzzy search by SubscriptionName.
- topic
Name String - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id String
- 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.
- subscription
Name String - Fuzzy search by SubscriptionName.
- topic
Name string - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id string
- 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.
- subscription
Name string - Fuzzy search by SubscriptionName.
- topic_
name str - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id str
- 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.
- subscription_
name str - Fuzzy search by SubscriptionName.
- topic
Name String - Topic name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id String
- 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.
- subscription
Name String - Fuzzy search by SubscriptionName.
getTcmqSubscribe Result
The following output properties are available:
- Id string
- Subscription
Lists List<GetTcmq Subscribe Subscription List> - Set of subscription attributes.
- Topic
Name string - Limit double
- Offset double
- Result
Output stringFile - Subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- Id string
- Subscription
Lists []GetTcmq Subscribe Subscription List - Set of subscription attributes.
- Topic
Name string - Limit float64
- Offset float64
- Result
Output stringFile - Subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id String
- subscription
Lists List<GetTcmq Subscribe Subscription List> - Set of subscription attributes.
- topic
Name String - limit Double
- offset Double
- result
Output StringFile - subscription
Name String - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id string
- subscription
Lists GetTcmq Subscribe Subscription List[] - Set of subscription attributes.
- topic
Name string - limit number
- offset number
- result
Output stringFile - subscription
Name string - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id str
- subscription_
lists Sequence[GetTcmq Subscribe Subscription List] - Set of subscription attributes.
- topic_
name str - limit float
- offset float
- result_
output_ strfile - subscription_
name str - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
- id String
- subscription
Lists List<Property Map> - Set of subscription attributes.
- topic
Name String - limit Number
- offset Number
- result
Output StringFile - subscription
Name String - Subscription name, which must be unique in the same topic under the same account in the same region. It can contain up to 64 letters, digits, and hyphens and must begin with a letter.
Supporting Types
GetTcmqSubscribeSubscriptionList
- Binding
Keys List<string> - Filtering policy for subscribing to and receiving messages.
- Create
Time double - Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
- Endpoint string
- Endpoint that receives notifications, which varies by
protocol
: for HTTP, the endpoint must start withhttp://
, and thehost
can be a domain or IP; forqueue
,queueName
should be entered. - List<string>
- 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 subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- Msg
Count double - Number of messages to be delivered in the subscription.
- Notify
Content stringFormat - Push content format. Valid values: 1.
JSON
; 2.SIMPLIFIED
, i.e., the raw format. IfProtocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - Notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Protocol string
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
- Subscription
Id string - Subscription ID, which will be used during monitoring data pull.
- Subscription
Name string - Fuzzy search by SubscriptionName.
- Topic
Owner double - Subscription owner APPID.
- Binding
Keys []string - Filtering policy for subscribing to and receiving messages.
- Create
Time float64 - Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
- Endpoint string
- Endpoint that receives notifications, which varies by
protocol
: for HTTP, the endpoint must start withhttp://
, and thehost
can be a domain or IP; forqueue
,queueName
should be entered. - []string
- 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 subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- Msg
Count float64 - Number of messages to be delivered in the subscription.
- Notify
Content stringFormat - Push content format. Valid values: 1.
JSON
; 2.SIMPLIFIED
, i.e., the raw format. IfProtocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - Notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - Protocol string
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
- Subscription
Id string - Subscription ID, which will be used during monitoring data pull.
- Subscription
Name string - Fuzzy search by SubscriptionName.
- Topic
Owner float64 - Subscription owner APPID.
- binding
Keys List<String> - Filtering policy for subscribing to and receiving messages.
- create
Time Double - Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
- endpoint String
- Endpoint that receives notifications, which varies by
protocol
: for HTTP, the endpoint must start withhttp://
, and thehost
can be a domain or IP; forqueue
,queueName
should be entered. - List<String>
- 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 subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- msg
Count Double - Number of messages to be delivered in the subscription.
- notify
Content StringFormat - Push content format. Valid values: 1.
JSON
; 2.SIMPLIFIED
, i.e., the raw format. IfProtocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy String - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol String
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
- subscription
Id String - Subscription ID, which will be used during monitoring data pull.
- subscription
Name String - Fuzzy search by SubscriptionName.
- topic
Owner Double - Subscription owner APPID.
- binding
Keys string[] - Filtering policy for subscribing to and receiving messages.
- create
Time number - Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
- endpoint string
- Endpoint that receives notifications, which varies by
protocol
: for HTTP, the endpoint must start withhttp://
, and thehost
can be a domain or IP; forqueue
,queueName
should be entered. - string[]
- 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 subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- msg
Count number - Number of messages to be delivered in the subscription.
- notify
Content stringFormat - Push content format. Valid values: 1.
JSON
; 2.SIMPLIFIED
, i.e., the raw format. IfProtocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy string - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol string
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
- subscription
Id string - Subscription ID, which will be used during monitoring data pull.
- subscription
Name string - Fuzzy search by SubscriptionName.
- topic
Owner number - Subscription owner APPID.
- binding_
keys Sequence[str] - Filtering policy for subscribing to and receiving messages.
- create_
time float - Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
- endpoint str
- Endpoint that receives notifications, which varies by
protocol
: for HTTP, the endpoint must start withhttp://
, and thehost
can be a domain or IP; forqueue
,queueName
should be entered. - Sequence[str]
- 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 subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- msg_
count float - Number of messages to be delivered in the subscription.
- notify_
content_ strformat - Push content format. Valid values: 1.
JSON
; 2.SIMPLIFIED
, i.e., the raw format. IfProtocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify_
strategy str - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol str
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
- subscription_
id str - Subscription ID, which will be used during monitoring data pull.
- subscription_
name str - Fuzzy search by SubscriptionName.
- topic_
owner float - Subscription owner APPID.
- binding
Keys List<String> - Filtering policy for subscribing to and receiving messages.
- create
Time Number - Subscription creation time. A Unix timestamp accurate down to the millisecond will be returned.
- endpoint String
- Endpoint that receives notifications, which varies by
protocol
: for HTTP, the endpoint must start withhttp://
, and thehost
can be a domain or IP; forqueue
,queueName
should be entered. - List<String>
- 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 subscription attribute is last modified. A Unix timestamp accurate down to the millisecond will be returned.
- msg
Count Number - Number of messages to be delivered in the subscription.
- notify
Content StringFormat - Push content format. Valid values: 1.
JSON
; 2.SIMPLIFIED
, i.e., the raw format. IfProtocol
isqueue
, this value must beSIMPLIFIED
. IfProtocol
ishttp
, both options are acceptable, and the default value isJSON
. - notify
Strategy String - CMQ push server retry policy in case an error occurs while pushing a message to
Endpoint
. Valid values: 1.BACKOFF_RETRY
: backoff retry, which is to retry at a fixed interval, discard the message after a certain number of retries, and continue to push the next message; 2.EXPONENTIAL_DECAY_RETRY
: exponential decay retry, which is to retry at an exponentially increasing interval, such as 1s, 2s, 4s, 8s, and so on. As a message can be retained in a topic for one day, failed messages will be discarded at most after one day of retry. Default value:EXPONENTIAL_DECAY_RETRY
. - protocol String
- Subscription protocol. Currently, two protocols are supported: HTTP and queue. To use the HTTP protocol, you need to build your own web server to receive messages. With the queue protocol, messages are automatically pushed to a CMQ queue and you can pull them concurrently.
- subscription
Id String - Subscription ID, which will be used during monitoring data pull.
- subscription
Name String - Fuzzy search by SubscriptionName.
- topic
Owner Number - Subscription owner APPID.
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