Python Elasticsearch

Hello it's possible to update ILM policy directly with python?

Hi,

Sorry for being brief. I think you have two options:

  1. Using the ES python client
  2. In the documentation, you can find examples with cURL and you can use those as a reference.

Hello thanks for your reply , i want to update an existing ilm policy , in this documention i can get and explain an ilm policy , there is no update feature.

There is, you need to use the put_lifecycle method, it uses the PUT _ilm/policy/<policy_id> endpoint, which is used to Create or Update an ILM policy.

Okey i will try it. Thanks a lot.

This topic was automatically closed 28 days after the last reply. New replies are no longer allowed.