A newer version is available. For the latest information, see the
current release documentation.
Create or update autoscaling policy API
editCreate or update autoscaling policy API
editThis feature is designed for indirect use by Elasticsearch Service, Elastic Cloud Enterprise, and Elastic Cloud on Kubernetes. Direct use is not supported.
Creates or updates an autoscaling policy.
Request
editPUT /_autoscaling/policy/<name> { "roles": [], "deciders": { "fixed": { } } }
Prerequisites
edit-
If the Elasticsearch security features are enabled, you must have the
manage_autoscaling
cluster privilege to use this API. - If the operator privileges feature is enabled, only operator users can use this API.
Description
editThis API puts an autoscaling policy with the provided name. See Autoscaling Deciders for available deciders.
Examples
editThis example puts an autoscaling policy named my_autoscaling_policy
using the
fixed autoscaling decider, applying to the set of nodes having (only) the
"data_hot" role.
PUT /_autoscaling/policy/my_autoscaling_policy { "roles" : [ "data_hot" ], "deciders": { "fixed": { } } }
The API returns the following result:
{ "acknowledged": true }