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.
Default value is
30s. -
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.
Default value is
30s.
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"
var response = await client.SnapshotLifecycleManagement.ExecuteRetentionAsync();
client.slm().executeRetention(e -> e);