Class GetSnapshotRequest
NOTE: The after
parameter and next
field enable you
to iterate through snapshots with some consistency guarantees regarding
concurrent creation or deletion of snapshots. It is guaranteed that any
snapshot that exists at the beginning of the iteration and is not
concurrently deleted will be seen during the iteration. Snapshots
concurrently created may be seen during an iteration.
- See Also:
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBase
RequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Endpoint<GetSnapshotRequest,
GetSnapshotResponse, ErrorResponse> Endpoint "snapshot.get
". -
Method Summary
Modifier and TypeMethodDescriptionfinal String
after()
An offset identifier to start pagination from as returned by the next field in the response body.final String
The value of the current sort column at which to start retrieval.final Boolean
Iffalse
, the request returns an error for any snapshots that are unavailable.final Boolean
Iftrue
, the response includes the repository name in each snapshot.final Boolean
Iftrue
, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index.final Boolean
Iftrue
, the response includes the name of each index in each snapshot.final Time
The period to wait for a connection to the master node.static GetSnapshotRequest
final Integer
offset()
Numeric offset to start pagination from based on the snapshots matching this request.final SortOrder
order()
The sort order.final String
Required - A comma-separated list of snapshot repository names used to limit the request.final Integer
size()
The maximum number of snapshots to return.final String
Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.snapshot()
Required - A comma-separated list of snapshot names to retrieve Wildcards (*
) are supported.final SnapshotSort
sort()
The sort order for the result.final Boolean
verbose()
Iftrue
, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "snapshot.get
".
-
-
Method Details
-
of
public static GetSnapshotRequest of(Function<GetSnapshotRequest.Builder, ObjectBuilder<GetSnapshotRequest>> fn) -
after
An offset identifier to start pagination from as returned by the next field in the response body.API name:
after
-
fromSortValue
The value of the current sort column at which to start retrieval. It can be a stringsnapshot-
or a repository name when sorting by snapshot or repository name. It can be a millisecond time value or a number when sorting byindex-
or shard count.API name:
from_sort_value
-
includeRepository
Iftrue
, the response includes the repository name in each snapshot.API name:
include_repository
-
indexDetails
Iftrue
, the response includes additional information about each index in the snapshot comprising the number of shards in the index, the total size of the index in bytes, and the maximum number of segments per shard in the index. The default isfalse
, meaning that this information is omitted.API name:
index_details
-
indexNames
Iftrue
, the response includes the name of each index in each snapshot.API name:
index_names
-
masterTimeout
The period to wait for a connection to the master node. If no response is received before the timeout expires, the request fails and returns an error.API name:
master_timeout
-
offset
Numeric offset to start pagination from based on the snapshots matching this request. Using a non-zero value for this parameter is mutually exclusive with using the after parameter. Defaults to 0.API name:
offset
-
order
The sort order. Valid values areasc
for ascending anddesc
for descending order. The default behavior is ascending order.API name:
order
-
repository
Required - A comma-separated list of snapshot repository names used to limit the request. Wildcard (*
) expressions are supported.API name:
repository
-
size
The maximum number of snapshots to return. The default is 0, which means to return all that match the request without limit.API name:
size
-
slmPolicyFilter
Filter snapshots by a comma-separated list of snapshot lifecycle management (SLM) policy names that snapshots belong to.You can use wildcards (
*
) and combinations of wildcards followed by exclude patterns starting with-
. For example, the pattern*,-policy-a-\*
will return all snapshots except for those that were created by an SLM policy with a name starting withpolicy-a-
. Note that the wildcard pattern*
matches all snapshots created by an SLM policy but not those snapshots that were not created by an SLM policy. To include snapshots that were not created by an SLM policy, you can use the special pattern_none
that will match all snapshots without an SLM policy.API name:
slm_policy_filter
-
snapshot
Required - A comma-separated list of snapshot names to retrieve Wildcards (*
) are supported.- To get information about all snapshots in a registered repository, use a
wildcard (
*
) or_all
. - To get information about any snapshots that are currently running, use
_current
.
API name:
snapshot
- To get information about all snapshots in a registered repository, use a
wildcard (
-
sort
The sort order for the result. The default behavior is sorting by snapshot start time stamp.API name:
sort
-
verbose
Iftrue
, returns additional information about each snapshot such as the version of Elasticsearch which took the snapshot, the start and end times of the snapshot, and the number of shards snapshotted.NOTE: The parameters
size
,order
,after
,from_sort_value
,offset
,slm_policy_filter
, andsort
are not supported when you setverbose=false
and the sort order for requests withverbose=false
is undefined.API name:
verbose
-