> For the complete documentation index, see [llms.txt](https://learnsql.gitbook.io/lernmysql/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://learnsql.gitbook.io/lernmysql/get-all-index-and-types-names-from-cluster-in-elasticsearch-ok.md).

# Get all index and types' names from cluster in ElasticSearch (ok)

```
curl -XGET 'http://localhost:9200/_cat/indices?v'
will give you all the indexes.
curl -XGET 'http://localhost:9200/_mapping?pretty=true'
```
