[[indices-get-alias]]
=== Get alias API
++++
Get alias
++++
Retrieves information for one or more <>.
[source,console]
----
GET my-data-stream/_alias/my-alias
----
// TEST[setup:my_data_stream]
// TEST[s/^/PUT my-data-stream\/_alias\/my-alias\n/]
// TEST[teardown:data_stream_cleanup]
[[get-alias-api-request]]
==== {api-request-title}
`GET _alias/`
`GET _alias`
`GET /_alias/`
[[get-alias-api-api-prereqs]]
==== {api-prereq-title}
* If the {es} {security-features} are enabled, you must have the
`view_index_metadata` or `manage` <>
for the alias. If you specify a target, you must also have `view_index_metadata`
or `manage` index privilege for the target.
[[get-alias-api-path-params]]
==== {api-path-parms-title}
``::
(Optional, string) Comma-separated list of aliases to retrieve. Supports
wildcards (`*`). To retrieve all aliases, omit this parameter or use `*` or
`_all`.
``::
(Optional, string) Comma-separated list of data streams or indices used to limit
the request. Supports wildcards (`*`). To target all data streams and indices,
omit this parameter or use `*` or `_all`.
[[get-alias-api-query-params]]
==== {api-query-parms-title}
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=allow-no-indices]
+
Defaults to `true`.
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=expand-wildcards]
+
Defaults to `all`.
`ignore_unavailable`::
(Optional, Boolean) If `false`, requests that include a missing data stream or
index in the `` return an error. Defaults to `false`.
include::{es-ref-dir}/rest-api/common-parms.asciidoc[tag=local]