Record

new-topic

A topic to create.

record new-topic {
  name: string,
  num-partitions: s32,
  replication-factor: s32,
  replica-assignment: list​<list​<s32>>,
  config: list​<config-entry>,
}

Fields

NameTypeDescription
namestring
num-partitionss32

Number of partitions. Use -1 with a broker-side default.

replication-factors32

Replication factor. Use -1 when supplying replica-assignment.

replica-assignmentlist​<list​<s32>>

Explicit replica broker ids per partition. When set, num-partitions and replication-factor must both be -1.

configlist​<config-entry>

Topic-level config (cleanup.policy, retention.ms, ...).