Retry a policy
Generally available; Added in 6.6.0
Retry running the lifecycle policy for an index that is in the ERROR step. The API sets the policy back to the step where the error occurred and runs the step. Use the explain lifecycle state API to determine whether an index is in the ERROR step.
highlight#highlightFromAnchor" href="#topic-required-authorization"> Required authorization
- Index privileges:
manage_ilm
POST
/{index}/_ilm/retry
dropdown#toggle click@window->dropdown#hide touchend@window->dropdown#hide"
data-dropdown-target="button"
data-scrollable="false"
data-headings="false"
aria-expanded="false"
aria-haspopup="true"
role="menu"
tabindex="0">
Console
POST /my-index-000001/_ilm/retry
resp = client.ilm.retry(
index="my-index-000001",
)
const response = await client.ilm.retry({
index: "my-index-000001",
});
response = client.ilm.retry(
index: "my-index-000001"
)
$resp = $client->ilm()->retry([
"index" => "my-index-000001",
]);
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/my-index-000001/_ilm/retry"
client.ilm().retry(r -> r
.index("my-index-000001")
);