2018-03-12 16:39:58 -04:00
|
|
|
[role="xpack"]
|
2018-06-20 11:17:11 -04:00
|
|
|
[testenv="basic"]
|
2018-03-12 16:39:58 -04:00
|
|
|
[[get-basic-status]]
|
2018-12-20 13:23:28 -05:00
|
|
|
=== Get basic status API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get basic status</titleabbrev>
|
|
|
|
++++
|
2018-03-12 16:39:58 -04:00
|
|
|
|
|
|
|
This API enables you to check the status of your basic license.
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Request
|
|
|
|
|
2018-11-28 08:24:35 -05:00
|
|
|
`GET /_license/basic_status`
|
2018-03-12 16:39:58 -04:00
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Description
|
|
|
|
|
|
|
|
In order to initiate a basic license, you must not currently have a basic
|
|
|
|
license.
|
|
|
|
|
|
|
|
For more information about the different types of licenses, see
|
|
|
|
https://www.elastic.co/subscriptions.
|
|
|
|
|
|
|
|
==== Authorization
|
|
|
|
|
|
|
|
You must have `monitor` cluster privileges to use this API.
|
|
|
|
For more information, see
|
|
|
|
{xpack-ref}/security-privileges.html[Security Privileges].
|
|
|
|
|
|
|
|
[float]
|
|
|
|
==== Examples
|
|
|
|
|
|
|
|
The following example checks whether you are eligible to start a basic:
|
|
|
|
|
|
|
|
[source,js]
|
|
|
|
------------------------------------------------------------
|
2018-11-28 08:24:35 -05:00
|
|
|
GET /_license/basic_status
|
2018-03-12 16:39:58 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
// CONSOLE
|
|
|
|
|
|
|
|
Example response:
|
|
|
|
[source,js]
|
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"eligible_to_start_basic": true
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
|
|
|
// TESTRESPONSE[s/"eligible_to_start_basic": true/"eligible_to_start_basic": $body.eligible_to_start_basic/]
|