Skip to content

Broken Request Body generation for ILM Policy Endpoint #449

Open
@raynigon

Description

@raynigon

Java API client version

8.5.1

Java version

17

Elasticsearch Version

8.5.1

Problem description

The generated request body does not match with the Elasticsearch API for the PUT /_ilm/policy/<name> endpoint.

Example

Following Body was generated by the Client for the PUT /_ilm/policy/<name> request

{
    "policy": {
        "phases": {
            "hot": {
                "actions": {
                    "rollover": {
                        "max_primary_shard_size": "5gb",
                        "max_age": null,
                        "max_docs": null
                    }
                },
                "min_age": "0m"
            }
        }
    }
}

The following body is expected by the elasticsearch API:

{
    "phases": {
        "hot": {
            "actions": {
                "rollover": {
                    "max_primary_shard_size": "5gb",
                    "max_age": null,
                    "max_docs": null
                }
            },
            "min_age": "0m"
        }
    }
}

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