Class ElasticsearchLicenseAsyncClient
- All Implemented Interfaces:
Closeable
,AutoCloseable
-
Field Summary
Fields inherited from class co.elastic.clients.ApiClient
transport, transportOptions
-
Constructor Summary
ConstructorsConstructorDescriptionElasticsearchLicenseAsyncClient
(ElasticsearchTransport transport, TransportOptions transportOptions) -
Method Summary
Modifier and TypeMethodDescriptiondelete()
Delete the license.delete
(DeleteLicenseRequest request) Delete the license.Delete the license.get()
Get license information.get
(GetLicenseRequest request) Get license information.Get license information.Get the basic license status.Get the trial status.post()
Update the license.post
(PostRequest request) Update the license.final CompletableFuture<PostResponse>
Update the license.Start a basic license.postStartBasic
(PostStartBasicRequest request) Start a basic license.Start a basic license.Start a trial.postStartTrial
(PostStartTrialRequest request) Start a trial.Start a trial.withTransportOptions
(TransportOptions transportOptions) Creates a new client with some request optionsMethods inherited from class co.elastic.clients.ApiClient
_jsonpMapper, _transport, _transportOptions, close, getDeserializer, withTransportOptions
-
Constructor Details
-
ElasticsearchLicenseAsyncClient
-
ElasticsearchLicenseAsyncClient
public ElasticsearchLicenseAsyncClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions)
-
-
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 classApiClient<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
public final CompletableFuture<DeleteLicenseResponse> delete(Function<DeleteLicenseRequest.Builder, ObjectBuilder<DeleteLicenseRequest>> fn) 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 theDeleteLicenseRequest
- 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
public final CompletableFuture<GetLicenseResponse> get(Function<GetLicenseRequest.Builder, ObjectBuilder<GetLicenseRequest>> fn) 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 theGetLicenseRequest
- 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
Get the basic license status.- See Also:
-
getTrialStatus
Get the trial status.- 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:
-
post
public final CompletableFuture<PostResponse> post(Function<PostRequest.Builder, ObjectBuilder<PostRequest>> fn) 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 thePostRequest
- 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 totrue
.To check the status of your basic license, use the get basic license API.
- See Also:
-
postStartBasic
public final CompletableFuture<PostStartBasicResponse> postStartBasic(Function<PostStartBasicRequest.Builder, ObjectBuilder<PostStartBasicRequest>> fn) 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 totrue
.To check the status of your basic license, use the get basic license API.
- Parameters:
fn
- a function that initializes a builder to create thePostStartBasicRequest
- 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 totrue
.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
public final CompletableFuture<PostStartTrialResponse> postStartTrial(Function<PostStartTrialRequest.Builder, ObjectBuilder<PostStartTrialRequest>> fn) 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 thePostStartTrialRequest
- 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:
-