create
Create a kafka topic
Usage
ionosctl kafka topic create [flags]
Aliases
For topic
command:
[cl]
For create
command:
[c post]
Description
Create a kafka topic
Options
-u, --api-url string Override default host URL (default "https://kafka.de-fra.ionos.com")
--cluster-id string The ID of the cluster (required)
--cols strings Set of columns to be printed on output
Available columns: [Id Name ReplicationFactor NumberOfPartitions RetentionTime SegmentByes State]
-c, --config string Configuration file used for authentication (default "$XDG_CONFIG_HOME/ionosctl/config.json")
-f, --force Force command to execute without user input
-h, --help Print usage
-l, --location string Location of the resource to operate on. Can be one of: de/fra, de/txl
--name string The name of the topic (required)
--no-headers Don't print table headers when table output is used
-o, --output string Desired output format [text|json|api-json] (default "text")
--partitions int32 The number of partitions (default 3)
-q, --quiet Quiet output
--replication-factor int32 The replication factor (default 3)
--retention-time int32 The retention time in milliseconds (default 604800000)
--segment-bytes int32 The segment bytes (default 1073741824)
-v, --verbose Print step-by-step process when running command
Examples
ionosctl kafka topic create --location LOCATION --name my-topic --cluster-id CLUSTER_ID --partitions 1 --replication-factor 1
Last updated