Class CreateRepositoryRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.snapshot.CreateRepositoryRequest
- All Implemented Interfaces:
- JsonpSerializable
@JsonpDeserializable
public class CreateRepositoryRequest
extends RequestBase
implements JsonpSerializable
Create or update a snapshot repository. IMPORTANT: If you are migrating
 searchable snapshots, the repository name must be identical in the source and
 destination clusters. To register a snapshot repository, the cluster's global
 metadata must be writeable. Ensure there are no cluster blocks (for example,
 
cluster.blocks.read_only and
 clsuter.blocks.read_only_allow_delete settings) that prevent
 write access.
 Several options for this API can be specified using a query parameter or a request body parameter. If both parameters are specified, only the query parameter is used.
- See Also:
- 
Nested Class SummaryNested ClassesNested classes/interfaces inherited from class co.elastic.clients.elasticsearch._types.RequestBaseRequestBase.AbstractBuilder<BuilderT extends RequestBase.AbstractBuilder<BuilderT>>
- 
Field SummaryFieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<CreateRepositoryRequest>static final Endpoint<CreateRepositoryRequest,CreateRepositoryResponse, ErrorResponse> Endpoint "snapshot.create_repository".
- 
Method SummaryModifier and TypeMethodDescriptionprotected static JsonpDeserializer<CreateRepositoryRequest>final TimeThe period to wait for the master node.final Stringname()Required - The name of the snapshot repository to register or update.static CreateRepositoryRequestfinal RepositoryRequired - Request body.voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this value to JSON.final Timetimeout()The period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata.final Booleanverify()Iftrue, the request verifies the repository is functional on all master and data nodes in the cluster.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBasetoString
- 
Field Details- 
_DESERIALIZER
- 
_ENDPOINTpublic static final Endpoint<CreateRepositoryRequest,CreateRepositoryResponse, _ENDPOINTErrorResponse> Endpoint "snapshot.create_repository".
 
- 
- 
Method Details- 
ofpublic static CreateRepositoryRequest of(Function<CreateRepositoryRequest.Builder, ObjectBuilder<CreateRepositoryRequest>> fn) 
- 
masterTimeoutThe 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
- 
nameRequired - The name of the snapshot repository to register or update.API name: repository
- 
timeoutThe period to wait for a response from all relevant nodes in the cluster after updating the cluster metadata. If no response is received before the timeout expires, the cluster metadata update still applies but the response will indicate that it was not completely acknowledged. To indicate that the request should never timeout, set it to-1.API name: timeout
- 
verifyIftrue, the request verifies the repository is functional on all master and data nodes in the cluster. Iffalse, this verification is skipped. You can also perform this verification with the verify snapshot repository API.API name: verify
- 
repositoryRequired - Request body.
- 
serializeSerialize this value to JSON.- Specified by:
- serializein interface- JsonpSerializable
 
- 
createCreateRepositoryRequestDeserializerprotected static JsonpDeserializer<CreateRepositoryRequest> createCreateRepositoryRequestDeserializer()
 
-