Class ElasticsearchLicenseClient
- All Implemented Interfaces:
- Closeable,- AutoCloseable
- 
Field SummaryFields inherited from class co.elastic.clients.ApiClienttransport, transportOptions
- 
Constructor SummaryConstructorsConstructorDescriptionElasticsearchLicenseClient(ElasticsearchTransport transport) ElasticsearchLicenseClient(ElasticsearchTransport transport, TransportOptions transportOptions) 
- 
Method SummaryModifier and TypeMethodDescriptiondelete()Delete the license.delete(DeleteLicenseRequest request) Delete the license.final DeleteLicenseResponseDelete the license.get()Get license information.get(GetLicenseRequest request) Get license information.final GetLicenseResponseGet license information.Get the basic license status.Get the trial status.post()Update the license.post(PostRequest request) Update the license.final PostResponseUpdate the license.Start a basic license.postStartBasic(PostStartBasicRequest request) Start a basic license.final PostStartBasicResponseStart a basic license.Start a trial.postStartTrial(PostStartTrialRequest request) Start a trial.final PostStartTrialResponseStart 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- 
ElasticsearchLicenseClient
- 
ElasticsearchLicenseClientpublic ElasticsearchLicenseClient(ElasticsearchTransport transport, @Nullable TransportOptions transportOptions) 
 
- 
- 
Method Details- 
withTransportOptionsDescription copied from class:ApiClientCreates a new client with some request options- Specified by:
- withTransportOptionsin class- ApiClient<ElasticsearchTransport,- ElasticsearchLicenseClient> 
 
- 
deletepublic DeleteLicenseResponse delete(DeleteLicenseRequest request) throws IOException, ElasticsearchException 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. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
deletepublic final DeleteLicenseResponse delete(Function<DeleteLicenseRequest.Builder, ObjectBuilder<DeleteLicenseRequest>> fn) throws IOException, ElasticsearchExceptionDelete 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
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
deleteDelete 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. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
getGet 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 Foundresponse. If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
getpublic final GetLicenseResponse get(Function<GetLicenseRequest.Builder, ObjectBuilder<GetLicenseRequest>> fn) throws IOException, ElasticsearchExceptionGet 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 Foundresponse. 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
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
getGet 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 Foundresponse. If you receive an unexpected 404 response after cluster startup, wait a short period and retry the request.- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
getBasicStatusGet the basic license status.- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
getTrialStatusGet the trial status.- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postUpdate 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. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postpublic final PostResponse post(Function<PostRequest.Builder, ObjectBuilder<PostRequest>> fn) throws IOException, ElasticsearchExceptionUpdate 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
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postUpdate 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. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postStartBasicpublic PostStartBasicResponse postStartBasic(PostStartBasicRequest request) throws IOException, ElasticsearchException 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 acknowledgeparameter set totrue.To check the status of your basic license, use the get basic license API. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postStartBasicpublic final PostStartBasicResponse postStartBasic(Function<PostStartBasicRequest.Builder, ObjectBuilder<PostStartBasicRequest>> fn) throws IOException, ElasticsearchExceptionStart 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 acknowledgeparameter 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 the- PostStartBasicRequest
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postStartBasicStart 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 acknowledgeparameter set totrue.To check the status of your basic license, use the get basic license API. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postStartTrialpublic PostStartTrialResponse postStartTrial(PostStartTrialRequest request) throws IOException, ElasticsearchException 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. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postStartTrialpublic final PostStartTrialResponse postStartTrial(Function<PostStartTrialRequest.Builder, ObjectBuilder<PostStartTrialRequest>> fn) throws IOException, ElasticsearchExceptionStart 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
- Throws:
- IOException
- ElasticsearchException
- See Also:
 
- 
postStartTrialStart 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. - Throws:
- IOException
- ElasticsearchException
- See Also:
 
 
-