stack es indices put-alias cli command
Auth required
Idempotent
Scope: global
elastic stack es indices put-alias --index <index> --name <name> [options]
Create or update an alias.
Behaviour flags:
--dry-run — validate all inputs and exit without performing any action
--indexstringrequired-
Comma-separated list of data streams or indices to add. Supports wildcards (
*). Wildcard patterns that match both data streams and indices return an error.Repeatable: pass
--indexmultiple times to supply more than one value --namestringrequired- Alias to update. If the alias doesn’t exist, the request creates it. Index alias names support date math.
--master-timeoutstring- Period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
--timeoutstring- Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
--filterstring- Query used to limit documents the alias can access.
--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. --[no-]is-write-index- If
true, sets the write index or data stream for the alias. If an alias points to multiple indices or data streams andis_write_indexisn’t set, the alias rejects write requests. If an index alias points to one index andis_write_indexisn’t set, the index automatically acts as the write index. Data stream aliases don’t automatically set a write data stream, even if the alias points to one data stream. --routingstring- Value used to route indexing and search operations to a specific shard. Data stream aliases don’t support this parameter.
--search-routingstring- Value used to route search operations to a specific shard. If specified, this overwrites the
routingvalue for search operations. Data stream aliases don’t support this parameter. --input-filestring- path to a JSON file to use as command input
--[no-]dry-run- validate all inputs and exit without performing any action (preview changes without applying them)
--[no-]json-
output as JSON