The official document of Elasticsearch says we can use URL as a setting of Read-only repository. The document also says several protocols, including HTTP, is supported for the URL. (refer: https://www.elastic.co/guide/en/elasticsearch/reference/current/modules-snapshots.html#_read_only_url_repository )
I understand that the snapshots are stored in the repository as a directory structure which contains Lucene index and some meta data.
Given above conditions, I think GET request to a directory URL of a HTTP URL repository need to return a list of files/directories inside, in a certain format, for the snapshot API to restore a snapshot. At least, I thought some sort of
ls operation on the directory containing Lucene indices were needed.
- Is my understanding correct?
- If so, what is the required format for the directory URL? (What is the required response for HTTP request to the directory which makes snapshot API's restore work?)