Resource: Topic
A Kafka topic in a given cluster.
JSON representation |
---|
{ "name": string, "partitionCount": integer, "replicationFactor": integer, "configs": { string: string, ... } } |
Fields | |
---|---|
name |
Identifier. The name of the topic. The |
partition |
Required. The number of partitions this topic has. The partition count can only be increased, not decreased. Please note that if partitions are increased for a topic that has a key, the partitioning logic or the ordering of the messages will be affected. |
replication |
Required. Immutable. The number of replicas of each partition. A replication factor of 3 is recommended for high availability. |
configs |
Optional. Configurations for the topic that are overridden from the cluster defaults. The key of the map is a Kafka topic property name, for example: An object containing a list of |
Methods |
|
---|---|
|
Creates a new topic in a given project and location. |
|
Deletes a single topic. |
|
Returns the properties of a single topic. |
|
Lists the topics in a given cluster. |
|
Updates the properties of a single topic. |