2018-04-24 14:41:09 -04:00
|
|
|
# tag::rest
|
2018-02-01 17:20:44 -05:00
|
|
|
rest_minimal:
|
|
|
|
indices:
|
|
|
|
- names: test
|
|
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
- names: bort
|
|
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
# end::rest
|
|
|
|
|
|
|
|
# tag::cli_jdbc
|
|
|
|
cli_or_jdbc_minimal:
|
2017-12-13 10:19:31 -05:00
|
|
|
cluster:
|
2018-02-01 17:20:44 -05:00
|
|
|
- "cluster:monitor/main"
|
2017-12-13 10:19:31 -05:00
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
- names: bort
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2018-02-01 17:20:44 -05:00
|
|
|
# end::cli_jdbc
|
2017-12-13 10:19:31 -05:00
|
|
|
|
|
|
|
read_something_else:
|
|
|
|
cluster:
|
2018-02-01 17:20:44 -05:00
|
|
|
- "cluster:monitor/main"
|
2017-12-13 10:19:31 -05:00
|
|
|
indices:
|
|
|
|
- names: something_that_isnt_test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
|
|
|
|
read_test_a:
|
|
|
|
cluster:
|
2018-02-01 17:20:44 -05:00
|
|
|
- "cluster:monitor/main"
|
2017-12-13 10:19:31 -05:00
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
field_security:
|
|
|
|
grant: [a]
|
|
|
|
|
|
|
|
read_test_a_and_b:
|
|
|
|
cluster:
|
2018-02-01 17:20:44 -05:00
|
|
|
- "cluster:monitor/main"
|
2017-12-13 10:19:31 -05:00
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
field_security:
|
|
|
|
grant: ["*"]
|
|
|
|
except: [c]
|
|
|
|
|
|
|
|
read_test_without_c_3:
|
|
|
|
cluster:
|
2018-02-01 17:20:44 -05:00
|
|
|
- "cluster:monitor/main"
|
2017-12-13 10:19:31 -05:00
|
|
|
indices:
|
|
|
|
- names: test
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2017-12-13 10:19:31 -05:00
|
|
|
query: |
|
|
|
|
{
|
|
|
|
"bool": {
|
|
|
|
"must_not": [
|
|
|
|
{
|
|
|
|
"match": {
|
|
|
|
"c": 3
|
|
|
|
}
|
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
read_bort:
|
|
|
|
cluster:
|
2018-02-01 17:20:44 -05:00
|
|
|
- "cluster:monitor/main"
|
2017-12-13 10:19:31 -05:00
|
|
|
indices:
|
|
|
|
- names: bort
|
2018-01-29 12:18:24 -05:00
|
|
|
privileges: [read, "indices:admin/get"]
|
2018-02-01 17:20:44 -05:00
|
|
|
|
|
|
|
no_monitor_main:
|
|
|
|
indices:
|
|
|
|
- names: test
|
|
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
- names: bort
|
|
|
|
privileges: [read, "indices:admin/get"]
|
|
|
|
|
|
|
|
no_get_index:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main"
|
|
|
|
indices:
|
|
|
|
- names: test
|
|
|
|
privileges: [read]
|
|
|
|
- names: bort
|
|
|
|
privileges: [read]
|