This topic provides an example of how to call an API operation to create a scaling rule.

Description

In this example, the AdjustmentType and AdjustmentValue parameters are specified to create a scaling rule for a scaling group. For more information about the parameters, see CreateScalingRule.

Sample requests

http://ess.aliyuncs.com/?Action=CreateScalingRule
&ScalingGroupId=dP8VqSd9ENXPc0ciVmbc****
&AdjustmentType=QuantityChangeInCapacity
&AdjustmentValue=1
&<Common request parameters>

Sample responses

<CreateScalingRuleResponse>   
    <ScalingRuleAri>ari:acs:ess:cn-qingdao:134437****:scalingrule/eMKWG8SRNb9dBLAjweN****</ScalingRuleAri>
    <ScalingRuleId>eMKWG8SRNb9dBLAjweN****</ScalingRuleId>
    <RequestId>570C84F4-A434-488A-AFA1-1E3213682B33</RequestId>
</CreateScalingRuleResponse>