Class GetLicenseRequest

java.lang.Object
co.elastic.clients.elasticsearch._types.RequestBase
co.elastic.clients.elasticsearch.license.GetLicenseRequest

public class GetLicenseRequest extends RequestBase
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:
  • Field Details

  • Method Details

    • of

    • acceptEnterprise

      @Deprecated @Nullable public final Boolean acceptEnterprise()
      Deprecated.
      7.6.0
      If true, this parameter returns enterprise for Enterprise license types. If false, this parameter returns platinum for both platinum and enterprise license types. This behavior is maintained for backwards compatibility. This parameter is deprecated and will always be set to true in 8.x.

      API name: accept_enterprise

    • local

      @Nullable public final Boolean local()
      Specifies whether to retrieve local information. The default value is false, which means the information is retrieved from the master node.

      API name: local