forked from docs/doc-exports
Reviewed-by: Hasko, Vladimir <vladimir.hasko@t-systems.com> Co-authored-by: Chen, Junjie <chenjunjie@huawei.com> Co-committed-by: Chen, Junjie <chenjunjie@huawei.com>
2.5 KiB
2.5 KiB
Viewing Sample Code
On the console, view sample code for creating and retrieving messages in Java, Go, and Python.
Procedure
- Log in to the management console.
- Click
in the upper left corner to select a region.
- Click Service List and choose Application > Distributed Message Service. The Kafka instance list is displayed.
- Click the desired Kafka instance to view the instance details.
- Click the Topics tab.
- Click View Sample Code. The Sample Code dialog box is displayed.
View sample code for creating and retrieving messages in Java, Go, and Python. In the sample code in Go and Python, you can see whether SASL_SSL authentication is enabled. If Access By is PLAINTEXT, SASL_SSL authentication is disabled. If Access By is SASL_SSL, SASL_SSL authentication is enabled.
Parent topic: Managing Topics