get-basic-status.asciidoc 1.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. [role="xpack"]
  2. [testenv="basic"]
  3. [[get-basic-status]]
  4. === Get basic status API
  5. ++++
  6. <titleabbrev>Get basic status</titleabbrev>
  7. ++++
  8. This API enables you to check the status of your basic license.
  9. [float]
  10. ==== Request
  11. `GET /_license/basic_status`
  12. [float]
  13. ==== Description
  14. In order to initiate a basic license, you must not currently have a basic
  15. license.
  16. For more information about the different types of licenses, see
  17. https://www.elastic.co/subscriptions.
  18. ==== Authorization
  19. You must have `monitor` cluster privileges to use this API.
  20. For more information, see
  21. {xpack-ref}/security-privileges.html[Security Privileges].
  22. [float]
  23. ==== Examples
  24. The following example checks whether you are eligible to start a basic:
  25. [source,js]
  26. ------------------------------------------------------------
  27. GET /_license/basic_status
  28. ------------------------------------------------------------
  29. // CONSOLE
  30. Example response:
  31. [source,js]
  32. ------------------------------------------------------------
  33. {
  34. "eligible_to_start_basic": true
  35. }
  36. ------------------------------------------------------------
  37. // TESTRESPONSE[s/"eligible_to_start_basic": true/"eligible_to_start_basic": $body.eligible_to_start_basic/]