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

tencentcloud.getTdmqPublishers

Explore with Pulumi AI

tencentcloud 1.81.183 published on Wednesday, Apr 16, 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",
});
Copy
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")
Copy
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
	})
}
Copy
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",
    });

});
Copy
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());

    }
}
Copy
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
Copy

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>
Copy
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]
Copy
func GetTdmqPublishers(ctx *Context, args *GetTdmqPublishersArgs, opts ...InvokeOption) (*GetTdmqPublishersResult, error)
func GetTdmqPublishersOutput(ctx *Context, args *GetTdmqPublishersOutputArgs, opts ...InvokeOption) GetTdmqPublishersResultOutput
Copy

> 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)
}
Copy
public static CompletableFuture<GetTdmqPublishersResult> getTdmqPublishers(GetTdmqPublishersArgs args, InvokeOptions options)
public static Output<GetTdmqPublishersResult> getTdmqPublishers(GetTdmqPublishersArgs args, InvokeOptions options)
Copy
fn::invoke:
  function: tencentcloud:index/getTdmqPublishers:getTdmqPublishers
  arguments:
    # arguments dictionary
Copy

The following arguments are supported:

ClusterId This property is required. string
Cluster ID.
Namespace This property is required. string
namespace name.
Topic This property is required. string
topic name.
Filters List<GetTdmqPublishersFilter>
Parameter filter, support ProducerName, Address field.
Id string
ResultOutputFile string
Used to save results.
Sort GetTdmqPublishersSort
sorter.
ClusterId This property is required. string
Cluster ID.
Namespace This property is required. string
namespace name.
Topic This property is required. string
topic name.
Filters []GetTdmqPublishersFilter
Parameter filter, support ProducerName, Address field.
Id string
ResultOutputFile string
Used to save results.
Sort GetTdmqPublishersSort
sorter.
clusterId This property is required. String
Cluster ID.
namespace This property is required. String
namespace name.
topic This property is required. String
topic name.
filters List<GetTdmqPublishersFilter>
Parameter filter, support ProducerName, Address field.
id String
resultOutputFile String
Used to save results.
sort GetTdmqPublishersSort
sorter.
clusterId This property is required. string
Cluster ID.
namespace This property is required. string
namespace name.
topic This property is required. string
topic name.
filters GetTdmqPublishersFilter[]
Parameter filter, support ProducerName, Address field.
id string
resultOutputFile string
Used to save results.
sort GetTdmqPublishersSort
sorter.
cluster_id This property is required. str
Cluster ID.
namespace This property is required. str
namespace name.
topic This property is required. 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 This property is required. String
Cluster ID.
namespace This property is required. String
namespace name.
topic This property is required. 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 This property is required. string
producer addressNote: This field may return null, indicating that no valid value can be obtained.
AverageMsgSize This property is required. double
Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
ClientVersion This property is required. string
client versionNote: This field may return null, indicating that no valid value can be obtained.
ConnectedSince This property is required. string
connection timeNote: This field may return null, indicating that no valid value can be obtained.
MsgRateIn This property is required. double
Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
MsgThroughputIn This property is required. double
Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
Partition This property is required. double
The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
ProducerId This property is required. double
producer idNote: This field may return null, indicating that no valid value can be obtained.
ProducerName This property is required. string
producer nameNote: This field may return null, indicating that no valid value can be obtained.
Address This property is required. string
producer addressNote: This field may return null, indicating that no valid value can be obtained.
AverageMsgSize This property is required. float64
Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
ClientVersion This property is required. string
client versionNote: This field may return null, indicating that no valid value can be obtained.
ConnectedSince This property is required. string
connection timeNote: This field may return null, indicating that no valid value can be obtained.
MsgRateIn This property is required. float64
Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
MsgThroughputIn This property is required. float64
Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
Partition This property is required. float64
The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
ProducerId This property is required. float64
producer idNote: This field may return null, indicating that no valid value can be obtained.
ProducerName This property is required. string
producer nameNote: This field may return null, indicating that no valid value can be obtained.
address This property is required. String
producer addressNote: This field may return null, indicating that no valid value can be obtained.
averageMsgSize This property is required. Double
Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
clientVersion This property is required. String
client versionNote: This field may return null, indicating that no valid value can be obtained.
connectedSince This property is required. String
connection timeNote: This field may return null, indicating that no valid value can be obtained.
msgRateIn This property is required. Double
Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
msgThroughputIn This property is required. Double
Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
partition This property is required. Double
The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
producerId This property is required. Double
producer idNote: This field may return null, indicating that no valid value can be obtained.
producerName This property is required. String
producer nameNote: This field may return null, indicating that no valid value can be obtained.
address This property is required. string
producer addressNote: This field may return null, indicating that no valid value can be obtained.
averageMsgSize This property is required. number
Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
clientVersion This property is required. string
client versionNote: This field may return null, indicating that no valid value can be obtained.
connectedSince This property is required. string
connection timeNote: This field may return null, indicating that no valid value can be obtained.
msgRateIn This property is required. number
Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
msgThroughputIn This property is required. number
Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
partition This property is required. number
The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
producerId This property is required. number
producer idNote: This field may return null, indicating that no valid value can be obtained.
producerName This property is required. string
producer nameNote: This field may return null, indicating that no valid value can be obtained.
address This property is required. str
producer addressNote: This field may return null, indicating that no valid value can be obtained.
average_msg_size This property is required. float
Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
client_version This property is required. str
client versionNote: This field may return null, indicating that no valid value can be obtained.
connected_since This property is required. str
connection timeNote: This field may return null, indicating that no valid value can be obtained.
msg_rate_in This property is required. float
Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
msg_throughput_in This property is required. float
Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
partition This property is required. float
The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
producer_id This property is required. float
producer idNote: This field may return null, indicating that no valid value can be obtained.
producer_name This property is required. str
producer nameNote: This field may return null, indicating that no valid value can be obtained.
address This property is required. String
producer addressNote: This field may return null, indicating that no valid value can be obtained.
averageMsgSize This property is required. Number
Average message size (bytes)Note: This field may return null, indicating that no valid value can be obtained.
clientVersion This property is required. String
client versionNote: This field may return null, indicating that no valid value can be obtained.
connectedSince This property is required. String
connection timeNote: This field may return null, indicating that no valid value can be obtained.
msgRateIn This property is required. Number
Message production rate (articles/second)Note: This field may return null, indicating that no valid value can be obtained.
msgThroughputIn This property is required. Number
Message production throughput rate (bytes/second)Note: This field may return null, indicating that no valid value can be obtained.
partition This property is required. Number
The topic partition number of the producer connectionNote: This field may return null, indicating that no valid value can be obtained.
producerId This property is required. Number
producer idNote: This field may return null, indicating that no valid value can be obtained.
producerName This property is required. String
producer nameNote: This field may return null, indicating that no valid value can be obtained.

GetTdmqPublishersSort

Name This property is required. string
sorter.
Order This property is required. string
Ascending ASC, descending DESC.
Name This property is required. string
sorter.
Order This property is required. string
Ascending ASC, descending DESC.
name This property is required. String
sorter.
order This property is required. String
Ascending ASC, descending DESC.
name This property is required. string
sorter.
order This property is required. string
Ascending ASC, descending DESC.
name This property is required. str
sorter.
order This property is required. str
Ascending ASC, descending DESC.
name This property is required. String
sorter.
order This property is required. 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 1.81.183 published on Wednesday, Apr 16, 2025 by tencentcloudstack