Open
Description
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"
}
}
}