Get autoscaling policy APIedit

Get autoscaling policy.

Requestedit

PUT /_autoscaling/policy/my_autoscaling_policy
{
  "policy": {
    "deciders": {
      "always": {
      }
    }
  }
}
GET /_autoscaling/policy/<name>

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.

Examplesedit

This example gets an autoscaling policy named my_autosaling_policy.

GET /_autoscaling/policy/my_autoscaling_policy

The API returns the following result:

{
  "policy": {
     "deciders": <deciders>
  }
}