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 forMountRequeststatic 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 Stringindex()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 TimeThe period to wait for the master node.static MountRequestfinal StringThe name of the index that will be created.final StringRequired - The name of the repository containing the snapshot of the index to mount.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal Stringsnapshot()Required - The name of the snapshot of the index to mount.final Stringstorage()The mount option for the searchable snapshot index.final BooleanIf 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_indexis 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:
serializein interfaceJsonpSerializable
-
serializeInternal
-
setupMountRequestDeserializer
-