How to create readonly public API Key?

I'm trying to create an API Key for users to search on my frontend, however, I cannot find configuration example for readonly users to specific indices. Could you please share your config for this setting?


The CreateApiKey API doc page gives an example on how read only access can be granted over an index pattern of index-a*. It also links to the CreateRole API doc page for details since they share the same role descriptor syntax. Please let me know if they are helpful.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.