1. Packages
  2. Kafka Provider
  3. API Docs
  4. getTopics
Kafka v3.12.0 published on Wednesday, Aug 13, 2025 by Pulumi

kafka.getTopics

Explore with Pulumi AI

kafka logo
Kafka v3.12.0 published on Wednesday, Aug 13, 2025 by Pulumi

    Using getTopics

    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 getTopics(opts?: InvokeOptions): Promise<GetTopicsResult>
    function getTopicsOutput(opts?: InvokeOptions): Output<GetTopicsResult>
    def get_topics(opts: Optional[InvokeOptions] = None) -> GetTopicsResult
    def get_topics_output(opts: Optional[InvokeOptions] = None) -> Output[GetTopicsResult]
    func GetTopics(ctx *Context, opts ...InvokeOption) (*GetTopicsResult, error)
    func GetTopicsOutput(ctx *Context, opts ...InvokeOption) GetTopicsResultOutput

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

    public static class GetTopics 
    {
        public static Task<GetTopicsResult> InvokeAsync(InvokeOptions? opts = null)
        public static Output<GetTopicsResult> Invoke(InvokeOptions? opts = null)
    }
    public static CompletableFuture<GetTopicsResult> getTopics(InvokeOptions options)
    public static Output<GetTopicsResult> getTopics(InvokeOptions options)
    
    fn::invoke:
      function: kafka:getTopics
      arguments:
        # arguments dictionary

    getTopics Result

    The following output properties are available:

    Id string
    The provider-assigned unique ID for this managed resource.
    Lists List<GetTopicsList>
    A list containing all the topics.
    Id string
    The provider-assigned unique ID for this managed resource.
    Lists []GetTopicsList
    A list containing all the topics.
    id String
    The provider-assigned unique ID for this managed resource.
    lists List<GetTopicsList>
    A list containing all the topics.
    id string
    The provider-assigned unique ID for this managed resource.
    lists GetTopicsList[]
    A list containing all the topics.
    id str
    The provider-assigned unique ID for this managed resource.
    lists Sequence[GetTopicsList]
    A list containing all the topics.
    id String
    The provider-assigned unique ID for this managed resource.
    lists List<Property Map>
    A list containing all the topics.

    Supporting Types

    GetTopicsList

    Config Dictionary<string, string>
    A map of string k/v attributes.
    Partitions int
    Number of partitions.
    ReplicationFactor int
    Number of replicas.
    TopicName string
    The name of the topic.
    Config map[string]string
    A map of string k/v attributes.
    Partitions int
    Number of partitions.
    ReplicationFactor int
    Number of replicas.
    TopicName string
    The name of the topic.
    config Map<String,String>
    A map of string k/v attributes.
    partitions Integer
    Number of partitions.
    replicationFactor Integer
    Number of replicas.
    topicName String
    The name of the topic.
    config {[key: string]: string}
    A map of string k/v attributes.
    partitions number
    Number of partitions.
    replicationFactor number
    Number of replicas.
    topicName string
    The name of the topic.
    config Mapping[str, str]
    A map of string k/v attributes.
    partitions int
    Number of partitions.
    replication_factor int
    Number of replicas.
    topic_name str
    The name of the topic.
    config Map<String>
    A map of string k/v attributes.
    partitions Number
    Number of partitions.
    replicationFactor Number
    Number of replicas.
    topicName String
    The name of the topic.

    Package Details

    Repository
    Kafka pulumi/pulumi-kafka
    License
    Apache-2.0
    Notes
    This Pulumi package is based on the kafka Terraform Provider.
    kafka logo
    Kafka v3.12.0 published on Wednesday, Aug 13, 2025 by Pulumi