Create or update a policy

  • PUT /_slm/policy/{policy_id}

Create or update a snapshot lifecycle policy. If the policy already exists, this request increments the policy version. Only the latest version of a policy is stored.

  • Index privileges: manage
  • Cluster privileges: manage_slm

Path Parameters

policy_id string Name required

The identifier for the snapshot lifecycle policy you want to create or update.

Response