Class CreateSnapshotRequest
- All Implemented Interfaces:
JsonpSerializable
- 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 JsonpDeserializer<CreateSnapshotRequest>
Json deserializer forCreateSnapshotRequest
static final Endpoint<CreateSnapshotRequest,
CreateSnapshotResponse, ErrorResponse> Endpoint "snapshot.create
". -
Method Summary
Modifier and TypeMethodDescriptionfinal List<ExpandWildcard>
Determines how wildcard patterns in theindices
parameter match data streams and indices.The feature states to include in the snapshot.final Boolean
Iftrue
, the request ignores data streams and indices inindices
that are missing or closed.final Boolean
Iftrue
, the current cluster state is included in the snapshot.indices()
A comma-separated list of data streams and indices to include in the snapshot.final Time
The period to wait for a connection to the master node.metadata()
Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data.static CreateSnapshotRequest
final Boolean
partial()
Iftrue
, it enables you to restore a partial snapshot of indices with unavailable shards.final String
Required - The name of the repository for the snapshot.void
serialize
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected void
serializeInternal
(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static void
final String
snapshot()
Required - The name of the snapshot.final Boolean
Iftrue
, the request returns a response when the snapshot is complete.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forCreateSnapshotRequest
-
_ENDPOINT
Endpoint "snapshot.create
".
-
-
Method Details
-
of
public static CreateSnapshotRequest of(Function<CreateSnapshotRequest.Builder, ObjectBuilder<CreateSnapshotRequest>> fn) -
expandWildcards
Determines how wildcard patterns in theindices
parameter match data streams and indices. It supports comma-separated values such asopen,hidden
.API name:
expand_wildcards
-
featureStates
The feature states to include in the snapshot. Each feature state includes one or more system indices containing related data. You can view a list of eligible features using the get features API.If
include_global_state
istrue
, all current feature states are included by default. Ifinclude_global_state
isfalse
, no feature states are included by default.Note that specifying an empty array will result in the default behavior. To exclude all feature states, regardless of the
include_global_state
value, specify an array with only the valuenone
(["none"]
).API name:
feature_states
-
includeGlobalState
Iftrue
, the current cluster state is included in the snapshot. The cluster state includes persistent cluster settings, composable index templates, legacy index templates, ingest pipelines, and ILM policies. It also includes data stored in system indices, such as Watches and task records (configurable viafeature_states
).API name:
include_global_state
-
indices
A comma-separated list of data streams and indices to include in the snapshot. It supports a multi-target syntax. The default is an empty array ([]
), which includes all regular data streams and regular indices. To exclude all data streams and indices, use-*
.You can't use this parameter to include or exclude system indices or system data streams from a snapshot. Use
feature_states
instead.API name:
indices
-
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
-
metadata
Arbitrary metadata to the snapshot, such as a record of who took the snapshot, why it was taken, or any other useful data. It can have any contents but it must be less than 1024 bytes. This information is not automatically generated by Elasticsearch.API name:
metadata
-
partial
Iftrue
, it enables you to restore a partial snapshot of indices with unavailable shards. Only shards that were successfully included in the snapshot will be restored. All missing shards will be recreated as empty.If
false
, the entire restore operation will fail if one or more indices included in the snapshot do not have all primary shards available.API name:
partial
-
repository
Required - The name of the repository for the snapshot.API name:
repository
-
snapshot
Required - The name of the snapshot. It supportes date math. It must be unique in the repository.API name:
snapshot
-
waitForCompletion
Iftrue
, the request returns a response when the snapshot is complete. Iffalse
, the request returns a response when the snapshot initializes.API name:
wait_for_completion
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupCreateSnapshotRequestDeserializer
protected static void setupCreateSnapshotRequestDeserializer(ObjectDeserializer<CreateSnapshotRequest.Builder> op)
-