Get the trial status Generally available; Added in 6.1.0

GET /_license/trial_status

Required authorization

  • Cluster privileges: monitor

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • eligible_to_start_trial boolean Required
GET /_license/trial_status
resp = client.license.get_trial_status()
const response = await client.license.getTrialStatus();
response = client.license.get_trial_status
$resp = $client->license()->getTrialStatus();
curl -X GET -H "Authorization: ApiKey $ELASTIC_API_KEY" "$ELASTICSEARCH_URL/_license/trial_status"
client.license().getTrialStatus();
Response examples (200)
A successful response from `GET /_license/trial_status`.
{
  "eligible_to_start_trial": true
}