2020-02-06 21:55:01 -05:00
|
|
|
[role="xpack"]
|
|
|
|
[testenv="platinum"]
|
|
|
|
[[autoscaling-get-autoscaling-decision]]
|
|
|
|
=== Get autoscaling decision API
|
|
|
|
++++
|
|
|
|
<titleabbrev>Get autoscaling decision</titleabbrev>
|
|
|
|
++++
|
|
|
|
|
|
|
|
Get autoscaling decision.
|
|
|
|
|
|
|
|
[[autoscaling-get-autoscaling-decision-request]]
|
|
|
|
==== {api-request-title}
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET /_autoscaling/decision/
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST
|
|
|
|
|
|
|
|
[[autoscaling-get-autoscaling-decision-prereqs]]
|
|
|
|
==== {api-prereq-title}
|
|
|
|
|
|
|
|
* If the {es} {security-features} are enabled, you must have
|
|
|
|
`manage_autoscaling` cluster privileges. For more information, see
|
|
|
|
<<security-privileges>>.
|
|
|
|
|
|
|
|
[[autoscaling-get-autoscaling-decision-desc]]
|
|
|
|
==== {api-description-title}
|
|
|
|
|
|
|
|
This API gets the current autoscaling decision based on the configured
|
|
|
|
autoscaling policy. This API will return whether or not autoscaling is
|
|
|
|
needed.
|
|
|
|
|
|
|
|
[[autoscaling-get-autoscaling-decision-examples]]
|
|
|
|
==== {api-examples-title}
|
|
|
|
|
|
|
|
This example retrieves the current autoscaling decision.
|
|
|
|
|
|
|
|
[source,console]
|
|
|
|
--------------------------------------------------
|
|
|
|
GET /_autoscaling/decision
|
|
|
|
--------------------------------------------------
|
|
|
|
// TEST
|
|
|
|
|
|
|
|
The API returns the following result:
|
|
|
|
|
|
|
|
[source,console-result]
|
|
|
|
--------------------------------------------------
|
|
|
|
{
|
2020-03-23 22:53:51 -04:00
|
|
|
decisions: []
|
2020-02-06 21:55:01 -05:00
|
|
|
}
|
|
|
|
--------------------------------------------------
|