32 lines
478 B
Plaintext
32 lines
478 B
Plaintext
[role="xpack"]
|
|
[[ilm-readonly]]
|
|
=== Read only
|
|
|
|
Phases allowed: warm.
|
|
|
|
Makes the index <<index-blocks-read-only,read-only>>.
|
|
|
|
[[ilm-read-only-options]]
|
|
==== Options
|
|
|
|
None.
|
|
|
|
[[ilm-read-only-ex]]
|
|
==== Example
|
|
|
|
[source,console]
|
|
--------------------------------------------------
|
|
PUT _ilm/policy/my_policy
|
|
{
|
|
"policy": {
|
|
"phases": {
|
|
"warm": {
|
|
"actions": {
|
|
"readonly" : { }
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
--------------------------------------------------
|