-
Notifications
You must be signed in to change notification settings - Fork 24.9k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add HLRC docs for Get Lifecycle Policy (#35612)
Adds docs for the Get Lifecycle Policy API to the HLRC documentation.
- Loading branch information
Showing
4 changed files
with
154 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
40 changes: 40 additions & 0 deletions
40
docs/java-rest/high-level/ilm/get_lifecycle_policy.asciidoc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,40 @@ | ||
-- | ||
:api: ilm-get-lifecycle-policy | ||
:request: GetLifecyclePolicyRequest | ||
:response: GetLifecyclePolicyResponse | ||
-- | ||
|
||
[id="{upid}-{api}"] | ||
=== Get Lifecycle Policy API | ||
|
||
|
||
[id="{upid}-{api}-request"] | ||
==== Request | ||
|
||
The Get Lifecycle Policy API allows you to retrieve the definition of an Index | ||
Lifecycle Management Policy from the cluster. | ||
|
||
["source","java",subs="attributes,callouts,macros"] | ||
-------------------------------------------------- | ||
include-tagged::{doc-tests-file}[{api}-request] | ||
-------------------------------------------------- | ||
<1> Gets all policies. | ||
<2> Gets `my_policy` and `other_policy` | ||
|
||
[id="{upid}-{api}-response"] | ||
==== Response | ||
|
||
The returned +{response}+ contains a map of `LifecyclePolicyMetadata`, | ||
accessible by the name of the policy, which contains data about each policy, | ||
as well as the policy definition. | ||
|
||
["source","java",subs="attributes,callouts,macros"] | ||
-------------------------------------------------- | ||
include-tagged::{doc-tests-file}[{api}-response] | ||
-------------------------------------------------- | ||
<1> The retrieved policies are retrieved by name. | ||
<2> The policy definition itself. | ||
|
||
include::../execution.asciidoc[] | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters