Class SnapshotStatusRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.snapshot.SnapshotStatusRequest
Get the snapshot status. Get a detailed description of the current state for
each shard participating in the snapshot. Note that this API should be used
only to obtain detailed shard-level information for ongoing snapshots. If
this detail is not needed or you want to obtain information about one or more
existing snapshots, use the get snapshot API.
WARNING: Using the API to return the status of any snapshots other than currently running snapshots can be expensive. The API requires a read from the repository for each shard in each snapshot. For example, if you have 100 snapshots with 1,000 shards each, an API request that includes all snapshots will require 100,000 reads (100 snapshots x 1,000 shards).
Depending on the latency of your storage, such requests can take an extremely long time to return results. These requests can also tax machine resources and, when using cloud storage, incur high processing costs.
- 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<SnapshotStatusRequest,
SnapshotStatusResponse, ErrorResponse> Endpoint "snapshot.status
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Whether to ignore unavailable snapshots, defaults to false which means a SnapshotMissingException is thrownfinal Time
Explicit operation timeout for connection to master nodestatic SnapshotStatusRequest
final String
A repository namesnapshot()
A comma-separated list of snapshot namesMethods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_ENDPOINT
Endpoint "snapshot.status
".
-
-
Method Details
-
of
public static SnapshotStatusRequest of(Function<SnapshotStatusRequest.Builder, ObjectBuilder<SnapshotStatusRequest>> fn) -
masterTimeout
Explicit operation timeout for connection to master nodeAPI name:
master_timeout
-
repository
A repository nameAPI name:
repository
-
snapshot
A comma-separated list of snapshot namesAPI name:
snapshot
-