2014-08-12 06:42:12 -04:00
|
|
|
[[indices-get-index]]
|
2019-08-23 11:14:51 -04:00
|
|
|
=== Get index API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get index</titleabbrev>
|
|
|
|
++++
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2020-07-13 09:05:03 -04:00
|
|
|
Returns information about one or more indices. For data streams, the API
|
|
|
|
returns information about the stream's backing indices.
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2014-08-12 06:42:12 -04:00
|
|
|
--------------------------------------------------
|
2020-07-31 09:51:47 -04:00
|
|
|
GET /my-index-000001
|
2014-08-12 06:42:12 -04:00
|
|
|
--------------------------------------------------
|
2020-07-31 09:51:47 -04:00
|
|
|
// TEST[setup:my_index]
|
2014-08-12 06:42:12 -04:00
|
|
|
|
2019-01-14 16:08:01 -05:00
|
|
|
NOTE: Before 7.0.0, the 'mappings' definition used to include a type name. Although mappings
|
|
|
|
in responses no longer contain a type name by default, you can still request the old format
|
|
|
|
through the parameter include_type_name. For more details, please see <<removal-of-types>>.
|
2019-08-23 11:14:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[get-index-api-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
2020-07-13 09:05:03 -04:00
|
|
|
`GET /<target>`
|
2019-08-23 11:14:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[get-index-api-path-params]]
|
|
|
|
==== {api-path-parms-title}
|
|
|
|
|
2020-07-13 09:05:03 -04:00
|
|
|
`<target>`::
|
|
|
|
(Required, string)
|
|
|
|
Comma-separated list of data streams, indices, and index aliases used to limit
|
|
|
|
the request. Wildcard expressions (`*`) are supported.
|
2019-08-23 11:14:51 -04:00
|
|
|
+
|
2020-07-13 09:05:03 -04:00
|
|
|
To target all data streams and indices in a cluster, omit this parameter or use
|
|
|
|
`_all` or `*`.
|
2019-08-23 11:14:51 -04:00
|
|
|
|
|
|
|
|
|
|
|
[[get-index-api-query-params]]
|
|
|
|
==== {api-query-parms-title}
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
|
2020-02-24 05:57:32 -05:00
|
|
|
+
|
|
|
|
Defaults to `true`.
|
2019-08-23 11:14:51 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
|
2019-08-23 11:14:51 -04:00
|
|
|
+
|
|
|
|
Defaults to `open`.
|
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=flat-settings]
|
2019-08-23 11:14:51 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=include-defaults]
|
2019-08-23 11:14:51 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=include-type-name]
|
2019-08-23 11:14:51 -04:00
|
|
|
|
2020-10-22 16:21:14 -04:00
|
|
|
`ignore_unavailable`::
|
|
|
|
(Optional, boolean)
|
|
|
|
If `false`, requests that target a missing index return an error. Defaults to
|
|
|
|
`false`.
|
2019-08-23 11:14:51 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=local]
|
2019-08-23 11:14:51 -04:00
|
|
|
|
2020-06-01 19:42:53 -04:00
|
|
|
include::{es-repo-dir}/rest-api/common-parms.asciidoc[tag=master-timeout]
|