Update Auto Scaling Group Configuration
Updates a group's configuration: its name, min_nodes / max_nodes, the backing plan_id, the policy_type, and the elastic (policy) and scheduled (scheduled_policy) rules. The same min/max and policy validation as Create applies (max_nodes <= 60, the scheduled-policy ordering rules, and at least one of policy / scheduled_policy). For a private cluster set is_private: true and omit plan_id.
/api/v1/scaler/scalegroups/update/{scaler_id}/Path parameters
scaler_idPathintegerrequiredThe
idof the auto scaling group, as returned by List.- required
- must be a valid auto scaling group ID
example12345
Query parameters
project_idQueryintegerrequiredIdentifier of the project to scope the request to. Required integer project ID.
- required
- must be a valid integer project ID
example{{project_id}}apikeyQuerystringrequiredAPI key used to authenticate the update request.
- required
- non-empty string
example{{api_key}}locationQuerystringrequiredRegion of the group being updated.
- required
- must be a valid region name (e.g., Delhi, Chennai)
example{{location}}
Request body
application/json
Update payload for an auto scaling group's configuration and scaling policies. The same min/max and policy validation as create applies.
Display name of the group.
web-autoscale-group- required
- max length 40 characters
ID of the compute plan backing each node. Required when is_private is false.
1088- required when is_private is false
Whether the group runs on a private cluster.
false- optional
- defaults to false
Minimum number of running nodes.
1- required
- integer >= 0
Maximum number of running nodes.
5- required
- must not exceed 60 (MAX_NODES_PER_GROUP)
Whether the elastic policy uses a Default metric or a Custom parameter.
DefaultElastic scaling rules (scale-up and scale-down). See Create for field detail.
Scheduled scaling rules (scale-up and scale-down). See Create for field detail.
Responses
200Successful response
Update confirmation.
200service updated sucessfully, service_name: web-autoscale-group