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

Description

In this example, the InstanceType, SecurityGroupId, and ImageId parameters are specified to create a scaling configuration for a scaling group. For more information, see CreateScalingConfiguration.

Sample requests

http://ess.aliyuncs.com/?Action=CreateScalingConfiguration
&ScalingGroupId=dP8VqSd9ENXPc0ciVmbc****
&SecurityGroupId=sg-280ih****
&ImageId=centos6u5_64_20G_aliaegis_20140703.vhd
&InstanceType=ecs.t1.xsmall
&<Common request parameters>

Sample responses

<CreateScalingConfigurationResponse>
    <ScalingConfigurationId>eOs27Kb0oXvQcUYjEGel****</ScalingConfigurationId>
    <RequestId>5CC0AD41-08ED-4559-A683-6F56355FE068</RequestId>
</CreateScalingConfigurationResponse>