create_topic
Creates up to 1000 Kafka topics in one batch with optional partitions, replication factor and configs. Validates requests first; confirm true is required before any topic is created.
Instructions
Create 1 to 1000 Kafka topics in one call through items, each with optional partition count, replication factor and topic-level configs. Omitted values use broker defaults. Existing topics are refused rather than modified. Creating one topic is an items array of length one.
No topic is created unless confirm is true; otherwise the broker only validates the requests. One confirm covers the whole batch, and creation is not atomic: topics created before a later item failed stay, because Kafka cannot roll them back. Results follow items order, each carrying index with result or error.
Partition counts cannot be reduced later. Requires Kafka CREATE permission.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| items | Yes | The topics to create, 1 to 1000 of them. Creating one topic is an array of length one. Duplicate topic names are refused before anything is created. | |
| confirm | No | Optional. When false or omitted, nothing is created: every item is validated by the broker and the response describes what would happen. Must be true to actually create. One confirm covers the whole batch. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| atomic | Yes | ||
| failed | Yes | ||
| applied | Yes | ||
| results | Yes | ||
| succeeded | Yes |