[DOCS] Fixes security example (#31082)

This commit is contained in:
Lisa Cawley 2018-06-05 08:50:06 -07:00 committed by GitHub
parent 7f850bb8ce
commit 840a3bd5a6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 2 deletions

View File

@ -81,7 +81,6 @@ buildRestTests.expectedUnconvertedCandidates = [
'en/rest-api/ml/validate-job.asciidoc', 'en/rest-api/ml/validate-job.asciidoc',
'en/rest-api/security/authenticate.asciidoc', 'en/rest-api/security/authenticate.asciidoc',
'en/rest-api/watcher/stats.asciidoc', 'en/rest-api/watcher/stats.asciidoc',
'en/security/authorization/managing-roles.asciidoc',
'en/watcher/example-watches/watching-time-series-data.asciidoc', 'en/watcher/example-watches/watching-time-series-data.asciidoc',
] ]

View File

@ -12,6 +12,8 @@ A role is defined by the following JSON structure:
"indices": [ ... ] <3> "indices": [ ... ] <3>
} }
----- -----
// NOTCONSOLE
<1> A list of usernames the owners of this role can <<run-as-privilege, impersonate>>. <1> A list of usernames the owners of this role can <<run-as-privilege, impersonate>>.
<2> A list of cluster privileges. These privileges define the <2> A list of cluster privileges. These privileges define the
cluster level actions users with this role are able to execute. This field cluster level actions users with this role are able to execute. This field
@ -37,6 +39,8 @@ The following describes the structure of an indices permissions entry:
"query": "..." <4> "query": "..." <4>
} }
------- -------
// NOTCONSOLE
<1> A list of indices (or index name patterns) to which the permissions in this <1> A list of indices (or index name patterns) to which the permissions in this
entry apply. entry apply.
<2> The index level privileges the owners of the role have on the associated <2> The index level privileges the owners of the role have on the associated
@ -77,8 +81,9 @@ The following snippet shows an example definition of a `clicks_admin` role:
[source,js] [source,js]
----------- -----------
POST /_xpack/security/role/clicks_admin
{ {
"run_as": [ "clicks_watcher_1" ] "run_as": [ "clicks_watcher_1" ],
"cluster": [ "monitor" ], "cluster": [ "monitor" ],
"indices": [ "indices": [
{ {
@ -92,6 +97,7 @@ The following snippet shows an example definition of a `clicks_admin` role:
] ]
} }
----------- -----------
// CONSOLE
Based on the above definition, users owning the `clicks_admin` role can: Based on the above definition, users owning the `clicks_admin` role can: