Kafka v3.12.0 published on Wednesday, Aug 13, 2025 by Pulumi
kafka.getTopics
Explore with Pulumi AI
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<Get
Topics List> - A list containing all the topics.
- Id string
- The provider-assigned unique ID for this managed resource.
- Lists
[]Get
Topics List - A list containing all the topics.
- id String
- The provider-assigned unique ID for this managed resource.
- lists
List<Get
Topics List> - A list containing all the topics.
- id string
- The provider-assigned unique ID for this managed resource.
- lists
Get
Topics List[] - A list containing all the topics.
- id str
- The provider-assigned unique ID for this managed resource.
- lists
Sequence[Get
Topics List] - 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.
- Replication
Factor int - Number of replicas.
- Topic
Name string - The name of the topic.
- Config map[string]string
- A map of string k/v attributes.
- Partitions int
- Number of partitions.
- Replication
Factor int - Number of replicas.
- Topic
Name string - The name of the topic.
- config Map<String,String>
- A map of string k/v attributes.
- partitions Integer
- Number of partitions.
- replication
Factor Integer - Number of replicas.
- topic
Name String - The name of the topic.
- config {[key: string]: string}
- A map of string k/v attributes.
- partitions number
- Number of partitions.
- replication
Factor number - Number of replicas.
- topic
Name 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.
- replication
Factor Number - Number of replicas.
- topic
Name 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.