描述
查询伸缩配置的信息。查询时可以指定伸缩组ID来查询该伸缩组下的所有伸缩配置。
伸缩配置具有以下几种状态(LifecycleState):
- Active:生效状态,伸缩组会采用处于生效状态的伸缩配置自动创建ECS实例。
- Inacitve:失效状态,该伸缩配置存在于伸缩组中,但伸缩组不会采用处于失效状态的伸缩配置自动创建ECS实例。
请求参数
返回参数
ScalingConfigurationSetType是由ScalingConfigurationItemType类型组成的集合:
ScalingConfigurationItemType类型的属性如下:
DataDiskSetType是由DataDiskItemType类型组成的集合:
DataDiskItemType类型的属性如下:
示例
请求示例
- http://ess.aliyuncs.com/?Action=CreateScalingConfiguration
- &RegionId=cn-qingdao
- &PageSize=50
- &<公共请求参数>
返回示例
XML格式:
- <DescribeScalingConfigurationsResponse>
- <RequestId>804F240A-8D3E-40A1-BD68-6B333DEA2CA8</RequestId>
- <TotalCount>1</TotalCount>
- <PageNumber>1</PageNumber>
- <PageSize>50</PageSize>
- <ScalingConfigurations>
- <ScalingConfiguration>
- <CreationTime>2014-08-14T10:58Z</CreationTime>
- <ImageId>centos6u5_64_20G_aliaegis_20140703.vhd</ImageId>
- <InstanceType>ecs.t1.xsmall</InstanceType>
- <InternetChargeType>PayByBandwidth</InternetChargeType>
- <InternetMaxBandwidthIn>200</InternetMaxBandwidthIn>
- <InternetMaxBandwidthOut>0</InternetMaxBandwidthOut>
- <LifecycleState>Active</LifecycleState>
- <ScalingConfigurationId>bU5uZHcAgtzwcL4IeDeavqTS</ScalingConfigurationId>
- <ScalingConfigurationName>c1908dd1-690f-4c9b-ab73-350f1f06e84f</ScalingConfigurationName>
- <ScalingGroupId>dE9YbOdCHqaFdFZHXVdDjQCB</ScalingGroupId>
- <SecurityGroupId>sg-280ih3w4b</SecurityGroupId>
- <SystemDiskCategory>cloud</SystemDiskCategory>
- <DataDisks>
- <DataDisk>
- <Size>200</Size>
- <Category>cloud</Category>
- <SnapshotId>s-280s7ngih</SnapshotId>
- <Device>/dev/xvdb</Device>
- </DataDisk>
- </DataDisks>
- </ScalingConfiguration>
- </ScalingConfigurations>
- </DescribeScalingConfigurationsResponse>
JSON格式:
- {
- "RequestId": "67E4324F-CE14-4C2C-9D60-5422641DB76F",
- "TotalCount": 1,
- "PageNumber": 1,
- "PageSize": 1,
- "ScalingConfigurations": {
- "ScalingConfiguration": [
- {
- "ScalingConfigurationId": "eqkz17cfW3clcPExOtLNVlD",
- "SecurityGroupId": "sg-28oewzxvg",
- "CreationTime": "2014-08-18T21:07Z",
- "SystemDiskCategory": "cloud",
- "InternetMaxBandwidthIn": 200,
- "InternetMaxBandwidthOut": 0,
- "LifecycleState": "Inactive",
- "InternetChargeType": "PayByBandwidth",
- "ImageId": "rhel5u7_64_20G_aliaegis_20131231.vhd",
- "InstanceType": "ecs.s2.small",
- "ScalingConfigurationName": "LxVdcOqPBV",
- "ScalingGroupId": "dRsEAGdvbjR5c4SVc2bqLubj",
- “DataDisks”:{
- “DataDisk”:[{
- “Size”:200,
- “Category”: cloud,
- “SnapshotId”: s-280s7ngih,
- “Device”:” /dev/xvdb”
- }]
- }
- }
- ]
- }
- }
错误码
对于所有接口的通用性错误,请参考
客户端错误表或
服务器端错误表。