Query parameters
-
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
. -
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Values are
-1
or0
.
POST /_slm/_execute_retention
Console
POST _slm/_execute_retention
resp = client.slm.execute_retention()
const response = await client.slm.executeRetention();
response = client.slm.execute_retention
$resp = $client->slm()->executeRetention();
curl -X POST -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_slm/_execute_retention"