mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-08 05:58:44 +00:00
The main purpose of this commit is to add a single autoscaling REST endpoint skeleton, for the purpose of starting to build out the build and testing infrastructure that will surround it. For example, rather than commiting a fully-functioning autoscaling API, we introduce here the skeleton so that we can start wiring up the build and testing infrastructure, establish security roles/permissions, an so on. This way, in a forthcoming PR that introduces actual functionality, that PR will be smaller and have less distractions around that sort of infrastructure.
53 lines
1.3 KiB
Plaintext
53 lines
1.3 KiB
Plaintext
[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]
|
|
--------------------------------------------------
|
|
{
|
|
|
|
}
|
|
--------------------------------------------------
|