confluent kafka link create¶
Flags¶
--source-bootstrap-server string REQUIRED: Bootstrap server address of the source cluster.
--source-cluster-id string REQUIRED: Source cluster ID.
--source-api-key string An API key for the source cluster. If specified, the destination cluster will use SASL_SSL/PLAIN as its mechanism for the source cluster authentication. If you wish to use another authentication mechanism, please do NOT specify this flag, and add the security configs in the config file.
--source-api-secret string An API secret for the source cluster. If specified, the destination cluster will use SASL_SSL/PLAIN as its mechanism for the source cluster authentication. If you wish to use another authentication mechanism, please do NOT specify this flag, and add the security configs in the config file.
--config-file string Name of the file containing link config overrides. Each property key-value pair should have the format of key=value. Properties are separated by new-line characters.
--dry-run DEPRECATED: Validate a link, but do not create it (this flag is no longer active).
--no-validate DEPRECATED: Create a link even if the source cluster cannot be reached (this flag is no longer active).
--cluster string Kafka cluster ID.
--environment string Environment ID.
--context string CLI context name.
--destination-bootstrap-server string REQUIRED: Bootstrap server address of the destination cluster.
--destination-cluster-id string REQUIRED: Destination cluster ID.
--source-api-key string An API key for the source cluster. If specified, the destination cluster will use SASL_SSL/PLAIN as its mechanism for the source cluster authentication. If you wish to use another authentication mechanism, please do NOT specify this flag, and add the security configs in the config file.
--source-api-secret string An API secret for the source cluster. If specified, the destination cluster will use SASL_SSL/PLAIN as its mechanism for the source cluster authentication. If you wish to use another authentication mechanism, please do NOT specify this flag, and add the security configs in the config file.
--config-file string Name of the file containing link config overrides. Each property key-value pair should have the format of key=value. Properties are separated by new-line characters.
--dry-run DEPRECATED: Validate a link, but do not create it (this flag is no longer active).
--no-validate DEPRECATED: Create a link even if the source cluster cannot be reached (this flag is no longer active).
--url string Base URL of REST Proxy Endpoint of Kafka Cluster (include /kafka for embedded Rest Proxy). Must set flag or CONFLUENT_REST_URL.
--ca-cert-path string Path to a PEM-encoded CA to verify the Confluent REST Proxy.
--client-cert-path string Path to client cert to be verified by Confluent REST Proxy, include for mTLS authentication.
--client-key-path string Path to client private key, include for mTLS authentication.
--no-auth Include if requests should be made without authentication headers, and user will not be prompted for credentials.
--prompt Bypass use of available login credentials and prompt for Kafka Rest credentials.
--context string CLI context name.
Global Flags¶
-h, --help Show help for this command.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
Examples¶
Create a cluster link, using a configuration file.
confluent kafka link create my-link --source-cluster-id lkc-123456 --source-bootstrap-server my-host:1234 --config-file config.txt
Create a cluster link, using an API key and secret.
confluent kafka link create my-link --source-cluster-id lkc-123456 --source-bootstrap-server my-host:1234 --source-api-key my-key --source-api-secret my-secret
Create a cluster link, using a configuration file.
confluent kafka link create my-link --destination-cluster-id 123456789 --destination-bootstrap-server my-host:1234 --config-file config.txt
Create a cluster link, using an API key and secret.
confluent kafka link create my-link --destination-cluster-id 123456789 --destination-bootstrap-server my-host:1234 --source-api-key my-key --source-api-secret my-secret
See Also¶
- confluent kafka link - Manages inter-cluster links.