It would be nice with a little more explanation about what this means. I find it very hard to understand when to use roles in Kibana versus roles in Elasticsearch - when you set this up using the REST APIs.
There is no pre-defined snippet, but I can explain about the role management API's . The Elasticsearch role management APIs require you to understand Kibana’s application privileges format, and that is something we treat as an implementation detail. While we haven’t changed it all that much, we don’t guarantee that it will be stable across releases (even though in practice making a breaking change here would be problematic for us in a minor). The way Kibana uses the application privileges format is not all that intuitive, either.
For that reason, we encourage the use of Kibana Role APIs whenever you are creating a role that grants access to Kibana. Kibana’s APIs make our privileges easier to consume, and hide a lot of the complexity for you. They are only marked experimental because we were leaving ourselves room to make breaking changes if necessary, but I don’t expect that we will remove these at any point in the near future. Hope this helps.
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.