Update aliases and delete indices atomically
- POST /_aliases
Adds a data stream or index to an alias.
Request body
-
actionsobject[] -
Actions to perform.
-
addobject -
Adds a data stream or index to an alias. If the alias doesn’t exist, the
addaction creates it. -
filter{} Query -
Query used to limit documents the alias can access.
-
indicesunion oneOf -
Data streams or indices for the action. Supports wildcards (
*). -
One of:
string[]orstring -
index_routingstring -
Value used to route indexing operations to a specific shard. If specified, this overwrites the
routingvalue for indexing operations. Data stream aliases don’t support this parameter. -
routingstring -
Value used to route indexing and search operations to a specific shard. Data stream aliases don’t support this parameter.