Creates a new autoscaling policy Added in 7.11.0

PUT /_autoscaling/policy/{name}

Designed for indirect use by ECE/ESS and ECK. Direct use is not supported.

Path parameters

  • name string Required

    the name of the autoscaling policy

application/json

Body Required

  • roles array[string] Required
  • deciders object Required

    Decider settings

    Hide deciders attribute Show deciders attribute object
    • * object Additional properties

      Additional properties are allowed.

Responses

  • 200 application/json
    Hide response attribute Show response attribute object
    • acknowledged boolean Required

      For a successful response, this value is always true. On failure, an exception is returned instead.

PUT /_autoscaling/policy/{name}
curl \
 -X PUT http://api.example.com/_autoscaling/policy/{name} \
 -H "Content-Type: application/json" \
 -d '{"roles":["string"],"deciders":{"additionalProperty1":{},"additionalProperty2":{}}}'
Request examples
{
  "roles": [
    "string"
  ],
  "deciders": {
    "additionalProperty1": {},
    "additionalProperty2": {}
  }
}
Response examples (200)
{
  "acknowledged": true
}