get-index.asciidoc 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758
  1. [[indices-get-index]]
  2. === Get index API
  3. ++++
  4. <titleabbrev>Get index</titleabbrev>
  5. ++++
  6. Returns information about one or more indexes.
  7. [source,console]
  8. --------------------------------------------------
  9. GET /twitter
  10. --------------------------------------------------
  11. // TEST[setup:twitter]
  12. NOTE: Before 7.0.0, the 'mappings' definition used to include a type name. Although mappings
  13. in responses no longer contain a type name by default, you can still request the old format
  14. through the parameter include_type_name. For more details, please see <<removal-of-types>>.
  15. [[get-index-api-request]]
  16. ==== {api-request-title}
  17. `GET /<index>`
  18. [[get-index-api-path-params]]
  19. ==== {api-path-parms-title}
  20. `<index>`::
  21. +
  22. --
  23. (Required, string) Comma-separated list or wildcard expression of index names
  24. used to limit the request.
  25. Use a value of `_all` to retrieve information for all indices in the cluster.
  26. --
  27. [[get-index-api-query-params]]
  28. ==== {api-query-parms-title}
  29. include::{docdir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
  30. include::{docdir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
  31. +
  32. Defaults to `open`.
  33. include::{docdir}/rest-api/common-parms.asciidoc[tag=flat-settings]
  34. include::{docdir}/rest-api/common-parms.asciidoc[tag=include-defaults]
  35. include::{docdir}/rest-api/common-parms.asciidoc[tag=include-type-name]
  36. include::{docdir}/rest-api/common-parms.asciidoc[tag=index-ignore-unavailable]
  37. include::{docdir}/rest-api/common-parms.asciidoc[tag=local]
  38. include::{docdir}/rest-api/common-parms.asciidoc[tag=master-timeout]