Apply a policy to a create index requestedit


This functionality is in beta and is subject to change. The design and code is less mature than official GA features and is being provided as-is with no warranties. Beta features are not subject to the support SLA of official GA features.

The setting can be set on an individual create index request so index lifecycle management immediately starts managing the index:

PUT test-index
  "settings": {
    "number_of_shards": 1,
    "number_of_replicas": 1,
    "": "my_policy"

Its recommended not to use the create index API with a policy that defines a rollover action. If you do so, the new index as the result of the rollover will not carry forward the policy. Always use index templates to define policies with rollover actions.