-
Notifications
You must be signed in to change notification settings - Fork 25.6k
Add documentation for Clone Snapshot Java API #70720
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
Pinging @elastic/es-docs (Team:Docs) |
|
Pinging @elastic/es-distributed (Team:Distributed) |
|
Tests failed for unrelated failure tracked reported in #70746: @elasticmachine run elasticsearch-ci/2 |
ywelsch
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I've left one comment, o.w. looks good. Adding @jrodewig as a reviewer here as well for an extra pair of eyes.
| ==== Indices to Clone | ||
|
|
||
| The `indices` property is used to provide the list of | ||
| indices that should be included in the snapshot: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
provide the list of indices from the source snapshot to be included in the snapshot clone
jrodewig
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| [[java-rest-high-snapshot-clone-snapshot]] | ||
| === Clone Snapshot API | ||
|
|
||
| The Clone Snapshot API allows to clone part or all of a snapshot into a new snapshot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The Clone Snapshot API allows to clone part or all of a snapshot into a new snapshot. | |
| The Clone Snapshot API clones part or all of a snapshot into a new snapshot. |
| The Clone Snapshot API allows to clone part or all of a snapshot into a new snapshot. | ||
|
|
||
| [[java-rest-high-snapshot-clone-snapshot-request]] | ||
| ==== Clone Snapshot Request |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
| ==== Clone Snapshot Request | |
| ==== Request |
| <2> Called in case of a failure. The raised exception is provided as an argument. | ||
|
|
||
| [[java-rest-high-cluster-clone-snapshot-response]] | ||
| ==== Clone Snapshot Response |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
nit
| ==== Clone Snapshot Response | |
| ==== Response |
| The `indices` property is used to provide the list of | ||
| indices that should be included in the snapshot: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The `indices` property is used to provide the list of | |
| indices that should be included in the snapshot: | |
| Use `indices` to specify a list of indices from the source snapshot to include | |
| in the snapshot clone: |
| -------------------------------------------------- | ||
| include-tagged::{doc-tests}/SnapshotClientDocumentationIT.java[clone-snapshot-request-indices] | ||
| -------------------------------------------------- | ||
| <1> Request that Elasticsearch only includes "test_index" from the source snapshot. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| <1> Request that Elasticsearch only includes "test_index" from the source snapshot. | |
| <1> Include only `test_index` from the source snapshot. |
|
|
||
| ==== Further Arguments | ||
|
|
||
| The following arguments can optionally be provided: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The following arguments can optionally be provided: | |
| You can also provide the following optional arguments: |
| -------------------------------------------------- | ||
| include-tagged::{doc-tests}/SnapshotClientDocumentationIT.java[clone-snapshot-response] | ||
| -------------------------------------------------- | ||
| <1> A boolean value of `true` if the clone successfully completed, `false` otherwise. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit
| <1> A boolean value of `true` if the clone successfully completed, `false` otherwise. | |
| <1> A boolean value of `true` if the clone successfully completed. Otherwise, the value is `false`. |
| The returned `AcknowledgedResponse` contains a value on whether or not the request | ||
| was received: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
| The returned `AcknowledgedResponse` contains a value on whether or not the request | |
| was received: | |
| `AcknowledgedResponse` indicates whether the request was received: |
|
Thanks both! @jrodewig I initially borrowed most of the content of this change from the other create/delete/restore Java APIs docs, so I think many of your comments are also applicable there. |
This commit adds some missing documentation about the Clone Snapshot Java API. Relates elastic#63863
This commit adds some missing documentation about the Clone Snapshot Java API. Relates elastic#63863
This commit adds some missing documentation about the Clone Snapshot Java API.
Relates #63863