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
.
GET /_slm/policy/{policy_id}
Console
GET _slm/policy/daily-snapshots?human
resp = client.slm.get_lifecycle( policy_id="daily-snapshots", human=True, )
const response = await client.slm.getLifecycle({ policy_id: "daily-snapshots", human: "true", });
response = client.slm.get_lifecycle( policy_id: "daily-snapshots", human: "true" )
$resp = $client->slm()->getLifecycle([ "policy_id" => "daily-snapshots", "human" => "true", ]);
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_slm/policy/daily-snapshots?human"
Response examples (200)
A successful response from `GET _slm/policy/daily-snapshots?human`.
{ "daily-snapshots": { "version": 1, "modified_date": "2099-05-06T01:30:00.000Z", "modified_date_millis": 4081757400000, "policy" : { "schedule": "0 30 1 * * ?", "name": "<daily-snap-{now/d}>", "repository": "my_repository", "config": { "indices": ["data-*", "important"], "ignore_unavailable": false, "include_global_state": false }, "retention": { "expire_after": "30d", "min_count": 5, "max_count": 50 } }, "stats": { "policy": "daily-snapshots", "snapshots_taken": 0, "snapshots_failed": 0, "snapshots_deleted": 0, "snapshot_deletion_failures": 0 }, "next_execution": "2099-05-07T01:30:00.000Z", "next_execution_millis": 4081843800000 } }