Apache CloudStack 4.18.0.0 Root Admin API Reference
createCondition
Creates a condition for VM auto scaling
Request parameters
| Parameter Name | Description | Required |
| counterid | ID of the Counter. | true |
| relationaloperator | Relational Operator to be used with threshold. Valid values are EQ, GT, LT, GE, LE. | true |
| threshold | Value for which the Counter will be evaluated with the Operator selected. | true |
| account | the account of the condition. Must be used with the domainId parameter. | false |
| domainid | the domain ID of the account. | false |
| projectid | an optional project for condition | false |
Response Tags
| Response Name | Description |
| id | the id of the Condition |
| account | the owner of the Condition. |
| counter | Details of the Counter. |
| counterid | the Id of the Counter. |
| countername | the Name of the Counter. |
| domain | the domain name of the owner. |
| domainid | the domain id of the Condition owner |
| project | the project name of the Condition |
| projectid | the project id of the Condition. |
| relationaloperator | Relational Operator to be used with threshold. |
| threshold | Threshold Value for the counter. |
| zoneid | zone id of counter |