Class PostRequest
java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.license.PostRequest
- All Implemented Interfaces:
JsonpSerializable
Update the license.
You can update your license at runtime without shutting down your nodes. License updates take effect immediately. If the license you are installing does not support all of the features that were available with your previous license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true.
NOTE: If Elasticsearch security features are enabled and you are installing a gold or higher license, you must enable TLS on the transport networking layer before you install the license. If the operator privileges feature is enabled, only operator users can use this API.
- 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<PostRequest>
Json deserializer forPostRequest
static final Endpoint<PostRequest,
PostResponse, ErrorResponse> Endpoint "license.post
". -
Method Summary
Modifier and TypeMethodDescriptionfinal Boolean
Specifies whether you acknowledge the license changes.final License
license()
API name:license
licenses()
A sequence of one or more JSON documents containing the license information.final Time
The period to wait for a connection to the master node.static PostRequest
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 Time
timeout()
The period to wait for a response.Methods inherited from class co.elastic.clients.elasticsearch._types.RequestBase
toString
-
Field Details
-
_DESERIALIZER
Json deserializer forPostRequest
-
_ENDPOINT
Endpoint "license.post
".
-
-
Method Details
-
of
-
acknowledge
Specifies whether you acknowledge the license changes.API name:
acknowledge
-
license
API name:license
-
licenses
A sequence of one or more JSON documents containing the license information.API name:
licenses
-
masterTimeout
The period to wait for a connection to the master node.API name:
master_timeout
-
timeout
The period to wait for a response. If no response is received before the timeout expires, the request fails and returns an error.API name:
timeout
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
setupPostRequestDeserializer
-