原英文版地址: https://www.elastic.co/guide/en/elasticsearch/reference/7.7/ilm-readonly.html, 原文档版权归 www.elastic.co 所有
本地英文版地址: ../en/ilm-readonly.html

Read onlyedit

Phases allowed: warm.

Makes the index read-only.

Optionsedit

None.

Exampleedit

PUT _ilm/policy/my_policy
{
  "policy": {
    "phases": {
      "warm": {
        "actions": {
          "readonly" : { }
        }
      }
    }
  }
}