OpenSearch/docs/reference/ilm/actions/ilm-readonly.asciidoc

32 lines
478 B
Plaintext
Raw Normal View History

[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" : { }
}
}
}
}
}
--------------------------------------------------