Apache CloudStack 4.23.0.0 Root Admin API Reference
createAutoScalePolicy
Creates an autoscale policy for a provision or deprovision action, the action is taken when the all the conditions evaluates to true for the specified duration. The policy is in effect once it is attached to a autscale Instance group.
Request parameters
| Parameter Name | Description | Required |
| action | The action to be executed if all the conditions evaluate to true for the specified duration. | true |
| conditionids | The list of IDs of the conditions that are being evaluated on every interval | true |
| duration | The duration in which the conditions have to be true before action is taken | true |
| name | The name of the autoscale policy | false |
| quiettime | The cool down period in which the policy should not be evaluated after the action has been taken | false |
Response Tags
| Response Name | Description |
| id | The autoscale policy ID |
| account | The Account owning the autoscale policy |
| action | The action to be executed if all the conditions evaluate to true for the specified duration. |
| conditions | The list of IDs of the conditions that are being evaluated on every interval |
| domain | The domain name of the autoscale policy |
| domainid | The domain ID of the autoscale policy |
| domainpath | path of the domain to which the autoscale policy belongs |
| duration | The duration for which the conditions have to be true before action is taken |
| name | Name of the autoscale policy |
| project | The project name of the autoscale policy |
| projectid | The project id autoscale policy |
| quiettime | The cool down period for which the policy should not be evaluated after the action has been taken |