mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-13 00:15:47 +00:00
Currently there are two get aliases apis that both have the same functionality, but have a different response structure. The reason for having 2 apis is historic. The GET _alias api was added in 0.90.x and is more efficient since it only sends the needed alias data from the cluster state between the master node and the node that received the request. In the GET _aliases api the complete cluster state is send to the node that received the request and then the right information is filtered out and send back to the client. The GET _aliases api should be removed in favour for the alias api Closes to #4539
38 lines
1.3 KiB
JSON
38 lines
1.3 KiB
JSON
{
|
|
"indices.exists_alias": {
|
|
"documentation": "http://www.elasticsearch.org/guide/reference/api/admin-indices-aliases/",
|
|
"methods": ["HEAD"],
|
|
"url": {
|
|
"path": "/_alias/{name}",
|
|
"paths": ["/_alias/{name}", "/{index}/_alias/{name}", "/{index}/_alias"],
|
|
"parts": {
|
|
"index": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of index names to filter aliases"
|
|
},
|
|
"name": {
|
|
"type" : "list",
|
|
"description" : "A comma-separated list of alias names to return"
|
|
}
|
|
},
|
|
"params": {
|
|
"ignore_unavailable": {
|
|
"type" : "boolean",
|
|
"description" : "Whether specified concrete indices should be ignored when unavailable (missing or closed)"
|
|
},
|
|
"allow_no_indices": {
|
|
"type" : "boolean",
|
|
"description" : "Whether to ignore if a wildcard indices expression resolves into no concrete indices. (This includes `_all` string or when no indices have been specified)"
|
|
},
|
|
"expand_wildcards": {
|
|
"type" : "enum",
|
|
"options" : ["open","closed"],
|
|
"default" : ["open", "closed"],
|
|
"description" : "Whether to expand wildcard expression to concrete indices that are open, closed or both."
|
|
}
|
|
}
|
|
},
|
|
"body": null
|
|
}
|
|
}
|