get-autoscaling-capacity.asciidoc 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354
  1. [role="xpack"]
  2. [testenv="platinum"]
  3. [[autoscaling-get-autoscaling-capacity]]
  4. === Get autoscaling capacity API
  5. ++++
  6. <titleabbrev>Get autoscaling capacity</titleabbrev>
  7. ++++
  8. experimental[]
  9. Get autoscaling capacity.
  10. [[autoscaling-get-autoscaling-capacity-request]]
  11. ==== {api-request-title}
  12. [source,console]
  13. --------------------------------------------------
  14. GET /_autoscaling/capacity/
  15. --------------------------------------------------
  16. // TEST
  17. [[autoscaling-get-autoscaling-capacity-prereqs]]
  18. ==== {api-prereq-title}
  19. * If the {es} {security-features} are enabled, you must have
  20. `manage_autoscaling` cluster privileges. For more information, see
  21. <<security-privileges>>.
  22. [[autoscaling-get-autoscaling-capacity-desc]]
  23. ==== {api-description-title}
  24. This API gets the current autoscaling capacity based on the configured
  25. autoscaling policy. This API will return information to size the cluster
  26. appropriately to the current workload.
  27. [[autoscaling-get-autoscaling-capacity-examples]]
  28. ==== {api-examples-title}
  29. This example retrieves the current autoscaling capacity.
  30. [source,console]
  31. --------------------------------------------------
  32. GET /_autoscaling/capacity
  33. --------------------------------------------------
  34. // TEST
  35. The API returns the following result:
  36. [source,console-result]
  37. --------------------------------------------------
  38. {
  39. policies: {}
  40. }
  41. --------------------------------------------------