Class ElasticsearchLicenseAsyncClient

java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchLicenseAsyncClient>
co.elastic.clients.elasticsearch.license.ElasticsearchLicenseAsyncClient
All Implemented Interfaces:
Closeable, AutoCloseable

public class ElasticsearchLicenseAsyncClient extends ApiClient<ElasticsearchTransport,ElasticsearchLicenseAsyncClient>
Client for the license namespace.
  • Constructor Details

  • Method Details

    • withTransportOptions

      public ElasticsearchLicenseAsyncClient withTransportOptions(@Nullable TransportOptions transportOptions)
      Description copied from class: ApiClient
      Creates a new client with some request options
      Specified by:
      withTransportOptions in class ApiClient<ElasticsearchTransport,ElasticsearchLicenseAsyncClient>
    • delete

      Delete the license.

      When the license expires, your subscription level reverts to Basic.

      If the operator privileges feature is enabled, only operator users can use this API.

      See Also:
    • delete

      Delete the license.

      When the license expires, your subscription level reverts to Basic.

      If the operator privileges feature is enabled, only operator users can use this API.

      Parameters:
      fn - a function that initializes a builder to create the DeleteLicenseRequest
      See Also:
    • delete

      Delete the license.

      When the license expires, your subscription level reverts to Basic.

      If the operator privileges feature is enabled, only operator users can use this API.

      See Also:
    • get

      Get license information.

      Get information about your Elastic license including its type, its status, when it was issued, and when it expires.

      info If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.

      See Also:
    • get

      Get license information.

      Get information about your Elastic license including its type, its status, when it was issued, and when it expires.

      info If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.

      Parameters:
      fn - a function that initializes a builder to create the GetLicenseRequest
      See Also:
    • get

      Get license information.

      Get information about your Elastic license including its type, its status, when it was issued, and when it expires.

      info If the master node is generating a new cluster state, the get license API may return a 404 Not Found response. If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.

      See Also:
    • getBasicStatus

      public CompletableFuture<GetBasicStatusResponse> getBasicStatus()
      Get the basic license status.
      See Also:
    • getTrialStatus

      public CompletableFuture<GetTrialStatusResponse> getTrialStatus()
      Get the trial status.
      See Also:
    • post

      public CompletableFuture<PostResponse> post(PostRequest request)
      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:
    • post

      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.

      Parameters:
      fn - a function that initializes a builder to create the PostRequest
      See Also:
    • post

      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:
    • postStartBasic

      Start a basic license.

      Start an indefinite basic license, which gives access to all the basic features.

      NOTE: In order to start a basic license, you must not currently have a basic license.

      If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true.

      To check the status of your basic license, use the get basic license API.

      See Also:
    • postStartBasic

      Start a basic license.

      Start an indefinite basic license, which gives access to all the basic features.

      NOTE: In order to start a basic license, you must not currently have a basic license.

      If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true.

      To check the status of your basic license, use the get basic license API.

      Parameters:
      fn - a function that initializes a builder to create the PostStartBasicRequest
      See Also:
    • postStartBasic

      public CompletableFuture<PostStartBasicResponse> postStartBasic()
      Start a basic license.

      Start an indefinite basic license, which gives access to all the basic features.

      NOTE: In order to start a basic license, you must not currently have a basic license.

      If the basic license does not support all of the features that are available with your current license, however, you are notified in the response. You must then re-submit the API request with the acknowledge parameter set to true.

      To check the status of your basic license, use the get basic license API.

      See Also:
    • postStartTrial

      Start a trial. Start a 30-day trial, which gives access to all subscription features.

      NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension.

      To check the status of your trial, use the get trial status API.

      See Also:
    • postStartTrial

      Start a trial. Start a 30-day trial, which gives access to all subscription features.

      NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension.

      To check the status of your trial, use the get trial status API.

      Parameters:
      fn - a function that initializes a builder to create the PostStartTrialRequest
      See Also:
    • postStartTrial

      public CompletableFuture<PostStartTrialResponse> postStartTrial()
      Start a trial. Start a 30-day trial, which gives access to all subscription features.

      NOTE: You are allowed to start a trial only if your cluster has not already activated a trial for the current major product version. For example, if you have already activated a trial for v8.0, you cannot start a new trial until v9.0. You can, however, request an extended trial at https://www.elastic.co/trialextension.

      To check the status of your trial, use the get trial status API.

      See Also: