Get snapshot lifecycle management statistics Added in 7.5.0

GET /_slm/stats

Get global and policy-level statistics about actions taken by snapshot lifecycle management.

Query parameters

  • 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.

  • timeout string

    Period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.

Responses

GET /_slm/stats
curl \
 --request GET http://api.example.com/_slm/stats \
 --header "Authorization: $API_KEY"
Response examples (200)
{
  "retention_deletion_time": "string",
  "": 42.0,
  "retention_failed": 42.0,
  "retention_runs": 42.0,
  "retention_timed_out": 42.0,
  "total_snapshots_deleted": 42.0,
  "total_snapshot_deletion_failures": 42.0,
  "total_snapshots_failed": 42.0,
  "total_snapshots_taken": 42.0,
  "policy_stats": [
    "string"
  ]
}