|
@@ -87,7 +87,7 @@ POST /_security/api_key
|
|
|
"role_descriptors": {
|
|
|
"role-a": {
|
|
|
"cluster": ["all"],
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["index-a*"],
|
|
|
"privileges": ["read"]
|
|
@@ -129,7 +129,7 @@ For the examples below, assume that the owner user's permissions are:
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
"cluster": ["all"],
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["*"],
|
|
|
"privileges": ["all"]
|
|
@@ -147,7 +147,7 @@ PUT /_security/api_key/VuaCfGcBCdbkQm-e5aOx
|
|
|
{
|
|
|
"role_descriptors": {
|
|
|
"role-a": {
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["*"],
|
|
|
"privileges": ["write"]
|
|
@@ -181,7 +181,7 @@ The API key's effective permissions after the update will be the intersection of
|
|
|
[source,js]
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["*"],
|
|
|
"privileges": ["write"]
|
|
@@ -217,7 +217,7 @@ The API key's effective permissions after the update will be the same as the own
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
"cluster": ["all"],
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["*"],
|
|
|
"privileges": ["all"]
|
|
@@ -233,7 +233,7 @@ For the next example, assume that the owner user's permissions have changed from
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
"cluster": ["manage_security"],
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["*"],
|
|
|
"privileges": ["read"]
|
|
@@ -266,7 +266,7 @@ Resulting in the following effective permissions for the API key:
|
|
|
--------------------------------------------------
|
|
|
{
|
|
|
"cluster": ["manage_security"],
|
|
|
- "index": [
|
|
|
+ "indices": [
|
|
|
{
|
|
|
"names": ["*"],
|
|
|
"privileges": ["read"]
|