What’s the curl command to list all the topics for connected Kafka clusters in Lenses 6.0?
As of today, you’ll need to query each environment for their topics individually. An endpoint to query at the global level will be created soon. datasets
is how Lenses refers to topics
In the meantime, query each environment (in example below, the environment is called “demo
”)
curl http://YOUR_LENSES_HOST:9991/api/v1/environments/demo/proxy/api/v1/datasets?pageSize=1 -H 'Authorization: Bearer sa_key_PsfmWOcph3W3dpoT_lQ13lrqAZJH4DJpaz4WMrSHxxxxx'
If you get
zsh: no matches found:
error, just make sure you’re using the right shell and change accordingly (I’ll be because of the ? character in the url)
> sh
> curl http://YOUR_LENSES_HOST:9991/api/v1/environments/demo/proxy/api/v1/datasets?pageSize=1 -H 'Authorization: Bearer sa_key_PsfmWOcph3W3dpoT_lQ13lrqAZJH4DJpaz4WMrSHxxxxx'