|
| 1 | +## ticloud serverless changefeed create |
| 2 | + |
| 3 | +Create a changefeed |
| 4 | + |
| 5 | +``` |
| 6 | +ticloud serverless changefeed create [flags] |
| 7 | +``` |
| 8 | + |
| 9 | +### Examples |
| 10 | + |
| 11 | +``` |
| 12 | + Create a changefeed in interactive mode: |
| 13 | + $ ticloud serverless changefeed create |
| 14 | +
|
| 15 | + Create a changefeed in non-interactive mode: |
| 16 | + $ ticloud serverless changefeed create -c <cluster-id> --type KAFKA --kafka '{"network_info":{"network_type":"PUBLIC"},"broker":{"kafka_version":"VERSION_2XX","broker_endpoints":"52.34.156.155:9092","compression":"NONE"},"authentication":{"auth_type":"DISABLE"},"topic_partition_config":{"dispatch_type":"ONE_TOPIC","default_topic":"default-topic","replication_factor":1,"partition_num":1,"partition_dispatchers":[{"partition_type":"TABLE","matcher":["*.*"]}]},"data_format":{"protocol":"CANAL_JSON"}}' --filter '{"filterRule":["test.*"], "mode": "IGNORE_NOT_SUPPORT_TABLE"}' |
| 17 | +
|
| 18 | + Create a changefeed named "myfeed" with specified start TSO in non-interactive mode: |
| 19 | + $ ticloud serverless changefeed create -c <cluster-id> --name myfeed --type KAFKA --kafka <kafka-json> --filter <filter-json> --start-tso 458996254096228352 |
| 20 | +
|
| 21 | +``` |
| 22 | + |
| 23 | +### Options |
| 24 | + |
| 25 | +``` |
| 26 | + -c, --cluster-id string The ID of the cluster. |
| 27 | + -n, --display-name string The name of the changefeed. |
| 28 | + --filter string Filter in JSON format, use "ticloud serverless changefeed template --type filter" to see templates. |
| 29 | + -h, --help help for create |
| 30 | + --kafka string Kafka information in JSON format, use "ticloud serverless changefeed template --type kafka" to see templates. |
| 31 | + --mysql string MySQL information in JSON format, use "ticloud serverless changefeed template --type mysql" to see templates. |
| 32 | + --start-time string Start Time for the changefeed (RFC3339 format, e.g., 2024-01-01T00:00:00Z). If both start-tso and start-time are provided, start-tso will be used. |
| 33 | + --start-tso uint Start TSO for the changefeed, default to current TSO. See https://docs.pingcap.com/tidb/stable/tso/ for more information about TSO. |
| 34 | + --type string The type of the changefeed, one of ["KAFKA" "MYSQL"] |
| 35 | +``` |
| 36 | + |
| 37 | +### Options inherited from parent commands |
| 38 | + |
| 39 | +``` |
| 40 | + -D, --debug Enable debug mode |
| 41 | + --no-color Disable color output |
| 42 | + -P, --profile string Profile to use from your configuration file |
| 43 | +``` |
| 44 | + |
| 45 | +### SEE ALSO |
| 46 | + |
| 47 | +* [ticloud serverless changefeed](ticloud_serverless_changefeed.md) - Manage TiDB Cloud Serverless changefeeds |
| 48 | + |
0 commit comments