tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack
tencentcloud.getTdmqPublishers
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 tdmq publishers
Example Usage
import * as pulumi from "@pulumi/pulumi";
import * as tencentcloud from "@pulumi/tencentcloud";
const publishers = tencentcloud.getTdmqPublishers({
clusterId: "pulsar-9n95ax58b9vn",
filters: [{
name: "ProducerName",
values: ["test"],
}],
namespace: "keep-ns",
sort: {
name: "ProducerName",
order: "DESC",
},
topic: "keep-topic",
});
import pulumi
import pulumi_tencentcloud as tencentcloud
publishers = tencentcloud.get_tdmq_publishers(cluster_id="pulsar-9n95ax58b9vn",
filters=[{
"name": "ProducerName",
"values": ["test"],
}],
namespace="keep-ns",
sort={
"name": "ProducerName",
"order": "DESC",
},
topic="keep-topic")
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.GetTdmqPublishers(ctx, &tencentcloud.GetTdmqPublishersArgs{
ClusterId: "pulsar-9n95ax58b9vn",
Filters: []tencentcloud.GetTdmqPublishersFilter{
{
Name: pulumi.StringRef("ProducerName"),
Values: []string{
"test",
},
},
},
Namespace: "keep-ns",
Sort: tencentcloud.GetTdmqPublishersSort{
Name: "ProducerName",
Order: "DESC",
},
Topic: "keep-topic",
}, 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 publishers = Tencentcloud.GetTdmqPublishers.Invoke(new()
{
ClusterId = "pulsar-9n95ax58b9vn",
Filters = new[]
{
new Tencentcloud.Inputs.GetTdmqPublishersFilterInputArgs
{
Name = "ProducerName",
Values = new[]
{
"test",
},
},
},
Namespace = "keep-ns",
Sort = new Tencentcloud.Inputs.GetTdmqPublishersSortInputArgs
{
Name = "ProducerName",
Order = "DESC",
},
Topic = "keep-topic",
});
});
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.GetTdmqPublishersArgs;
import com.pulumi.tencentcloud.inputs.GetTdmqPublishersSortArgs;
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 publishers = TencentcloudFunctions.getTdmqPublishers(GetTdmqPublishersArgs.builder()
.clusterId("pulsar-9n95ax58b9vn")
.filters(GetTdmqPublishersFilterArgs.builder()
.name("ProducerName")
.values("test")
.build())
.namespace("keep-ns")
.sort(GetTdmqPublishersSortArgs.builder()
.name("ProducerName")
.order("DESC")
.build())
.topic("keep-topic")
.build());
}
}
variables:
publishers:
fn::invoke:
function: tencentcloud:getTdmqPublishers
arguments:
clusterId: pulsar-9n95ax58b9vn
filters:
- name: ProducerName
values:
- test
namespace: keep-ns
sort:
name: ProducerName
order: DESC
topic: keep-topic
Using getTdmqPublishers
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 getTdmqPublishers(args: GetTdmqPublishersArgs, opts?: InvokeOptions): Promise<GetTdmqPublishersResult>
function getTdmqPublishersOutput(args: GetTdmqPublishersOutputArgs, opts?: InvokeOptions): Output<GetTdmqPublishersResult>
def get_tdmq_publishers(cluster_id: Optional[str] = None,
filters: Optional[Sequence[GetTdmqPublishersFilter]] = None,
id: Optional[str] = None,
namespace: Optional[str] = None,
result_output_file: Optional[str] = None,
sort: Optional[GetTdmqPublishersSort] = None,
topic: Optional[str] = None,
opts: Optional[InvokeOptions] = None) -> GetTdmqPublishersResult
def get_tdmq_publishers_output(cluster_id: Optional[pulumi.Input[str]] = None,
filters: Optional[pulumi.Input[Sequence[pulumi.Input[GetTdmqPublishersFilterArgs]]]] = None,
id: Optional[pulumi.Input[str]] = None,
namespace: Optional[pulumi.Input[str]] = None,
result_output_file: Optional[pulumi.Input[str]] = None,
sort: Optional[pulumi.Input[GetTdmqPublishersSortArgs]] = None,
topic: Optional[pulumi.Input[str]] = None,
opts: Optional[InvokeOptions] = None) -> Output[GetTdmqPublishersResult]
func GetTdmqPublishers(ctx *Context, args *GetTdmqPublishersArgs, opts ...InvokeOption) (*GetTdmqPublishersResult, error)
func GetTdmqPublishersOutput(ctx *Context, args *GetTdmqPublishersOutputArgs, opts ...InvokeOption) GetTdmqPublishersResultOutput
> Note: This function is named GetTdmqPublishers
in the Go SDK.
public static class GetTdmqPublishers
{
public static Task<GetTdmqPublishersResult> InvokeAsync(GetTdmqPublishersArgs args, InvokeOptions? opts = null)
public static Output<GetTdmqPublishersResult> Invoke(GetTdmqPublishersInvokeArgs args, InvokeOptions? opts = null)
}
public static CompletableFuture<GetTdmqPublishersResult> getTdmqPublishers(GetTdmqPublishersArgs args, InvokeOptions options)
public static Output<GetTdmqPublishersResult> getTdmqPublishers(GetTdmqPublishersArgs args, InvokeOptions options)
fn::invoke:
function: tencentcloud:index/getTdmqPublishers:getTdmqPublishers
arguments:
# arguments dictionary
The following arguments are supported:
- Cluster
Id string - Cluster ID.
- Namespace string
- namespace name.
- Topic string
- topic name.
- Filters
List<Get
Tdmq Publishers Filter> - Parameter filter, support ProducerName, Address field.
- Id string
- Result
Output stringFile - Used to save results.
- Sort
Get
Tdmq Publishers Sort - sorter.
- Cluster
Id string - Cluster ID.
- Namespace string
- namespace name.
- Topic string
- topic name.
- Filters
[]Get
Tdmq Publishers Filter - Parameter filter, support ProducerName, Address field.
- Id string
- Result
Output stringFile - Used to save results.
- Sort
Get
Tdmq Publishers Sort - sorter.
- cluster
Id String - Cluster ID.
- namespace String
- namespace name.
- topic String
- topic name.
- filters
List<Get
Tdmq Publishers Filter> - Parameter filter, support ProducerName, Address field.
- id String
- result
Output StringFile - Used to save results.
- sort
Get
Tdmq Publishers Sort - sorter.
- cluster
Id string - Cluster ID.
- namespace string
- namespace name.
- topic string
- topic name.
- filters
Get
Tdmq Publishers Filter[] - Parameter filter, support ProducerName, Address field.
- id string
- result
Output stringFile - Used to save results.
- sort
Get
Tdmq Publishers Sort - sorter.
- cluster_
id str - Cluster ID.
- namespace str
- namespace name.
- topic str
- topic name.
- filters
Sequence[Get
Tdmq Publishers Filter] - Parameter filter, support ProducerName, Address field.
- id str
- result_
output_ strfile - Used to save results.
- sort
Get
Tdmq Publishers Sort - sorter.
- cluster
Id String - Cluster ID.
- namespace String
- namespace name.
- topic String
- topic name.
- filters List<Property Map>
- Parameter filter, support ProducerName, Address field.
- id String
- result
Output StringFile - Used to save results.
- sort Property Map
- sorter.
getTdmqPublishers Result
The following output properties are available:
- Cluster
Id string - Id string
- Namespace string
- Publishers
List<Get
Tdmq Publishers Publisher> - Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
- Topic string
- Filters
List<Get
Tdmq Publishers Filter> - Result
Output stringFile - Sort
Get
Tdmq Publishers Sort
- Cluster
Id string - Id string
- Namespace string
- Publishers
[]Get
Tdmq Publishers Publisher - Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
- Topic string
- Filters
[]Get
Tdmq Publishers Filter - Result
Output stringFile - Sort
Get
Tdmq Publishers Sort
- cluster
Id String - id String
- namespace String
- publishers
List<Get
Tdmq Publishers Publisher> - Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
- topic String
- filters
List<Get
Tdmq Publishers Filter> - result
Output StringFile - sort
Get
Tdmq Publishers Sort
- cluster
Id string - id string
- namespace string
- publishers
Get
Tdmq Publishers Publisher[] - Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
- topic string
- filters
Get
Tdmq Publishers Filter[] - result
Output stringFile - sort
Get
Tdmq Publishers Sort
- cluster_
id str - id str
- namespace str
- publishers
Sequence[Get
Tdmq Publishers Publisher] - Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
- topic str
- filters
Sequence[Get
Tdmq Publishers Filter] - result_
output_ strfile - sort
Get
Tdmq Publishers Sort
- cluster
Id String - id String
- namespace String
- publishers List<Property Map>
- Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
- topic String
- filters List<Property Map>
- result
Output StringFile - sort Property Map
Supporting Types
GetTdmqPublishersFilter
GetTdmqPublishersPublisher
- Address string
- producer addressNote: This field may return null, indicating that no valid value can be obtained.
- Average
Msg doubleSize - Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
- Client
Version string - client versionNote: This field may return null, indicating that no valid value can be obtained.
- Connected
Since string - connection timeNote: This field may return null, indicating that no valid value can be obtained.
- Msg
Rate doubleIn - Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
- Msg
Throughput doubleIn - Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
- Partition double
- The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
- Producer
Id double - producer idNote: This field may return null, indicating that no valid value can be obtained.
- Producer
Name string - producer nameNote: This field may return null, indicating that no valid value can be obtained.
- Address string
- producer addressNote: This field may return null, indicating that no valid value can be obtained.
- Average
Msg float64Size - Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
- Client
Version string - client versionNote: This field may return null, indicating that no valid value can be obtained.
- Connected
Since string - connection timeNote: This field may return null, indicating that no valid value can be obtained.
- Msg
Rate float64In - Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
- Msg
Throughput float64In - Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
- Partition float64
- The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
- Producer
Id float64 - producer idNote: This field may return null, indicating that no valid value can be obtained.
- Producer
Name string - producer nameNote: This field may return null, indicating that no valid value can be obtained.
- address String
- producer addressNote: This field may return null, indicating that no valid value can be obtained.
- average
Msg DoubleSize - Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
- client
Version String - client versionNote: This field may return null, indicating that no valid value can be obtained.
- connected
Since String - connection timeNote: This field may return null, indicating that no valid value can be obtained.
- msg
Rate DoubleIn - Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
- msg
Throughput DoubleIn - Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
- partition Double
- The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
- producer
Id Double - producer idNote: This field may return null, indicating that no valid value can be obtained.
- producer
Name String - producer nameNote: This field may return null, indicating that no valid value can be obtained.
- address string
- producer addressNote: This field may return null, indicating that no valid value can be obtained.
- average
Msg numberSize - Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
- client
Version string - client versionNote: This field may return null, indicating that no valid value can be obtained.
- connected
Since string - connection timeNote: This field may return null, indicating that no valid value can be obtained.
- msg
Rate numberIn - Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
- msg
Throughput numberIn - Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
- partition number
- The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
- producer
Id number - producer idNote: This field may return null, indicating that no valid value can be obtained.
- producer
Name string - producer nameNote: This field may return null, indicating that no valid value can be obtained.
- address str
- producer addressNote: This field may return null, indicating that no valid value can be obtained.
- average_
msg_ floatsize - Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
- client_
version str - client versionNote: This field may return null, indicating that no valid value can be obtained.
- connected_
since str - connection timeNote: This field may return null, indicating that no valid value can be obtained.
- msg_
rate_ floatin - Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
- msg_
throughput_ floatin - Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
- partition float
- The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
- producer_
id float - producer idNote: This field may return null, indicating that no valid value can be obtained.
- producer_
name str - producer nameNote: This field may return null, indicating that no valid value can be obtained.
- address String
- producer addressNote: This field may return null, indicating that no valid value can be obtained.
- average
Msg NumberSize - Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
- client
Version String - client versionNote: This field may return null, indicating that no valid value can be obtained.
- connected
Since String - connection timeNote: This field may return null, indicating that no valid value can be obtained.
- msg
Rate NumberIn - Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
- msg
Throughput NumberIn - Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
- partition Number
- The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
- producer
Id Number - producer idNote: This field may return null, indicating that no valid value can be obtained.
- producer
Name String - producer nameNote: This field may return null, indicating that no valid value can be obtained.
GetTdmqPublishersSort
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