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
|
|
|
|
|
2018-10-23 10:07:51 -04:00
|
|
|
# tag::cli_drivers
|
|
|
|
cli_or_drivers_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-10-23 10:07:51 -04:00
|
|
|
# end::cli_drivers
|
2017-12-13 10:19:31 -05:00
|
|
|
|
2019-02-20 04:25:25 -05:00
|
|
|
read_nothing:
|
|
|
|
cluster:
|
|
|
|
- "cluster:monitor/main"
|
|
|
|
|
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
|
2018-10-23 10:07:51 -04:00
|
|
|
privileges: [monitor]
|
2018-02-01 17:20:44 -05:00
|
|
|
- names: bort
|
2018-10-23 10:07:51 -04:00
|
|
|
privileges: [monitor]
|