2018-03-06 12:47:04 -05:00
|
|
|
[role="xpack"]
|
2018-06-20 11:17:11 -04:00
|
|
|
[testenv="basic"]
|
2018-03-06 12:47:04 -05:00
|
|
|
[[get-trial-status]]
|
2018-12-20 13:23:28 -05:00
|
|
|
=== Get trial status API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get trial status</titleabbrev>
|
|
|
|
++++
|
2018-03-06 12:47:04 -05:00
|
|
|
|
2020-07-09 15:24:45 -04:00
|
|
|
Enables you to check the status of your trial.
|
2018-03-06 12:47:04 -05:00
|
|
|
|
2020-07-23 12:42:33 -04:00
|
|
|
[discrete]
|
2018-03-06 12:47:04 -05:00
|
|
|
==== Request
|
|
|
|
|
2018-11-28 08:24:35 -05:00
|
|
|
`GET /_license/trial_status`
|
2018-03-06 12:47:04 -05:00
|
|
|
|
2020-07-23 12:42:33 -04:00
|
|
|
[discrete]
|
2018-03-06 12:47:04 -05:00
|
|
|
==== Description
|
|
|
|
|
2020-07-09 15:24:45 -04:00
|
|
|
If you want to try all the subscription features, you can start a 30-day trial.
|
2018-03-06 12:47:04 -05:00
|
|
|
|
2020-07-09 15:24:45 -04:00
|
|
|
NOTE: You are allowed to initiate 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 v6.0, you cannot start a new trial until
|
|
|
|
v7.0. You can, however, request an extended trial at {extendtrial}.
|
2018-03-06 12:47:04 -05:00
|
|
|
|
2020-07-09 15:24:45 -04:00
|
|
|
For more information about features and subscriptions, see
|
2018-03-06 12:47:04 -05:00
|
|
|
https://www.elastic.co/subscriptions.
|
|
|
|
|
|
|
|
==== Authorization
|
|
|
|
|
|
|
|
You must have `monitor` cluster privileges to use this API.
|
|
|
|
For more information, see
|
2019-10-07 18:23:19 -04:00
|
|
|
<<security-privileges>>.
|
2018-03-06 12:47:04 -05:00
|
|
|
|
2020-07-23 12:42:33 -04:00
|
|
|
[discrete]
|
2018-03-06 12:47:04 -05:00
|
|
|
==== Examples
|
|
|
|
|
|
|
|
The following example checks whether you are eligible to start a trial:
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-03-06 12:47:04 -05:00
|
|
|
------------------------------------------------------------
|
2018-11-28 08:24:35 -05:00
|
|
|
GET /_license/trial_status
|
2018-03-06 12:47:04 -05:00
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
Example response:
|
2019-09-06 16:09:09 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2018-03-06 12:47:04 -05:00
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"eligible_to_start_trial": true
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
|
|
|
// TESTRESPONSE[s/"eligible_to_start_trial": true/"eligible_to_start_trial": $body.eligible_to_start_trial/]
|