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

tencentcloud.getCkafkaDatahubTopic

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 ckafka datahub_topic

    Example Usage

    import * as pulumi from "@pulumi/pulumi";
    import * as tencentcloud from "@pulumi/tencentcloud";
    
    const datahubTopic = tencentcloud.getCkafkaDatahubTopic({});
    
    import pulumi
    import pulumi_tencentcloud as tencentcloud
    
    datahub_topic = tencentcloud.get_ckafka_datahub_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.LookupCkafkaDatahubTopic(ctx, &tencentcloud.LookupCkafkaDatahubTopicArgs{}, 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 datahubTopic = Tencentcloud.GetCkafkaDatahubTopic.Invoke();
    
    });
    
    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.GetCkafkaDatahubTopicArgs;
    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 datahubTopic = TencentcloudFunctions.getCkafkaDatahubTopic();
    
        }
    }
    
    variables:
      datahubTopic:
        fn::invoke:
          function: tencentcloud:getCkafkaDatahubTopic
          arguments: {}
    

    Using getCkafkaDatahubTopic

    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 getCkafkaDatahubTopic(args: GetCkafkaDatahubTopicArgs, opts?: InvokeOptions): Promise<GetCkafkaDatahubTopicResult>
    function getCkafkaDatahubTopicOutput(args: GetCkafkaDatahubTopicOutputArgs, opts?: InvokeOptions): Output<GetCkafkaDatahubTopicResult>
    def get_ckafka_datahub_topic(id: Optional[str] = None,
                                 limit: Optional[float] = None,
                                 offset: Optional[float] = None,
                                 result_output_file: Optional[str] = None,
                                 search_word: Optional[str] = None,
                                 opts: Optional[InvokeOptions] = None) -> GetCkafkaDatahubTopicResult
    def get_ckafka_datahub_topic_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,
                                 search_word: Optional[pulumi.Input[str]] = None,
                                 opts: Optional[InvokeOptions] = None) -> Output[GetCkafkaDatahubTopicResult]
    func LookupCkafkaDatahubTopic(ctx *Context, args *LookupCkafkaDatahubTopicArgs, opts ...InvokeOption) (*LookupCkafkaDatahubTopicResult, error)
    func LookupCkafkaDatahubTopicOutput(ctx *Context, args *LookupCkafkaDatahubTopicOutputArgs, opts ...InvokeOption) LookupCkafkaDatahubTopicResultOutput

    > Note: This function is named LookupCkafkaDatahubTopic in the Go SDK.

    public static class GetCkafkaDatahubTopic 
    {
        public static Task<GetCkafkaDatahubTopicResult> InvokeAsync(GetCkafkaDatahubTopicArgs args, InvokeOptions? opts = null)
        public static Output<GetCkafkaDatahubTopicResult> Invoke(GetCkafkaDatahubTopicInvokeArgs args, InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetCkafkaDatahubTopicResult> getCkafkaDatahubTopic(GetCkafkaDatahubTopicArgs args, InvokeOptions options)
    public static Output<GetCkafkaDatahubTopicResult> getCkafkaDatahubTopic(GetCkafkaDatahubTopicArgs args, InvokeOptions options)
    
    fn::invoke:
      function: tencentcloud:index/getCkafkaDatahubTopic:getCkafkaDatahubTopic
      arguments:
        # arguments dictionary

    The following arguments are supported:

    Id string
    Limit double
    The maximum number of results returned this time, the default is 50, and the maximum value is 50.
    Offset double
    The offset position of this query, the default is 0.
    ResultOutputFile string
    Used to save results.
    SearchWord string
    query key word.
    Id string
    Limit float64
    The maximum number of results returned this time, the default is 50, and the maximum value is 50.
    Offset float64
    The offset position of this query, the default is 0.
    ResultOutputFile string
    Used to save results.
    SearchWord string
    query key word.
    id String
    limit Double
    The maximum number of results returned this time, the default is 50, and the maximum value is 50.
    offset Double
    The offset position of this query, the default is 0.
    resultOutputFile String
    Used to save results.
    searchWord String
    query key word.
    id string
    limit number
    The maximum number of results returned this time, the default is 50, and the maximum value is 50.
    offset number
    The offset position of this query, the default is 0.
    resultOutputFile string
    Used to save results.
    searchWord string
    query key word.
    id str
    limit float
    The maximum number of results returned this time, the default is 50, and the maximum value is 50.
    offset float
    The offset position of this query, the default is 0.
    result_output_file str
    Used to save results.
    search_word str
    query key word.
    id String
    limit Number
    The maximum number of results returned this time, the default is 50, and the maximum value is 50.
    offset Number
    The offset position of this query, the default is 0.
    resultOutputFile String
    Used to save results.
    searchWord String
    query key word.

    getCkafkaDatahubTopic Result

    The following output properties are available:

    id String
    topicLists List<Property Map>
    Topic list.
    limit Number
    offset Number
    resultOutputFile String
    searchWord String

    Supporting Types

    GetCkafkaDatahubTopicTopicList

    Name string
    name.
    Note string
    Remark.
    PartitionNum double
    number of partitions.
    RetentionMs double
    Expiration.
    Status double
    Status, 1 in use, 2 in deletion.
    TopicId string
    Topic Id.
    TopicName string
    Topic name.
    Name string
    name.
    Note string
    Remark.
    PartitionNum float64
    number of partitions.
    RetentionMs float64
    Expiration.
    Status float64
    Status, 1 in use, 2 in deletion.
    TopicId string
    Topic Id.
    TopicName string
    Topic name.
    name String
    name.
    note String
    Remark.
    partitionNum Double
    number of partitions.
    retentionMs Double
    Expiration.
    status Double
    Status, 1 in use, 2 in deletion.
    topicId String
    Topic Id.
    topicName String
    Topic name.
    name string
    name.
    note string
    Remark.
    partitionNum number
    number of partitions.
    retentionMs number
    Expiration.
    status number
    Status, 1 in use, 2 in deletion.
    topicId string
    Topic Id.
    topicName string
    Topic name.
    name str
    name.
    note str
    Remark.
    partition_num float
    number of partitions.
    retention_ms float
    Expiration.
    status float
    Status, 1 in use, 2 in deletion.
    topic_id str
    Topic Id.
    topic_name str
    Topic name.
    name String
    name.
    note String
    Remark.
    partitionNum Number
    number of partitions.
    retentionMs Number
    Expiration.
    status Number
    Status, 1 in use, 2 in deletion.
    topicId String
    Topic Id.
    topicName String
    Topic name.

    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