From a17de6ceb7a4f28012852fc3874cadb71ee5c6b1 Mon Sep 17 00:00:00 2001 From: James Rodewig <40268737+jrodewig@users.noreply.github.com> Date: Mon, 28 Jun 2021 08:53:45 -0400 Subject: [PATCH] [DOCS] Update wildcard support for removing aliases (#74561) You can now use a wildcard pattern to remove data stream and index aliases in the same action/request. Co-authored-by: Elastic Machine --- docs/reference/indices/aliases.asciidoc | 20 ++++++++++++-------- docs/reference/indices/delete-alias.asciidoc | 3 +-- 2 files changed, 13 insertions(+), 10 deletions(-) diff --git a/docs/reference/indices/aliases.asciidoc b/docs/reference/indices/aliases.asciidoc index a23998926f961..e3f64aa338ee4 100644 --- a/docs/reference/indices/aliases.asciidoc +++ b/docs/reference/indices/aliases.asciidoc @@ -80,14 +80,16 @@ The object body contains options for the alias. Supports an empty object. `alias`:: (Required*, string) Alias for the action. Index alias names support <>. If `aliases` is not specified, the `add` -and `remove` actions require this parameter. The `remove_index` action doesn't -support this parameter. +and `remove` actions require this parameter. For the `remove` action, this +parameter supports wildcards (`*`). The `remove_index` action doesn't support +this parameter. `aliases`:: (Required*, array of strings) Aliases for the action. Index alias names support <>. If `alias` is not specified, the `add` and -`remove` actions require this parameter. The `remove_index` action doesn't -support this parameter. +`remove` actions require this parameter. For the `remove` action, this parameter +supports wildcards (`*`). The `remove_index` action doesn't support this +parameter. // tag::alias-options[] `filter`:: @@ -99,13 +101,15 @@ Only the `add` action supports this parameter. `index`:: (Required*, string) Data stream or index for the action. Supports wildcards -(`*`). Wildcard patterns that match both data streams and indices return an -error. If `indices` is not specified, this parameter is required. +(`*`). If `indices` is not specified, this parameter is required. For the `add` +and `remove_index` actions, wildcard patterns that match both data streams and +indices return an error. `indices`:: (Required*, array of strings) Data streams or indices for the action. Supports -wildcards (`*`). Wildcard patterns that match both data streams and indices -return an error. If `index` is not specified, this parameter is required. +wildcards (`*`). If `index` is not specified, this parameter is required. For +the `add` and `remove_index` actions, wildcard patterns that match both data +streams and indices return an error. // tag::alias-options[] `index_routing`:: diff --git a/docs/reference/indices/delete-alias.asciidoc b/docs/reference/indices/delete-alias.asciidoc index ce5bfded37f6f..8d9cf98f59735 100644 --- a/docs/reference/indices/delete-alias.asciidoc +++ b/docs/reference/indices/delete-alias.asciidoc @@ -37,8 +37,7 @@ indices. ``:: (Required, string) Comma-separated list of data streams or indices used to limit -the request. Supports wildcards (`*`). Wildcard patterns that match both data -streams and indices return an error. +the request. Supports wildcards (`*`). [[delete-alias-api-query-params]] ==== {api-query-parms-title}