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
|
|
|
[[start-trial]]
|
2018-12-20 13:23:28 -05:00
|
|
|
=== Start trial API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Start trial</titleabbrev>
|
|
|
|
++++
|
2018-03-06 12:47:04 -05:00
|
|
|
|
|
|
|
This API starts a 30-day trial license.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Request
|
|
|
|
|
2018-11-28 08:24:35 -05:00
|
|
|
`POST /_license/start_trial`
|
2018-03-06 12:47:04 -05:00
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Description
|
|
|
|
|
|
|
|
The `start trial` API enables you to upgrade from a basic license to a 30-day
|
2018-06-28 18:38:41 -04:00
|
|
|
trial license, which gives access to the platinum features.
|
2018-03-06 12:47:04 -05:00
|
|
|
|
|
|
|
NOTE: You are allowed to initiate a trial license only if your cluster has not
|
2018-06-28 18:38:41 -04:00
|
|
|
already activated a trial license for the current major product version. For
|
2018-03-06 12:47:04 -05:00
|
|
|
example, if you have already activated a trial for v6.0, you cannot start a new
|
|
|
|
trial until v7.0. You can, however, contact `info@elastic.co` to request an
|
|
|
|
extended trial license.
|
|
|
|
|
|
|
|
To check the status of your trial license, use the following API:
|
|
|
|
<<get-trial-status>>.
|
|
|
|
|
|
|
|
For more information about the different types of licenses, see
|
|
|
|
https://www.elastic.co/subscriptions.
|
|
|
|
|
|
|
|
==== Authorization
|
|
|
|
|
|
|
|
You must have `manage` cluster privileges to use this API.
|
|
|
|
For more information, see
|
|
|
|
{xpack-ref}/security-privileges.html[Security Privileges].
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Examples
|
|
|
|
|
2018-04-26 21:42:44 -04:00
|
|
|
The following example starts a 30-day trial license. The acknowledge
|
|
|
|
parameter is required as you are initiating a license that will expire.
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-04-26 21:42:44 -04:00
|
|
|
------------------------------------------------------------
|
2018-11-28 08:24:35 -05:00
|
|
|
POST /_license/start_trial?acknowledge=true
|
2018-04-26 21:42:44 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
// TEST[skip:license testing issues]
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
[source,js]
|
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"trial_was_started": true,
|
|
|
|
"acknowledged": true
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
|
|
|
// NOTCONSOLE
|