get-autoscaling-capacity.asciidoc 1.4 KB

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