Hi,
I am using ElasticCloud v7.9.0, I use Dev Tools to do the setup on kibana like creating users, indexes,... I want to create a kibana role as well however I get an error:
PUT /_security/role/mytestrole
{
"elasticsearch": {
"indices": [{
"names": [ "mytestindex*" ],
"privileges": ["create", "write", "create_index"]
}]
},
"kibana": [{
"base": [],
"feature": {"visualize": ["all"],"dashboard": ["read", "url_create"], "metrics": ["all"], "logs": ["all"]},
"spaces": ["myspace"]
}]
}
Error is:
{
"error" : {
"root_cause" : [
{
"type" : "parse_exception",
"reason" : "failed to parse role [mytestrole]. unexpected field [elasticsearch]"
}
],
"type" : "parse_exception",
"reason" : "failed to parse role [mytestrole]. unexpected field [elasticsearch]"
},
"status" : 400
}
I was able to create the role using Postman however not true Dev Tools.
I followed the steps on the following link:
https://www.elastic.co/guide/en/kibana/current/role-management-api-put.html
Is there anyway to run this using Dev tools?