Apache CloudStack 4.18.0.0 Root Admin API Reference

createCondition

Creates a condition for VM auto scaling

Request parameters

Parameter NameDescriptionRequired
counteridID of the Counter.true
relationaloperatorRelational Operator to be used with threshold. Valid values are EQ, GT, LT, GE, LE.true
thresholdValue for which the Counter will be evaluated with the Operator selected.true
accountthe account of the condition. Must be used with the domainId parameter.false
domainidthe domain ID of the account.false
projectidan optional project for conditionfalse

Response Tags

Response NameDescription
idthe id of the Condition
accountthe owner of the Condition.
counterDetails of the Counter.
counteridthe Id of the Counter.
counternamethe Name of the Counter.
domainthe domain name of the owner.
domainidthe domain id of the Condition owner
projectthe project name of the Condition
projectidthe project id of the Condition.
relationaloperatorRelational Operator to be used with threshold.
thresholdThreshold Value for the counter.
zoneidzone id of counter