get-basic-status.asciidoc 1.1 KB

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