Skip to content

Commit c60f590

Browse files
opensearch-trigger-bot[bot]github-actions[bot]natebower
authored
Refactor snapshot documentation (#10303) (#10307)
* Refactor snapshot documentation * Apply suggestions from code review * Add redirect to index page --------- (cherry picked from commit 178e536) Signed-off-by: Fanit Kolchina <kolchfa@amazon.com> Signed-off-by: Nathan Bower <nbower@amazon.com> Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com> Co-authored-by: Nathan Bower <nbower@amazon.com>
1 parent 6588ee5 commit c60f590

File tree

12 files changed

+29
-40
lines changed

12 files changed

+29
-40
lines changed

_api-reference/snapshots/cleanup-snapshot-repository.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: default
3-
title: Cleanup Snapshot Repository
3+
title: Cleanup snapshot repository
44
parent: Snapshot APIs
55
nav_order: 11
66
---
77

8-
# Cleanup Snapshot Repository
8+
# Cleanup snapshot repository
99
Introduced 1.0
1010
{: .label .label-purple }
1111

_api-reference/snapshots/create-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Register Snapshot Repository
3+
title: Register snapshot repository
44
parent: Snapshot APIs
55
nav_order: 1
66
---

_api-reference/snapshots/create-snapshot.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,9 @@ nav_order: 5
1111

1212
Creates a snapshot within an existing repository.
1313

14-
* To learn more about snapshots, see [Snapshots]({{site.url}}{{site.baseurl}}/opensearch/snapshots/index).
14+
* To learn more about snapshots, see [Snapshots]({{site.url}}{{site.baseurl}}/opensearch/snapshots/index/).
1515

16-
* To view a list of your repositories, see [Get snapshot repository]({{site.url}}{{site.baseurl}}/api-reference/snapshots/get-snapshot-repository).
16+
* To view a list of your repositories, see [Get snapshot repository]({{site.url}}{{site.baseurl}}/api-reference/snapshots/get-snapshot-repository/).
1717

1818
## Endpoints
1919

_api-reference/snapshots/delete-snapshot-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Delete Snapshot Repository
3+
title: Delete snapshot repository
44
parent: Snapshot APIs
55
nav_order: 3
66
---

_api-reference/snapshots/delete-snapshot.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Delete Snapshot
3+
title: Delete snapshot
44
parent: Snapshot APIs
55
nav_order: 7
66
---

_api-reference/snapshots/get-snapshot-repository.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Get Snapshot Repository
3+
title: Get snapshot repository
44
parent: Snapshot APIs
55
nav_order: 2
66
---

_api-reference/snapshots/get-snapshot-status.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
layout: default
3-
title: Get Snapshot Status
3+
title: Get snapshot status
44
parent: Snapshot APIs
55
nav_order: 8
66
---

_api-reference/snapshots/get-snapshot.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
---
22
layout: default
3-
title: Get Snapshot
3+
title: Get snapshot
44
parent: Snapshot APIs
55
nav_order: 6
66
---
77

8-
# Get snapshot.
8+
# Get snapshot
99
**Introduced 1.0**
1010
{: .label .label-purple }
1111

@@ -28,8 +28,8 @@ GET _snapshot/<repository>/<snapshot>/
2828

2929
| Parameter | Data type | Description |
3030
:--- | :--- | :---
31-
| verbose | Boolean | Whether to show all, or just basic snapshot information. If `true`, returns all information. If `false`, omits information like start/end times, failures, and shards. Optional, defaults to `true`.|
32-
| ignore_unavailable | Boolean | How to handle snapshots that are unavailable (corrupted or otherwise temporarily can't be returned). If `true` and the snapshot is unavailable, the request does not return the snapshot. If `false` and the snapshot is unavailable, the request returns an error. Optional, defaults to `false`.|
31+
| verbose | Boolean | When `true`, returns additional information about each snapshot, such as the version of OpenSearch that took the snapshot, the start and end times of the snapshot, and the number of shards contained in the snapshot. When `false`, returns only snapshot names and contained indexes. This is useful when the snapshots belong to a cloud-based repository, where each blob read is a cost or performance concern. Optional. Default is `true`.|
32+
| ignore_unavailable | Boolean | How to handle snapshots that are unavailable (corrupted or otherwise temporarily can't be returned). If `true` and the snapshot is unavailable, the request does not return the snapshot. If `false` and the snapshot is unavailable, the request returns an error. Optional. Default is `false`.|
3333

3434
## Example request
3535

_api-reference/snapshots/index.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ nav_order: 80
66
redirect_from:
77
- /opensearch/rest-api/document-apis/
88
- /opensearch/rest-api/snapshots/
9+
- /api-reference/snapshots/
910
---
1011

1112
# Snapshot APIs

_api-reference/snapshots/restore-snapshot.md

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -6,17 +6,17 @@ parent: Snapshot APIs
66
nav_order: 9
77
---
88

9-
# Restore Snapshot
9+
# Restore snapshot
1010
**Introduced 1.0**
1111
{: .label .label-purple }
1212

13-
Restores a snapshot of a cluster or specified data streams and indices.
13+
Restores a snapshot of a cluster or specified data streams and indexes.
1414

15-
* For information about indices and clusters, see [Introduction to OpenSearch]({{site.url}}{{site.baseurl}}/opensearch/index).
15+
* For information about indexes and clusters, see [Introduction to OpenSearch]({{site.url}}{{site.baseurl}}/opensearch/index/).
1616

1717
* For information about data streams, see [Data streams]({{site.url}}{{site.baseurl}}/opensearch/data-streams).
1818

19-
If open indexes with the same name that you want to restore already exist in the cluster, you must close, delete, or rename the indexes. See [Example request](#example-request) for information about renaming an index. See [Close index]({{site.url}}{{site.baseurl}}/api-reference/index-apis/close-index) for information about closing an index.
19+
If open indexes with the same name that you want to restore already exist in the cluster, you must close, delete, or rename the indexes. See [Example request](#example-request) for information about renaming an index. See [Close index]({{site.url}}{{site.baseurl}}/api-reference/index-apis/close-index/) for information about closing an index.
2020
{: .note}
2121

2222
## Endpoints
@@ -56,7 +56,8 @@ All request body parameters are optional.
5656
| rename_alias_pattern | String | The pattern to apply to the restored aliases. Aliases matching the rename pattern will be renamed according to the `rename_alias_replacement` setting. <br /><br /> The rename pattern is applied as defined by the regular expression that supports referencing the original text. <br /> <br /> If two or more aliases are renamed to the same name, these aliases will be merged into one.|
5757
| rename_alias_replacement | String | The rename replacement string for aliases.|
5858
| source_remote_store_repository | String | The name of the remote store repository of the source index being restored. If not provided, the Snapshot Restore API will use the repository that was registered when the snapshot was created.
59-
| wait_for_completion | Boolean | Whether to return a response after the restore operation has completed. If `false`, the request returns a response when the restore operation initializes. If `true`, the request returns a response when the restore operation completes. Defaults to `false`. |
59+
| wait_for_completion | Boolean | Whether to return a response after the restore operation has completed. If `false`, the request returns a response when the restore operation initializes. If `true`, the request returns a response when the restore operation completes. Default is `false`. |
60+
storage_type | `local` indicates that all snapshot metadata and index data will be downloaded to local storage. <br /><br > `remote_snapshot` indicates that snapshot metadata will be downloaded to the cluster, but the remote repository will remain the authoritative store of the index data. Data will be downloaded and cached as necessary to service queries. At least one node in the cluster must be configured with the [search role]({{site.url}}{{site.baseurl}}/security/access-control/users-roles/) in order to restore a snapshot using the type `remote_snapshot`. <br /><br > Defaults to `local`.
6061

6162
<sup>1</sup>The cluster state includes:
6263
* Persistent cluster settings

0 commit comments

Comments
 (0)