I'm trying tp create an Indices Role using the Java API. Such as below:
Role role = Role.builder()
.name("testPutRole")
.indicesPrivileges(???)
.build();
The example in the doco shows it for a cluster privilege but not for Indices privilege. Is there an example how to create one? I need to add "Granted documents query" as you do in Kibana.
Appreciated.
Hi,
Actually it didn't have what I was looking for. I'm looking to create a Role using .indicesPrivileges(), as per my example ".indicesPrivileges(???)". But there is no examples on how to create one. Hence the question marks in the function indicesPrivileges().
Hi,
I can see the constructor for the IndicesPrivileges class. However Some of the Collections are "String" so no idea what they should be including the String variable called "query". An example or two would be great.
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.