Skip to content

Commit

Permalink
Updated code block formatting (#6734)
Browse files Browse the repository at this point in the history
  • Loading branch information
cwarnermm authored Oct 25, 2023
1 parent 85ea411 commit 64af949
Showing 1 changed file with 24 additions and 24 deletions.
48 changes: 24 additions & 24 deletions source/scale/elasticsearch.rst
Original file line number Diff line number Diff line change
Expand Up @@ -208,29 +208,29 @@ The following JSON provides an example of a "least privilege" permission set tha

.. code-block:: json
{
"cluster_permissions": [
"cluster:monitor/*",
"indices:admin/template/put",
"indices:data/write/bulk"
],
"index_permissions": [
{
"index_patterns": [
"t-70907*"
],
"allowed_actions": [
"indices:admin/get",
"indices:admin/create",
"indices:admin/delete",
"indices:admin/mapping/put",
"indices:admin/mappings/fields/get*",
"indices:data/read*",
"indices:data/write*"
]
}
]
}
{
"cluster_permissions": [
"cluster:monitor/*",
"indices:admin/template/put",
"indices:data/write/bulk"
],
"index_permissions": [
{
"index_patterns": [
"t-70907*"
],
"allowed_actions": [
"indices:admin/get",
"indices:admin/create",
"indices:admin/delete",
"indices:admin/mapping/put",
"indices:admin/mappings/fields/get*",
"indices:data/read*",
"indices:data/write*"
]
}
]
}
A simpler, more flexible, and resilient variant of the above would be:

Expand All @@ -252,4 +252,4 @@ A simpler, more flexible, and resilient variant of the above would be:
]
}
]
}
}

0 comments on commit 64af949

Please sign in to comment.