Retrieves a lifecycle policy.
Returns the specified policy definition. Includes the policy version and last modified date. If no policy is specified, returns all defined policies.
timeout
30s
. For more information about
time units, see Time units.
master_timeout
30s
. For more information about
time units, see Time units.
You must have the manage_ilm
or read_ilm
or both cluster privileges to use this API.
For more information, see Security Privileges.
The following example retrieves my_policy
:
GET _ilm/policy/my_policy
If the request succeeds, the body of the response contains the policy definition: