Put autoscaling policy APIedit

Put autoscaling policy.

Requestedit

PUT /_autoscaling/policy/<name>
{
  "policy": {
    "deciders": {
      "fixed": {
      }
    }
  }
}

Prerequisitesedit

  • If the Elasticsearch security features are enabled, you must have manage_autoscaling cluster privileges. For more information, see Security privileges.

Descriptionedit

This API puts an autoscaling policy with the provided name.

Examplesedit

This example puts an autoscaling policy named my_autoscaling_policy using the fixed autoscaling decider.

PUT /_autoscaling/policy/my_autoscaling_policy
{
  "policy": {
    "deciders": {
      "fixed": {
      }
    }
  }
}

The API returns the following result:

{
  "acknowledged": true
}