2018-11-27 20:40:49 -05:00
|
|
|
--
|
|
|
|
:api: exists-alias
|
|
|
|
:request: GetAliasesRequest
|
|
|
|
:response: Boolean
|
|
|
|
--
|
|
|
|
|
|
|
|
[id="{upid}-{api}"]
|
2018-01-25 08:53:27 -05:00
|
|
|
=== Exists Alias API
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-request"]
|
2018-01-25 08:53:27 -05:00
|
|
|
==== Exists Alias Request
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
The Exists Alias API uses +{request}+ as its request object.
|
2018-01-25 08:53:27 -05:00
|
|
|
One or more aliases can be optionally provided either at construction
|
|
|
|
time or later on through the relevant setter method.
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request]
|
2018-01-25 08:53:27 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
|
|
|
|
==== Optional arguments
|
|
|
|
The following arguments can optionally be provided:
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-alias]
|
2018-01-25 08:53:27 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> One or more aliases to look for
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-indices]
|
2018-01-25 08:53:27 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The index or indices that the alias is associated with
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-indicesOptions]
|
2018-01-25 08:53:27 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> Setting `IndicesOptions` controls how unavailable indices are resolved and
|
|
|
|
how wildcard expressions are expanded
|
|
|
|
|
|
|
|
["source","java",subs="attributes,callouts,macros"]
|
|
|
|
--------------------------------------------------
|
2018-11-27 20:40:49 -05:00
|
|
|
include-tagged::{doc-tests-file}[{api}-request-local]
|
2018-01-25 08:53:27 -05:00
|
|
|
--------------------------------------------------
|
|
|
|
<1> The `local` flag (defaults to `false`) controls whether the aliases need
|
|
|
|
to be looked up in the local cluster state or in the cluster state held by
|
2018-02-20 09:58:58 -05:00
|
|
|
the elected master node
|
2018-01-25 08:53:27 -05:00
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
include::../execution.asciidoc[]
|
2018-01-25 08:53:27 -05:00
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
[id="{upid}-{api}-response"]
|
2018-01-25 08:53:27 -05:00
|
|
|
==== Exists Alias Response
|
|
|
|
|
2018-11-27 20:40:49 -05:00
|
|
|
The Exists Alias API returns a +{response}+ that indicates whether the provided
|
2018-01-25 08:53:27 -05:00
|
|
|
alias (or aliases) was found or not.
|