confluent kafka client-config create restapi¶
Description¶
Create a REST API client configuration file, of which the client configuration file is printed to stdout and the warnings are printed to stderr. Please see our examples on how to redirect the command output.
confluent kafka client-config create restapi [flags]
Flags¶
--context string CLI context name.
--environment string Environment ID.
--cluster string Kafka cluster ID.
--api-key string API key.
--api-secret string API secret.
--schema-registry-api-key string Schema registry API key.
--schema-registry-api-secret string Schema registry API secret.
Global Flags¶
-h, --help Show help for this command.
--unsafe-trace Equivalent to -vvvv, but also log HTTP requests and responses which might contain plaintext secrets.
-v, --verbose count Increase verbosity (-v for warn, -vv for info, -vvv for debug, -vvvv for trace).
Examples¶
Create a REST API client configuration file.
confluent kafka client-config create restapi --schema-registry-api-key my-sr-key --schema-registry-api-secret my-sr-secret
Create a REST API client configuration file with arguments.
confluent kafka client-config create restapi --environment env-123 --cluster lkc-123456 --api-key my-key --api-secret my-secret --schema-registry-api-key my-sr-key --schema-registry-api-secret my-sr-secret
Create a REST API client configuration file, redirecting the configuration to a file and the warnings to a separate file.
confluent kafka client-config create restapi --schema-registry-api-key my-sr-key --schema-registry-api-secret my-sr-secret 1> my-client-config-file.config 2> my-warnings-file
Create a REST API client configuration file, redirecting the configuration to a file and keeping the warnings in the console.
confluent kafka client-config create restapi --schema-registry-api-key my-sr-key --schema-registry-api-secret my-sr-secret 1> my-client-config-file.config 2>&1
See Also¶
- confluent kafka client-config create - Create a Kafka client configuration file.