You are looking at preliminary documentation for a future release.
Not what you want? See the
current release documentation.
Get autoscaling policy APIedit
This feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
Get autoscaling policy.
Prerequisitesedit
-
If the Elasticsearch security features are enabled, you must have
manage_autoscaling
cluster privileges. For more information, see Security privileges.
Descriptionedit
This API gets an autoscaling policy with the provided name.
Query parametersedit
-
master_timeout
-
(Optional, time units)
Period to wait for the master node. If the master node is not available before
the timeout expires, the request fails and returns an error. Defaults to
30s
. Can also be set to-1
to indicate that the request should never timeout.
Examplesedit
This example gets an autoscaling policy named my_autoscaling_policy
.
GET /_autoscaling/policy/my_autoscaling_policy
The API returns the following result:
{ "roles": <roles>, "deciders": <deciders> }