get-basic-status.asciidoc 1.1 KB

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