Get lifecycle policies Added in 6.6.0
Path parameters
-
Identifier for the policy.
Query parameters
-
master_timeout string
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
-
200 application/json
Hide response attribute Show response attribute object
-
Additional properties are allowed.
Hide * attributes Show * attributes object
modified_date string | number Required
A date and time, either as a string whose format can depend on the context (defaulting to ISO 8601), or a number of milliseconds since the Epoch. Elasticsearch accepts both as input, but will generally output a string representation.
One of: Time unit for milliseconds
-
Additional properties are allowed.
Hide policy attributes Show policy attributes object
-
Additional properties are allowed.
Hide phases attributes Show phases attributes object
-
cold object
Additional properties are allowed.
Hide cold attributes Show cold attributes object
-
actions object
Additional properties are allowed.
Hide actions attributes Show actions attributes object
-
allocate object
Additional properties are allowed.
-
delete object
Additional properties are allowed.
-
downsample object
Additional properties are allowed.
-
freeze object
Additional properties are allowed.
-
forcemerge object
Additional properties are allowed.
-
migrate object
Additional properties are allowed.
-
readonly object
Additional properties are allowed.
-
rollover object
Additional properties are allowed.
-
set_priority object
Additional properties are allowed.
-
searchable_snapshot object
Additional properties are allowed.
-
shrink object
Additional properties are allowed.
-
unfollow object
Additional properties are allowed.
-
wait_for_snapshot object
Additional properties are allowed.
-
-
-
delete object
Additional properties are allowed.
Hide delete attributes Show delete attributes object
-
actions object
Additional properties are allowed.
Hide actions attributes Show actions attributes object
-
allocate object
Additional properties are allowed.
-
delete object
Additional properties are allowed.
-
downsample object
Additional properties are allowed.
-
freeze object
Additional properties are allowed.
-
forcemerge object
Additional properties are allowed.
-
migrate object
Additional properties are allowed.
-
readonly object
Additional properties are allowed.
-
rollover object
Additional properties are allowed.
-
set_priority object
Additional properties are allowed.
-
searchable_snapshot object
Additional properties are allowed.
-
shrink object
Additional properties are allowed.
-
unfollow object
Additional properties are allowed.
-
wait_for_snapshot object
Additional properties are allowed.
-
-
-
frozen object
Additional properties are allowed.
Hide frozen attributes Show frozen attributes object
-
actions object
Additional properties are allowed.
Hide actions attributes Show actions attributes object
-
allocate object
Additional properties are allowed.
-
delete object
Additional properties are allowed.
-
downsample object
Additional properties are allowed.
-
freeze object
Additional properties are allowed.
-
forcemerge object
Additional properties are allowed.
-
migrate object
Additional properties are allowed.
-
readonly object
Additional properties are allowed.
-
rollover object
Additional properties are allowed.
-
set_priority object
Additional properties are allowed.
-
searchable_snapshot object
Additional properties are allowed.
-
shrink object
Additional properties are allowed.
-
unfollow object
Additional properties are allowed.
-
wait_for_snapshot object
Additional properties are allowed.
-
-
-
hot object
Additional properties are allowed.
Hide hot attributes Show hot attributes object
-
actions object
Additional properties are allowed.
Hide actions attributes Show actions attributes object
-
allocate object
Additional properties are allowed.
-
delete object
Additional properties are allowed.
-
downsample object
Additional properties are allowed.
-
freeze object
Additional properties are allowed.
-
forcemerge object
Additional properties are allowed.
-
migrate object
Additional properties are allowed.
-
readonly object
Additional properties are allowed.
-
rollover object
Additional properties are allowed.
-
set_priority object
Additional properties are allowed.
-
searchable_snapshot object
Additional properties are allowed.
-
shrink object
Additional properties are allowed.
-
unfollow object
Additional properties are allowed.
-
wait_for_snapshot object
Additional properties are allowed.
-
-
-
warm object
Additional properties are allowed.
Hide warm attributes Show warm attributes object
-
actions object
Additional properties are allowed.
Hide actions attributes Show actions attributes object
-
allocate object
Additional properties are allowed.
-
delete object
Additional properties are allowed.
-
downsample object
Additional properties are allowed.
-
freeze object
Additional properties are allowed.
-
forcemerge object
Additional properties are allowed.
-
migrate object
Additional properties are allowed.
-
readonly object
Additional properties are allowed.
-
rollover object
Additional properties are allowed.
-
set_priority object
Additional properties are allowed.
-
searchable_snapshot object
Additional properties are allowed.
-
shrink object
Additional properties are allowed.
-
unfollow object
Additional properties are allowed.
-
wait_for_snapshot object
Additional properties are allowed.
-
-
-
-
_meta object
Hide _meta attribute Show _meta attribute object
-
Additional properties are allowed.
-
-
-
curl \
-X GET http://api.example.com/_ilm/policy/{policy}
{
"my_policy": {
"version": 1,
"modified_date": 82392349,
"policy": {
"phases": {
"warm": {
"min_age": "10d",
"actions": {
"forcemerge": {
"max_num_segments": 1
}
}
},
"delete": {
"min_age": "30d",
"actions": {
"delete": {
"delete_searchable_snapshot": true
}
}
}
}
},
"in_use_by" : {
"indices" : [],
"data_streams" : [],
"composable_templates" : []
}
}
}