Index Management Plugin
- class opensearchpy.plugins.index_management.IndexManagementClient(client)[source]
Bases:
NamespacedClient
- Parameters:
client (Any) –
- add_policy(index, body=None, params=None, headers=None)[source]
Adds a policy to an index. This operation does not change the policy if the index already has one.
- change_policy(index, body=None, params=None, headers=None)[source]
Updates the managed index policy to a new policy (or to a new version of the policy).
- get_policy(policy=None, params=None, headers=None)[source]
Gets the policy by policy_id; returns all policies if no policy_id is provided.