Skip to content

Feature request: HEAD /_ilm/policy/{name} #50031

Closed
@ruflin

Description

@ruflin

In elastic/kibana#52632 we check if an ILM policy already exist to make sure we don't overwrite it. Our initial implementation to do this check was:

GET /_ilm/policy/{name}

The problem with the above is that it throws an exception on the Elasticsearch side which I don't like as I only want to check if it is there. The current solution I was pointed to, to work around this is using the following:

GET /_ilm/policy/?filter_path={name}

What I would prefer to see is heaving a HEAD request for this as we have in other API's:

HEAD /_ilm/policy/{name}

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions