-
Notifications
You must be signed in to change notification settings - Fork 84
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Backport 8.17] Add snapshot and restore examples (#3474)
- Loading branch information
1 parent
73e9340
commit e2714ec
Showing
29 changed files
with
280 additions
and
23 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
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
7 changes: 7 additions & 0 deletions
7
...pshot/cleanup_repository/examples/response/SnapshotCleanupRepositoryResponseExample1.yaml
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,7 @@ | ||
# summary: | ||
description: A successful response from `POST /_snapshot/my_repository/_cleanup`. | ||
# type: response | ||
# response_code: '' | ||
value: | ||
"{\n \"results\": {\n \"deleted_bytes\": 20,\n \"deleted_blobs\": 5\n\ | ||
\ }\n}" |
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
5 changes: 5 additions & 0 deletions
5
specification/snapshot/clone/examples/request/SnapshotCloneRequestExample1.yaml
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,5 @@ | ||
# summary: | ||
# method_request: PUT /_snapshot/my_repository/source_snapshot/_clone/target_snapshot | ||
description: Run `PUT /_snapshot/my_repository/source_snapshot/_clone/target_snapshot` to clone the `source_snapshot` into a new `target_snapshot`. | ||
# type: request | ||
value: "{\n \"indices\": \"index_a,index_b\"\n}" |
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
8 changes: 8 additions & 0 deletions
8
specification/snapshot/create/examples/request/SnapshotCreateRequestExample1.yaml
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,8 @@ | ||
# summary: | ||
# method_request: PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true | ||
description: Run `PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true` to take a snapshot of `index_1` and `index_2`. | ||
# type: request | ||
value: | ||
"{\n \"indices\": \"index_1,index_2\",\n \"ignore_unavailable\": true,\n\ | ||
\ \"include_global_state\": false,\n \"metadata\": {\n \"taken_by\": \"user123\"\ | ||
,\n \"taken_because\": \"backup before upgrading\"\n }\n}" |
15 changes: 15 additions & 0 deletions
15
specification/snapshot/create/examples/response/SnapshotCreateResponseExample1.yaml
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,15 @@ | ||
# summary: | ||
description: A successful response from `PUT /_snapshot/my_repository/snapshot_2?wait_for_completion=true`. | ||
# type: response | ||
# response_code: '' | ||
value: | ||
"{\n \"snapshot\": {\n \"snapshot\": \"snapshot_2\",\n \"uuid\": \"\ | ||
vdRctLCxSketdKb54xw67g\",\n \"repository\": \"my_repository\",\n \"version_id\"\ | ||
: <version_id>,\n \"version\": <version>,\n \"indices\": [],\n \"data_streams\"\ | ||
: [],\n \"feature_states\": [],\n \"include_global_state\": false,\n \"\ | ||
metadata\": {\n \"taken_by\": \"user123\",\n \"taken_because\": \"backup\ | ||
\ before upgrading\"\n },\n \"state\": \"SUCCESS\",\n \"start_time\": \"\ | ||
2020-06-25T14:00:28.850Z\",\n \"start_time_in_millis\": 1593093628850,\n \"\ | ||
end_time\": \"2020-06-25T14:00:28.850Z\",\n \"end_time_in_millis\": 1593094752018,\n\ | ||
\ \"duration_in_millis\": 0,\n \"failures\": [],\n \"shards\": {\n \ | ||
\ \"total\": 0,\n \"failed\": 0,\n \"successful\": 0\n }\n }\n}" |
7 changes: 7 additions & 0 deletions
7
.../snapshot/create_repository/examples/request/SnapshotCreateRepositoryRequestExample1.yaml
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,7 @@ | ||
summary: A shared file system repository | ||
# method_request: PUT /_snapshot/my_repository | ||
description: Run `PUT /_snapshot/my_repository` to create or update a shared file system snapshot repository. | ||
# type: request | ||
value: | ||
"{\n \"type\": \"fs\",\n \"settings\": {\n \"location\": \"my_backup_location\"\ | ||
\n }\n}" |
7 changes: 7 additions & 0 deletions
7
.../snapshot/create_repository/examples/request/SnapshotCreateRepositoryRequestExample2.yaml
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,7 @@ | ||
summary: An Azure repository | ||
# method_request: PUT _snapshot/my_backup | ||
description: Run `PUT /_snapshot/my_repository` to create or update an Azure snapshot repository. | ||
# type: request | ||
value: | ||
"{\n \"type\": \"azure\",\n \"settings\": {\n \"client\": \"secondary\"\ | ||
\n }\n}" |
Oops, something went wrong.