IMPORTANT: No additional bug fixes or documentation updates
will be released for this version. For the latest information, see the
current release documentation.
Read only
edit
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.
Read only
editPhases allowed: hot, warm, cold.
Makes the index data read-only; disables data write operations against the index.
To use the readonly
action in the hot
phase, the rollover
action must be present.
If no rollover action is configured, ILM will reject the policy.
Options
editNone.
Example
editresponse = client.ilm.put_lifecycle( policy: 'my_policy', body: { policy: { phases: { warm: { actions: { readonly: {} } } } } } ) puts response
PUT _ilm/policy/my_policy { "policy": { "phases": { "warm": { "actions": { "readonly" : { } } } } } }
Was this helpful?
Thank you for your feedback.