Files
honeymoose f321dfedf5 同步完成!
**同步结果摘要**:

| 目录 | 同步前 | 同步后 | 官方 |
|------|--------|--------|------|
| aggregations | 40 | 65 | 64 |
| analyzers | 8 | 141 | 140 |
| api-reference | 97 | 186 | 174 |
| benchmark | 34 | 67 | 53 |
| clients | 17 | 18 | 18 |
| dashboards | 38 | 149 | 131 |
| data-prepper | 77 | 134 | 123 |
| im-plugin | 22 | 37 | 37 |
| ingest-pipelines | 27 | 52 | 51 |
| install-and-configure | 37 | 57 | 53 |
| ml-commons-plugin | 81 | 157 | 155 |
| observing-your-data | 39 | 73 | 66 |
| query-dsl | 40 | 77 | 75 |
| search-plugins | 80 | 139 | 95 |
| security-analytics | 22 | 47 | 46 |

**说明**:
- 本地文件数 > 官方:本地有一些官方已删除或重命名的文件
- 新增了约 **740 个英文文档文件**
- 已有文件保持不变(未覆盖)
2026-11-30 10:48:30 -05:00

2.1 KiB

layout, title, parent, grand_parent, nav_order
layout title parent grand_parent nav_order
default Alias exists Alias APIs Index APIs 40

Index Alias Exists API

Introduced 1.0 {: .label .label-purple }

Checks if an alias exists.

Endpoints

HEAD /_alias/{alias}
HEAD /{index}/_alias/{alias}

Path parameters

The following table lists the available path parameters. All path parameters are required.

Parameter Data type Description
<alias> String Comma-separated list or wildcard expression of alias names to check.
<index> String Comma-separated list or wildcard expression of index names used to limit the request.

Query parameters

The following table lists the available query parameters. All query parameters are optional.

Parameter Data type Description
expand_wildcards String Type of index that wildcard expressions can match. Supports comma-separated values. Valid values are all, open, closed, hidden, and none. Default is all.
ignore_unavailable Boolean Whether to ignore unavailable indexes. Default is false.
local Boolean Whether to return information from the local node only instead of from the cluster manager node. Default is false.

Response codes

The API returns one of the following response codes.

Response code Description
200 Indicates that all specified aliases exist.
404 Indicates that one or more specified aliases do not exist.

Example requests

{% capture step1_rest %} HEAD /_alias/2030 {% endcapture %}

{% capture step1_python %}

response = client.indices.exists_alias( name = "2030" )

{% endcapture %}

{% include code-block.html rest=step1_rest python=step1_python %}

Required permissions

If you use the Security plugin, make sure you have the appropriate permissions: indices:admin/aliases/get.

For more information about index aliases, see Index aliases.