-
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 initial documentation for SLM (#41510)
* Add initial documentation for SLM This adds the initial documentation for snapshot lifecycle management. It also includes the REST spec API json files since they're sort of documentation. Relates to #38461
- Loading branch information
Showing
9 changed files
with
449 additions
and
0 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
Large diffs are not rendered by default.
Oops, something went wrong.
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
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
19 changes: 19 additions & 0 deletions
19
x-pack/plugin/src/test/resources/rest-api-spec/api/slm.delete_lifecycle.json
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,19 @@ | ||
{ | ||
"slm.delete_lifecycle": { | ||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", | ||
"methods": [ "DELETE" ], | ||
"url": { | ||
"path": "/_slm/policy/{policy_id}", | ||
"paths": ["/_slm/policy/{policy_id}"], | ||
"parts": { | ||
"policy": { | ||
"type" : "string", | ||
"description" : "The id of the snapshot lifecycle policy to remove" | ||
} | ||
}, | ||
"params": { | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
x-pack/plugin/src/test/resources/rest-api-spec/api/slm.execute_lifecycle.json
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,19 @@ | ||
{ | ||
"slm.execute_lifecycle": { | ||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", | ||
"methods": [ "PUT" ], | ||
"url": { | ||
"path": "/_slm/policy/{policy_id}/_execute", | ||
"paths": ["/_slm/policy/{policy_id}/_execute"], | ||
"parts": { | ||
"policy_id": { | ||
"type" : "string", | ||
"description" : "The id of the snapshot lifecycle policy to be executed" | ||
} | ||
}, | ||
"params": { | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
19 changes: 19 additions & 0 deletions
19
x-pack/plugin/src/test/resources/rest-api-spec/api/slm.get_lifecycle.json
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,19 @@ | ||
{ | ||
"slm.get_lifecycle": { | ||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", | ||
"methods": [ "GET" ], | ||
"url": { | ||
"path": "/_slm/policy/{policy_id}", | ||
"paths": ["/_slm/policy/{policy_id}", "/_slm/policy"], | ||
"parts": { | ||
"policy_id": { | ||
"type" : "string", | ||
"description" : "Comma-separated list of snapshot lifecycle policies to retrieve" | ||
} | ||
}, | ||
"params": { | ||
} | ||
}, | ||
"body": null | ||
} | ||
} |
21 changes: 21 additions & 0 deletions
21
x-pack/plugin/src/test/resources/rest-api-spec/api/slm.put_lifecycle.json
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,21 @@ | ||
{ | ||
"slm.put_lifecycle": { | ||
"documentation": "https://www.elastic.co/guide/en/elasticsearch/reference/current/slm-api.html", | ||
"methods": [ "PUT" ], | ||
"url": { | ||
"path": "/_slm/policy/{policy_id}", | ||
"paths": ["/_slm/policy/{policy_id}"], | ||
"parts": { | ||
"policy_id": { | ||
"type" : "string", | ||
"description" : "The id of the snapshot lifecycle policy" | ||
} | ||
}, | ||
"params": { | ||
} | ||
}, | ||
"body": { | ||
"description": "The snapshot lifecycle policy definition to register" | ||
} | ||
} | ||
} |