Class PostRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.license.PostRequest
All Implemented Interfaces:
JsonpSerializable

@JsonpDeserializable public class PostRequest extends RequestBase implements 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:
  • Field Details

  • Method Details

    • of

    • acknowledge

      @Nullable public final Boolean acknowledge()
      Specifies whether you acknowledge the license changes.

      API name: acknowledge

    • license

      @Nullable public final License license()
      API name: license
    • licenses

      public final List<License> licenses()
      A sequence of one or more JSON documents containing the license information.

      API name: licenses

    • masterTimeout

      @Nullable public final Time masterTimeout()
      The period to wait for a connection to the master node.

      API name: master_timeout

    • timeout

      @Nullable public final Time 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

      public void serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
      Serialize this object to JSON.
      Specified by:
      serialize in interface JsonpSerializable
    • serializeInternal

      protected void serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
    • setupPostRequestDeserializer

      protected static void setupPostRequestDeserializer(ObjectDeserializer<PostRequest.Builder> op)