How to get file names of my Snapshot using curl?

Hi @wonderland14 ,

Question: Is it possible to get the list of all snapshot filename?

A couple of options here:

  1. If you have been using SLM (Snapshot Lifecycle Management), you can use the Get snapshot lifecycle policy API. For example:
  • GET _slm/policy and retrieve the snapshot_name in the last_success section.
  1. You can also use the cat snapshots API. For example:
  • GET _cat/snapshots?v and look for the last SUCCESSFUL snapshot.

Let us know if that helps.