get-basic-status.asciidoc 1.1 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  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 <<security-privileges>>.
  21. [float]
  22. ==== Examples
  23. The following example checks whether you are eligible to start a basic:
  24. [source,console]
  25. ------------------------------------------------------------
  26. GET /_license/basic_status
  27. ------------------------------------------------------------
  28. Example response:
  29. [source,console-result]
  30. ------------------------------------------------------------
  31. {
  32. "eligible_to_start_basic": true
  33. }
  34. ------------------------------------------------------------
  35. // TESTRESPONSE[s/"eligible_to_start_basic": true/"eligible_to_start_basic": $body.eligible_to_start_basic/]