Apache CloudStack 4.23.0.0 Root Admin API Reference
createCondition
Creates a condition for Instance 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 |
| domainpath | path of the domain to which the Condition owner belongs |
| 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 |