Class GetSnapshotRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.snapshot.GetSnapshotRequest
Get snapshot information.
- 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 Stringafter()Offset identifier to start pagination from as returned by the next field in the response body.final StringValue of the current sort column at which to start retrieval.final BooleanIf false, the request returns an error for any snapshots that are unavailable.final BooleanIf true, returns the repository name in each snapshot.final BooleanIf true, returns 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 BooleanIf true, returns the name of each index in each snapshot.final TimePeriod to wait for a connection to the master node.static GetSnapshotRequestfinal Integeroffset()Numeric offset to start pagination from based on the snapshots matching this request.final SortOrderorder()Sort order.final StringRequired - Comma-separated list of snapshot repository names used to limit the request.final Integersize()Maximum number of snapshots to return.final StringFilter snapshots by a comma-separated list of SLM policy names that snapshots belong to.snapshot()Required - Comma-separated list of snapshot names to retrieve.final SnapshotSortsort()Allows setting a sort order for the result.final Booleanverbose()If true, 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
Offset identifier to start pagination from as returned by the next field in the response body.API name:
after -
fromSortValue
Value of the current sort column at which to start retrieval. Can either be a string snapshot- or repository name when sorting by snapshot or repository name, a millisecond time value or a number when sorting by index- or shard count.API name:
from_sort_value -
includeRepository
If true, returns the repository name in each snapshot.API name:
include_repository -
indexDetails
If true, returns 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. Defaults to false, meaning that this information is omitted.API name:
index_details -
indexNames
If true, returns the name of each index in each snapshot.API name:
index_names -
masterTimeout
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
Sort order. Valid values are asc for ascending and desc for descending order. Defaults to asc, meaning ascending order.API name:
order -
repository
Required - Comma-separated list of snapshot repository names used to limit the request. Wildcard (*) expressions are supported.API name:
repository -
size
Maximum number of snapshots to return. Defaults to 0 which means return all that match the request without limit.API name:
size -
slmPolicyFilter
Filter snapshots by a comma-separated list of SLM policy names that snapshots belong to. Also accepts wildcards (*) and combinations of wildcards followed by exclude patterns starting with -. To include snapshots 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 - Comma-separated list of snapshot names to retrieve. Also accepts wildcards (*).- 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 -
sort
Allows setting a sort order for the result. Defaults to start_time, i.e. sorting by snapshot start time stamp.API name:
sort -
verbose
If true, 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.API name:
verbose
-