get-index.asciidoc 1.5 KB

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