1. Packages
  2. Tencentcloud Provider
  3. API Docs
  4. getTdmqPublishers
tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack

tencentcloud.getTdmqPublishers

Explore with Pulumi AI

tencentcloud logo
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:

    ClusterId string
    Cluster ID.
    Namespace string
    namespace name.
    Topic string
    topic name.
    Filters List<GetTdmqPublishersFilter>
    Parameter filter, support ProducerName, Address field.
    Id string
    ResultOutputFile string
    Used to save results.
    Sort GetTdmqPublishersSort
    sorter.
    ClusterId string
    Cluster ID.
    Namespace string
    namespace name.
    Topic string
    topic name.
    Filters []GetTdmqPublishersFilter
    Parameter filter, support ProducerName, Address field.
    Id string
    ResultOutputFile string
    Used to save results.
    Sort GetTdmqPublishersSort
    sorter.
    clusterId String
    Cluster ID.
    namespace String
    namespace name.
    topic String
    topic name.
    filters List<GetTdmqPublishersFilter>
    Parameter filter, support ProducerName, Address field.
    id String
    resultOutputFile String
    Used to save results.
    sort GetTdmqPublishersSort
    sorter.
    clusterId string
    Cluster ID.
    namespace string
    namespace name.
    topic string
    topic name.
    filters GetTdmqPublishersFilter[]
    Parameter filter, support ProducerName, Address field.
    id string
    resultOutputFile string
    Used to save results.
    sort GetTdmqPublishersSort
    sorter.
    cluster_id str
    Cluster ID.
    namespace str
    namespace name.
    topic str
    topic name.
    filters Sequence[GetTdmqPublishersFilter]
    Parameter filter, support ProducerName, Address field.
    id str
    result_output_file str
    Used to save results.
    sort GetTdmqPublishersSort
    sorter.
    clusterId String
    Cluster ID.
    namespace String
    namespace name.
    topic String
    topic name.
    filters List<Property Map>
    Parameter filter, support ProducerName, Address field.
    id String
    resultOutputFile String
    Used to save results.
    sort Property Map
    sorter.

    getTdmqPublishers Result

    The following output properties are available:

    ClusterId string
    Id string
    Namespace string
    Publishers List<GetTdmqPublishersPublisher>
    Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
    Topic string
    Filters List<GetTdmqPublishersFilter>
    ResultOutputFile string
    Sort GetTdmqPublishersSort
    ClusterId string
    Id string
    Namespace string
    Publishers []GetTdmqPublishersPublisher
    Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
    Topic string
    Filters []GetTdmqPublishersFilter
    ResultOutputFile string
    Sort GetTdmqPublishersSort
    clusterId String
    id String
    namespace String
    publishers List<GetTdmqPublishersPublisher>
    Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
    topic String
    filters List<GetTdmqPublishersFilter>
    resultOutputFile String
    sort GetTdmqPublishersSort
    clusterId string
    id string
    namespace string
    publishers GetTdmqPublishersPublisher[]
    Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
    topic string
    filters GetTdmqPublishersFilter[]
    resultOutputFile string
    sort GetTdmqPublishersSort
    cluster_id str
    id str
    namespace str
    publishers Sequence[GetTdmqPublishersPublisher]
    Producer Information ListNote: This field may return null, indicating that no valid value can be obtained.
    topic str
    filters Sequence[GetTdmqPublishersFilter]
    result_output_file str
    sort GetTdmqPublishersSort
    clusterId 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>
    resultOutputFile String
    sort Property Map

    Supporting Types

    GetTdmqPublishersFilter

    Name string
    The name of the filter parameter.
    Values List<string>
    value.
    Name string
    The name of the filter parameter.
    Values []string
    value.
    name String
    The name of the filter parameter.
    values List<String>
    value.
    name string
    The name of the filter parameter.
    values string[]
    value.
    name str
    The name of the filter parameter.
    values Sequence[str]
    value.
    name String
    The name of the filter parameter.
    values List<String>
    value.

    GetTdmqPublishersPublisher

    Address string
    producer addressNote: This field may return null, indicating that no valid value can be obtained.
    AverageMsgSize double
    Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
    ClientVersion string
    client versionNote: This field may return null, indicating that no valid value can be obtained.
    ConnectedSince string
    connection timeNote: This field may return null, indicating that no valid value can be obtained.
    MsgRateIn double
    Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
    MsgThroughputIn double
    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.
    ProducerId double
    producer idNote: This field may return null, indicating that no valid value can be obtained.
    ProducerName 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.
    AverageMsgSize float64
    Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
    ClientVersion string
    client versionNote: This field may return null, indicating that no valid value can be obtained.
    ConnectedSince string
    connection timeNote: This field may return null, indicating that no valid value can be obtained.
    MsgRateIn float64
    Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
    MsgThroughputIn float64
    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.
    ProducerId float64
    producer idNote: This field may return null, indicating that no valid value can be obtained.
    ProducerName 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.
    averageMsgSize Double
    Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
    clientVersion String
    client versionNote: This field may return null, indicating that no valid value can be obtained.
    connectedSince String
    connection timeNote: This field may return null, indicating that no valid value can be obtained.
    msgRateIn Double
    Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
    msgThroughputIn Double
    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.
    producerId Double
    producer idNote: This field may return null, indicating that no valid value can be obtained.
    producerName 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.
    averageMsgSize number
    Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
    clientVersion string
    client versionNote: This field may return null, indicating that no valid value can be obtained.
    connectedSince string
    connection timeNote: This field may return null, indicating that no valid value can be obtained.
    msgRateIn number
    Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
    msgThroughputIn number
    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.
    producerId number
    producer idNote: This field may return null, indicating that no valid value can be obtained.
    producerName 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_size float
    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_in float
    Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
    msg_throughput_in float
    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.
    averageMsgSize Number
    Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
    clientVersion String
    client versionNote: This field may return null, indicating that no valid value can be obtained.
    connectedSince String
    connection timeNote: This field may return null, indicating that no valid value can be obtained.
    msgRateIn Number
    Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
    msgThroughputIn Number
    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.
    producerId Number
    producer idNote: This field may return null, indicating that no valid value can be obtained.
    producerName String
    producer nameNote: This field may return null, indicating that no valid value can be obtained.

    GetTdmqPublishersSort

    Name string
    sorter.
    Order string
    Ascending ASC, descending DESC.
    Name string
    sorter.
    Order string
    Ascending ASC, descending DESC.
    name String
    sorter.
    order String
    Ascending ASC, descending DESC.
    name string
    sorter.
    order string
    Ascending ASC, descending DESC.
    name str
    sorter.
    order str
    Ascending ASC, descending DESC.
    name String
    sorter.
    order String
    Ascending ASC, descending DESC.

    Package Details

    Repository
    tencentcloud tencentcloudstack/terraform-provider-tencentcloud
    License
    Notes
    This Pulumi package is based on the tencentcloud Terraform Provider.
    tencentcloud logo
    tencentcloud 1.81.189 published on Wednesday, Apr 30, 2025 by tencentcloudstack