Path parameters

  • policy_idstring Required

    The id of the snapshot lifecycle policy to be executed

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 or 0.

  • timeoutstring

    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 or 0.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
PUT /_slm/policy/{policy_id}/_execute
PUT /_slm/policy/daily-snapshots/_execute
resp = client.slm.execute_lifecycle(
    policy_id="daily-snapshots",
)
const response = await client.slm.executeLifecycle({
  policy_id: "daily-snapshots",
});
response = client.slm.execute_lifecycle(
  policy_id: "daily-snapshots"
)
$resp = $client->slm()->executeLifecycle([
    "policy_id" => "daily-snapshots",
]);
curl -X PUT -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_slm/policy/daily-snapshots/_execute"
Response examples (200)
Run `POST /_slm/policy/daily-snapshots/_execute` to take an immediate snapshot according to the `daily-snapshots` policy.
{
  "snapshot_name": "daily-snap-2019.04.24-gwrqoo2xtea3q57vvg0uea"
}