Retrieves one or more snapshot lifecycle policy definitions and information about the latest snapshot attempts Added in 7.4.0
Path parameters
-
Comma-separated list of snapshot lifecycle policies to retrieve
GET /_slm/policy/{policy_id}
curl \
-X GET http://api.example.com/_slm/policy/{policy_id}
Response examples (200)
{
"additionalProperty1": {
"in_progress": {
"name": "string",
"": 42.0,
"state": "string",
"uuid": "string"
},
"last_failure": {
"snapshot_name": "string",
"": "string"
},
"last_success": {
"snapshot_name": "string",
"": "string"
},
"": 42.0,
"policy": {
"config": {
"ignore_unavailable": true,
"indices": "string",
"include_global_state": true,
"feature_states": [
"string"
],
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"partial": true
},
"name": "string",
"repository": "string",
"retention": {
"expire_after": "string",
"max_count": 42.0,
"min_count": 42.0
},
"schedule": "string"
},
"version": 42.0,
"stats": {
"retention_deletion_time": "string",
"": 42.0,
"retention_failed": 42.0,
"retention_runs": 42.0,
"retention_timed_out": 42.0,
"policy": "string",
"total_snapshots_deleted": 42.0,
"total_snapshot_deletion_failures": 42.0,
"total_snapshots_failed": 42.0,
"total_snapshots_taken": 42.0
}
},
"additionalProperty2": {
"in_progress": {
"name": "string",
"": 42.0,
"state": "string",
"uuid": "string"
},
"last_failure": {
"snapshot_name": "string",
"": "string"
},
"last_success": {
"snapshot_name": "string",
"": "string"
},
"": 42.0,
"policy": {
"config": {
"ignore_unavailable": true,
"indices": "string",
"include_global_state": true,
"feature_states": [
"string"
],
"metadata": {
"additionalProperty1": {},
"additionalProperty2": {}
},
"partial": true
},
"name": "string",
"repository": "string",
"retention": {
"expire_after": "string",
"max_count": 42.0,
"min_count": 42.0
},
"schedule": "string"
},
"version": 42.0,
"stats": {
"retention_deletion_time": "string",
"": 42.0,
"retention_failed": 42.0,
"retention_runs": 42.0,
"retention_timed_out": 42.0,
"policy": "string",
"total_snapshots_deleted": 42.0,
"total_snapshot_deletion_failures": 42.0,
"total_snapshots_failed": 42.0,
"total_snapshots_taken": 42.0
}
}
}