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.
|
|
|
|
|
2020-07-23 12:42:33 -04:00
|
|
|
[discrete]
|
2018-03-12 16:39:58 -04:00
|
|
|
==== Request
|
|
|
|
|
2018-11-28 08:24:35 -05:00
|
|
|
`GET /_license/basic_status`
|
2018-03-12 16:39:58 -04:00
|
|
|
|
2020-07-23 12:42:33 -04:00
|
|
|
[discrete]
|
2018-03-12 16:39:58 -04:00
|
|
|
==== 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.
|
2019-10-07 18:23:19 -04:00
|
|
|
For more information, see <<security-privileges>>.
|
2018-03-12 16:39:58 -04:00
|
|
|
|
2020-07-23 12:42:33 -04:00
|
|
|
[discrete]
|
2018-03-12 16:39:58 -04:00
|
|
|
==== Examples
|
|
|
|
|
|
|
|
The following example checks whether you are eligible to start a basic:
|
|
|
|
|
2019-09-06 11:31:13 -04:00
|
|
|
[source,console]
|
2018-03-12 16:39:58 -04:00
|
|
|
------------------------------------------------------------
|
2018-11-28 08:24:35 -05:00
|
|
|
GET /_license/basic_status
|
2018-03-12 16:39:58 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
|
|
|
|
Example response:
|
2019-09-06 16:09:09 -04:00
|
|
|
|
|
|
|
[source,console-result]
|
2018-03-12 16:39:58 -04:00
|
|
|
------------------------------------------------------------
|
|
|
|
{
|
|
|
|
"eligible_to_start_basic": true
|
|
|
|
}
|
|
|
|
------------------------------------------------------------
|
|
|
|
// TESTRESPONSE[s/"eligible_to_start_basic": true/"eligible_to_start_basic": $body.eligible_to_start_basic/]
|