Class ElasticsearchLicenseClient
java.lang.Object
co.elastic.clients.ApiClient<ElasticsearchTransport,ElasticsearchLicenseClient>
co.elastic.clients.elasticsearch.license.ElasticsearchLicenseClient
public class ElasticsearchLicenseClient
extends ApiClient<ElasticsearchTransport,ElasticsearchLicenseClient>
Client for the license namespace.
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions -
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchLicenseClient(ElasticsearchTransport transport) ElasticsearchLicenseClient(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete()Deletes licensing information for the clusterget()This API returns information about the type of license, when it was issued, and when it expires, for example.get(GetLicenseRequest request) This API returns information about the type of license, when it was issued, and when it expires, for example.final GetLicenseResponseThis API returns information about the type of license, when it was issued, and when it expires, for example.Retrieves information about the status of the basic license.Retrieves information about the status of the trial license.post()Updates the license for the cluster.post(PostRequest request) Updates the license for the cluster.final PostResponseUpdates the license for the cluster.The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features.postStartBasic(PostStartBasicRequest request) The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features.final PostStartBasicResponseThe start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features.The start trial API enables you to start a 30-day trial, which gives access to all subscription features.postStartTrial(PostStartTrialRequest request) The start trial API enables you to start a 30-day trial, which gives access to all subscription features.final PostStartTrialResponseThe start trial API enables you to start a 30-day trial, which gives access to all subscription features.withTransportOptions(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchLicenseClient
-
ElasticsearchLicenseClient
public ElasticsearchLicenseClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
Method Details
-
withTransportOptions
Description copied from class:ApiClientCreates a new client with some request options- Specified by:
withTransportOptionsin classApiClient<ElasticsearchTransport,ElasticsearchLicenseClient>
-
delete
Deletes licensing information for the cluster- Throws:
IOExceptionElasticsearchException- See Also:
-
get
This API returns information about the type of license, when it was issued, and when it expires, for example. For more information about the different types of licenses, see https://www.elastic.co/subscriptions.- Throws:
IOExceptionElasticsearchException- See Also:
-
get
public final GetLicenseResponse get(Function<GetLicenseRequest.Builder, ObjectBuilder<GetLicenseRequest>> fn) throws IOException, ElasticsearchExceptionThis API returns information about the type of license, when it was issued, and when it expires, for example. For more information about the different types of licenses, see https://www.elastic.co/subscriptions.- Parameters:
fn- a function that initializes a builder to create theGetLicenseRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
get
This API returns information about the type of license, when it was issued, and when it expires, for example. For more information about the different types of licenses, see https://www.elastic.co/subscriptions.- Throws:
IOExceptionElasticsearchException- See Also:
-
getBasicStatus
Retrieves information about the status of the basic license.- Throws:
IOExceptionElasticsearchException- See Also:
-
getTrialStatus
Retrieves information about the status of the trial license.- Throws:
IOExceptionElasticsearchException- See Also:
-
post
Updates the license for the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
post
public final PostResponse post(Function<PostRequest.Builder, ObjectBuilder<PostRequest>> fn) throws IOException, ElasticsearchExceptionUpdates the license for the cluster.- Parameters:
fn- a function that initializes a builder to create thePostRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
post
Updates the license for the cluster.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartBasic
public PostStartBasicResponse postStartBasic(PostStartBasicRequest request) throws IOException, ElasticsearchException The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. 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 following API: Get basic status.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartBasic
public final PostStartBasicResponse postStartBasic(Function<PostStartBasicRequest.Builder, ObjectBuilder<PostStartBasicRequest>> fn) throws IOException, ElasticsearchExceptionThe start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. 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 following API: Get basic status.- Parameters:
fn- a function that initializes a builder to create thePostStartBasicRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartBasic
The start basic API enables you to initiate an indefinite basic license, which gives access to all the basic features. 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 following API: Get basic status.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartTrial
public PostStartTrialResponse postStartTrial(PostStartTrialRequest request) throws IOException, ElasticsearchException The start trial API enables you to start a 30-day trial, which gives access to all subscription features.- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartTrial
public final PostStartTrialResponse postStartTrial(Function<PostStartTrialRequest.Builder, ObjectBuilder<PostStartTrialRequest>> fn) throws IOException, ElasticsearchExceptionThe start trial API enables you to start a 30-day trial, which gives access to all subscription features.- Parameters:
fn- a function that initializes a builder to create thePostStartTrialRequest- Throws:
IOExceptionElasticsearchException- See Also:
-
postStartTrial
The start trial API enables you to start a 30-day trial, which gives access to all subscription features.- Throws:
IOExceptionElasticsearchException- See Also:
-