Skip to content

[docs] POST /_aliases remove_index action only works on concrete indices #64616

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Nov 5, 2020

Conversation

rudolf
Copy link
Contributor

@rudolf rudolf commented Nov 5, 2020

$ curl -X PUT "elastic:changeme@localhost:9200/.kibana_1"
{"acknowledged":true,"shards_acknowledged":true,"index":".kibana_1"}
$ curl -X PUT "elastic:changeme@localhost:9200/.kibana_1/_alias/.kibana"
{"acknowledged":true}
$ curl -X POST "elastic:changeme@localhost:9200/_aliases" -H 'Content-Type: application/json' -d'
{
  "actions" : [
    { "remove_index": { "indices": ".kibana" } }
  ]
}
'
{"error":{"root_cause":[{"type":"illegal_argument_exception","reason":"The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead."}],"type":"illegal_argument_exception","reason":"The provided expression [.kibana] matches an alias, specify the corresponding concrete indices instead."},"status":400}

@rudolf rudolf added the >docs General docs changes label Nov 5, 2020
@elasticmachine
Copy link
Collaborator

Pinging @elastic/es-docs (>docs)

@elasticmachine elasticmachine added the Team:Docs Meta label for docs team label Nov 5, 2020
Copy link
Contributor

@jrodewig jrodewig left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM. I'm going to incorporate a minor edit.

@jrodewig jrodewig merged commit 33a38d4 into master Nov 5, 2020
@jrodewig jrodewig deleted the docs-aliases-remove_index branch November 5, 2020 13:14
jrodewig added a commit that referenced this pull request Nov 5, 2020
jrodewig added a commit that referenced this pull request Nov 5, 2020
jrodewig added a commit that referenced this pull request Nov 5, 2020
@rudolf
Copy link
Contributor Author

rudolf commented Nov 5, 2020

@jrodewig I missed that the delete API has the same behaviour so +1 for your edit. Maybe we should update my second edit as well:

remove_index is just like <> but will only remove a concrete index.

to become:

remove_index is just like <> and will only remove a concrete index.

@jrodewig
Copy link
Contributor

jrodewig commented Nov 5, 2020

Thanks for pointing that out @rudolf. I'll handle that as part of a follow-up PR or commit.

@jrodewig
Copy link
Contributor

jrodewig commented Nov 5, 2020

Updated the callout text with c7a11b5 and backported to the appropriate branches.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
>docs General docs changes Team:Docs Meta label for docs team v7.9.4 v7.10.0 v7.11.0 v8.0.0-alpha1
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants