New

The executive guide to generative AI

Read more
IMPORTANT: This documentation is no longer updated. Refer to Elastic's version policy and the latest documentation.

Get Trial Status

edit

Execution

edit

The trial status of the license can be retrieved as follows:

GetTrialStatusResponse response = client.license().getTrialStatus(RequestOptions.DEFAULT);

Response

edit

The returned GetTrialStatusResponse holds only a boolean flag:

boolean eligibleToStartTrial = response.isEligibleToStartTrial(); 

Whether the license is eligible to start trial or not

On this page

Was this helpful?
Feedback