Get policy information
- GET /_slm/policy/{policy_id}
- GET /_slm/policy
Get snapshot lifecycle policy definitions and information about the latest snapshot attempts.
Required authorization
- Cluster privileges manage_slm
Response
-
<string>object -
policyobjectrequired -
configobject -
If false, the snapshot fails if any data stream or index in indices is missing or closed. If true, the snapshot ignores missing or closed data streams and indices.
-
indicesstring -
A comma-separated list of data streams and indices to include in the snapshot. Multi-index syntax is supported. By default, a snapshot includes all data streams and indices in the cluster. If this argument is provided, the snapshot only includes the specified data streams and clusters.
-
include_global_stateboolean · default: true -
If true, the current global state is included in the snapshot.
-
feature_statesstring -
A list of feature states to be included in this snapshot. A list of features available for inclusion in the snapshot and their descriptions be can be retrieved using the get features API. Each feature state includes one or more system indices containing data necessary for the function of that feature. Providing an empty array will include no feature states in the snapshot, regardless of the value of include_global_state. By default, all available feature states will be included in the snapshot if include_global_state is true, or no feature states if include_global_state is false.
-
retentionobject -
versionnumberrequired -
The version of the snapshot policy. Only the latest version is stored and incremented when the policy is updated.