Class SnapshotStatusRequest
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.
If you omit the <snapshot>
request path parameter, the
request retrieves information only for currently running snapshots. This
usage is preferred. If needed, you can specify
<repository>
and <snapshot>
to retrieve
information for specific snapshots, even if they're not currently running.
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
Iffalse
, the request returns an error for any snapshots that are unavailable.final Time
The period to wait for the master node.static SnapshotStatusRequest
final String
The snapshot repository name used to limit the request.snapshot()
A comma-separated list of snapshots to retrieve status for.Methods 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
The period to wait for the master node. If the master node is not available before the timeout expires, the request fails and returns an error. To indicate that the request should never timeout, set it to-1
.API name:
master_timeout
-
repository
The snapshot repository name used to limit the request. It supports wildcards (*
) if<snapshot>
isn't specified.API name:
repository
-
snapshot
A comma-separated list of snapshots to retrieve status for. The default is currently running snapshots. Wildcards (*
) are not supported.API name:
snapshot
-