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
-
*
object Additional properties 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
-
policy
object Required Additional properties are allowed.
Hide policy attributes Show policy attributes object
-
phases
object Required 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.
-
-
min_age
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
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.
-
-
min_age
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
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.
-
-
min_age
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
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.
-
-
min_age
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
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.
-
-
min_age
string A duration. Units can be
nanos
,micros
,ms
(milliseconds),s
(seconds),m
(minutes),h
(hours) andd
(days). Also accepts "0" without a unit and "-1" to indicate an unspecified value.
-
-
-
_meta
object Hide _meta attribute Show _meta attribute object
-
*
object Additional properties Additional properties are allowed.
-
-
-
version
number Required
-
curl \
--request GET http://api.example.com/_ilm/policy \
--header "Authorization: $API_KEY"
{
"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" : []
}
}
}