Class MountRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.searchable_snapshots.MountRequest
- All Implemented Interfaces:
JsonpSerializable
Mount a snapshot. Mount a snapshot as a searchable snapshot index. Do not use
this API for snapshots managed by index lifecycle management (ILM). Manually
mounting ILM-managed snapshots can interfere with ILM processes.
- 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<MountRequest>
Json deserializer forMountRequest
static final Endpoint<MountRequest,
MountResponse, ErrorResponse> Endpoint "searchable_snapshots.mount
". -
Method Summary
Modifier and TypeMethodDescriptionThe names of settings that should be removed from the index when it is mounted.final String
index()
Required - The name of the index contained in the snapshot whose data is to be mounted.The settings that should be added to the index when it is mounted.final Time
The period to wait for the master node.static MountRequest
final String
The name of the index that will be created.final String
Required - The name of the repository containing the snapshot of the index to mount.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 of the index to mount.final String
storage()
The mount option for the searchable snapshot index.final Boolean
If true, the request blocks until the operation is complete.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forMountRequest
-
_ENDPOINT
Endpoint "searchable_snapshots.mount
".
-
-
Method Details
-
of
-
ignoreIndexSettings
The names of settings that should be removed from the index when it is mounted.API name:
ignore_index_settings
-
index
Required - The name of the index contained in the snapshot whose data is to be mounted. If norenamed_index
is specified, this name will also be used to create the new index.API name:
index
-
indexSettings
The settings that should be added to the index when it is mounted.API name:
index_settings
-
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
-
renamedIndex
The name of the index that will be created.API name:
renamed_index
-
repository
Required - The name of the repository containing the snapshot of the index to mount.API name:
repository
-
snapshot
Required - The name of the snapshot of the index to mount.API name:
snapshot
-
storage
The mount option for the searchable snapshot index.API name:
storage
-
waitForCompletion
If true, the request blocks until the operation is complete.API name:
wait_for_completion
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupMountRequestDeserializer
-