95 lines
1.7 KiB
Plaintext
95 lines
1.7 KiB
Plaintext
|
////
|
||
|
This is a template for ILM action reference documentation.
|
||
|
|
||
|
To document a new action, copy this file, remove comments like this, and
|
||
|
replace "sample" with the appropriate action name.
|
||
|
|
||
|
Ensure the new action docs are linked and included in
|
||
|
docs/reference/ilm/actions.asciidoc
|
||
|
////
|
||
|
|
||
|
[role="xpack"]
|
||
|
[[ilm-sample]]
|
||
|
=== Sample
|
||
|
|
||
|
Phases allowed: hot, warm, cold, delete.
|
||
|
|
||
|
////
|
||
|
INTRO
|
||
|
Include a brief, 1-2 sentence description.
|
||
|
////
|
||
|
|
||
|
Does a cool thing.
|
||
|
|
||
|
[[ilm-sample-options]]
|
||
|
==== Options
|
||
|
|
||
|
////
|
||
|
Definition list of the options that can be specified for the action:
|
||
|
|
||
|
If there are no options:
|
||
|
|
||
|
None.
|
||
|
////
|
||
|
|
||
|
`sample_option1`::
|
||
|
(Optional, integer)
|
||
|
Number of something.
|
||
|
|
||
|
`sample_option2`::
|
||
|
(Required, string)
|
||
|
Name of something.
|
||
|
|
||
|
[[ilm-sample-ex]]
|
||
|
==== Example
|
||
|
|
||
|
////
|
||
|
Basic example of configuring the action in an ILM policy.
|
||
|
|
||
|
Additional examples are optional.
|
||
|
////
|
||
|
|
||
|
[source,console]
|
||
|
--------------------------------------------------
|
||
|
PUT _ilm/policy/my_policy
|
||
|
{
|
||
|
"policy": {
|
||
|
"phases": {
|
||
|
"warm": {
|
||
|
"actions": {
|
||
|
"sample" : {
|
||
|
"sample_option1" : 2
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
--------------------------------------------------
|
||
|
// TEST[skip: Replace fake actions and remove this comment.]
|
||
|
|
||
|
[[ilm-sample2-ex]]
|
||
|
===== Describe example
|
||
|
|
||
|
The sample action in the following policy does something interesting.
|
||
|
|
||
|
[source,console]
|
||
|
--------------------------------------------------
|
||
|
PUT _ilm/policy/my_policy
|
||
|
{
|
||
|
"policy": {
|
||
|
"phases": {
|
||
|
"warm": {
|
||
|
"actions": {
|
||
|
"sample" : {
|
||
|
"sample_option1" : 100,
|
||
|
"sample_option2" : "interesting"
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
}
|
||
|
--------------------------------------------------
|
||
|
// TEST[skip: Replace fake actions and remove this comment.]
|