调用DescribeScalingConfigurations,并可以指定伸缩组ID、伸缩配置ID,查询ECS类型伸缩配置的信息,包括伸缩配置名称、实例规格、实例镜像等信息。
调试
您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。
请求参数
名称 |
类型 |
是否必选 |
示例值 |
描述 |
名称 |
类型 |
是否必选 |
示例值 |
描述 |
Action | String | 是 | DescribeScalingConfigurations | 系统规定参数。取值:DescribeScalingConfigurations。 |
RegionId | String | 是 | cn-qingdao | 伸缩配置所属伸缩组的地域ID。 |
PageNumber | Integer | 否 | 1 | 伸缩配置列表的页码,起始值:1。 默认值:1。 |
PageSize | Integer | 否 | 50 | 分页查询时设置的每页行数,最大值:50。 默认值:10。 |
ScalingGroupId | String | 否 | asg-bp17pelvl720x3v7**** | 伸缩组的ID,您可以查询该伸缩组下所有的伸缩配置。 |
ScalingConfigurationId.N | String | 否 | asc-bp17pelvl720x5ub**** | 待查询伸缩配置的ID。 查询结果包括生效和未生效的伸缩配置,并通过返回参数 |
ScalingConfigurationName.N | String | 否 | scalingcon**** | 待查询伸缩配置的名称。 查询结果会忽略失效的伸缩配置名称,并且不报错。 |
返回数据
示例
请求示例
http(s)://ess.aliyuncs.com/?Action=DescribeScalingConfigurations
&RegionId=cn-qingdao
&PageNumber=1
&PageSize=50
&ScalingGroupId=asg-bp17pelvl720x3v7****
&ScalingConfigurationId=["asc-bp17pelvl720x5ub****"]
&ScalingConfigurationName=["scalingcon****"]
&公共请求参数
正常返回示例
XML
格式
HTTP/1.1 200 OK
Content-Type:application/xml
<DescribeScalingConfigurationsResponse>
<RequestId>473469C7-AA6F-4DC5-B3DB-A3DC0DE3****</RequestId>
<PageNumber>1</PageNumber>
<PageSize>50</PageSize>
<TotalCount>1</TotalCount>
<ScalingConfigurations>
<DeploymentSetId>ds-bp1frxuzdg87zh4p****</DeploymentSetId>
<CreationTime>2014-08-14T10:58Z</CreationTime>
<ScalingConfigurationName>scalingconfigura****</ScalingConfigurationName>
<SystemDiskDescription>Test system disk.</SystemDiskDescription>
<KeyPairName>keypair****</KeyPairName>
<SecurityGroupId>sg-bp18kz60mefs****</SecurityGroupId>
<PrivatePoolOptions.Id>eap-bp67acfmxazb4****</PrivatePoolOptions.Id>
<SystemDiskAutoSnapshotPolicyId>sp-bp12m37ccmxvbmi5****</SystemDiskAutoSnapshotPolicyId>
<SpotStrategy>NoSpot</SpotStrategy>
<ScalingGroupId>asg-bp17pelvl720x3v7****</ScalingGroupId>
<Affinity>default</Affinity>
<Tenancy>default</Tenancy>
<SystemDiskSize>100</SystemDiskSize>
<Ipv6AddressCount>1</Ipv6AddressCount>
<SpotDuration>1</SpotDuration>
<LifecycleState>Active</LifecycleState>
<InstanceName>instance****</InstanceName>
<SecurityEnhancementStrategy>Active</SecurityEnhancementStrategy>
<UserData>echo hello ecs!</UserData>
<PrivatePoolOptions.MatchCriteria>Open</PrivatePoolOptions.MatchCriteria>
<DedicatedHostId>dh-bp67acfmxazb4p****</DedicatedHostId>
<InstanceGeneration>ecs-3</InstanceGeneration>
<HpcClusterId>hpc-clus****</HpcClusterId>
<PasswordInherit>true</PasswordInherit>
<Memory>16</Memory>
<ImageId>centos6u5_64_20G_aliaegis_2014****.vhd</ImageId>
<ImageFamily>hangzhou-daily-update</ImageFamily>
<ImageOwnerAlias>system</ImageOwnerAlias>
<LoadBalancerWeight>1</LoadBalancerWeight>
<SystemDiskCategory>cloud</SystemDiskCategory>
<HostName>LocalHost</HostName>
<SystemDiskName>cloud_ssd_Test</SystemDiskName>
<InternetMaxBandwidthOut>0</InternetMaxBandwidthOut>
<InternetMaxBandwidthIn>200</InternetMaxBandwidthIn>
<InstanceType>ecs.g6.large</InstanceType>
<InstanceDescription>FinanceDept</InstanceDescription>
<IoOptimized>none</IoOptimized>
<RamRoleName>ramrole****</RamRoleName>
<SystemDiskPerformanceLevel>PL1</SystemDiskPerformanceLevel>
<Cpu>2</Cpu>
<ResourceGroupId>rg-aekzn2ou7xo****</ResourceGroupId>
<ZoneId>cn-hangzhou-g</ZoneId>
<InternetChargeType>PayByTraffic</InternetChargeType>
<ImageName>centos6u5_64_20G_aliaegis_20140703.vhd</ImageName>
<ScalingConfigurationId>asc-bp1ezrfgoyn5kijl****</ScalingConfigurationId>
<CreditSpecification>Standard</CreditSpecification>
<SpotInterruptionBehavior>Terminate</SpotInterruptionBehavior>
<DataDisks>
<PerformanceLevel>PL1</PerformanceLevel>
<Description>FinanceDept</Description>
<SnapshotId>s-23f2i****</SnapshotId>
<Device>/dev/xvdb</Device>
<Size>200</Size>
<DiskName>cloud_ssdData</DiskName>
<AutoSnapshotPolicyId>sp-bp19nq9enxqkomib****</AutoSnapshotPolicyId>
<Category>cloud</Category>
<KMSKeyId>0e478b7a-4262-4802-b8cb-00d3fb40****</KMSKeyId>
<DeleteWithInstance>true</DeleteWithInstance>
<Encrypted>false</Encrypted>
<Categories>cloud_essd</Categories>
<ProvisionedIops>100</ProvisionedIops>
<BurstingEnabled>false</BurstingEnabled>
</DataDisks>
<Tags>
<Key>binary</Key>
<Value>alterTable</Value>
</Tags>
<SpotPriceLimit>
<InstanceType>ecs.g6.large</InstanceType>
<PriceLimit>0.125</PriceLimit>
</SpotPriceLimit>
<InstancePatternInfos>
<MaxPrice>2</MaxPrice>
<Cores>2</Cores>
<Memory>4</Memory>
<InstanceFamilyLevel>EnterpriseLevel</InstanceFamilyLevel>
<Architectures>X86</Architectures>
<BurstablePerformance>Include</BurstablePerformance>
<ExcludedInstanceTypes>ecs.n1.small/ecs.n1.*/*7*</ExcludedInstanceTypes>
<InstanceTypeFamilies>["ecs.g6", "ecs.c6", … "ecs.r6"]</InstanceTypeFamilies>
<MinimumCpuCoreCount>2</MinimumCpuCoreCount>
<MaximumCpuCoreCount>4</MaximumCpuCoreCount>
<GpuSpecs>["NVIDIA V100"]</GpuSpecs>
<InstanceCategories>["Compute-optimized with GPU"]</InstanceCategories>
<CpuArchitectures>["X86", "ARM"]</CpuArchitectures>
<PhysicalProcessorModels>["Intel Xeon(Ice Lake) Platinum 8369B", "Intel Xeon(Skylake) Platinum 8163", … "Intel Xeon(Cascade Lake) Platinum 8269CY"]</PhysicalProcessorModels>
<MinimumEniQuantity>2</MinimumEniQuantity>
<MinimumEniPrivateIpAddressQuantity>2</MinimumEniPrivateIpAddressQuantity>
<MinimumEniIpv6AddressQuantity>1</MinimumEniIpv6AddressQuantity>
<MinimumInitialCredit>12</MinimumInitialCredit>
<MinimumBaselineCredit>12</MinimumBaselineCredit>
<MinimumMemorySize>4</MinimumMemorySize>
<MaximumMemorySize>4</MaximumMemorySize>
<MinimumGpuAmount>2</MinimumGpuAmount>
<MaximumGpuAmount>2</MaximumGpuAmount>
</InstancePatternInfos>
<SystemDiskCategories>cloud</SystemDiskCategories>
<WeightedCapacities>4</WeightedCapacities>
<InstanceTypes>ecs.g6.large</InstanceTypes>
<SecurityGroupIds>sg-bp18kz60mefs****</SecurityGroupIds>
<SchedulerOptions>
<ManagedPrivateSpaceId>testManagedPrivateSpaceId</ManagedPrivateSpaceId>
</SchedulerOptions>
<SystemDisk.Encrypted>false</SystemDisk.Encrypted>
<SystemDisk.KMSKeyId>0e478b7a-4262-4802-b8cb-00d3fb40****</SystemDisk.KMSKeyId>
<SystemDisk.EncryptAlgorithm>AES-256</SystemDisk.EncryptAlgorithm>
<SystemDisk.ProvisionedIops>100</SystemDisk.ProvisionedIops>
<SystemDisk.BurstingEnabled>false</SystemDisk.BurstingEnabled>
<ImageOptions.LoginAsNonRoot>false</ImageOptions.LoginAsNonRoot>
<DeletionProtection>false</DeletionProtection>
<StorageSetId>ss-bp67acfmxazb4p****</StorageSetId>
<StorageSetPartitionNumber>2</StorageSetPartitionNumber>
<CustomPriorities>
<InstanceType>ecs.g6.large</InstanceType>
<VswitchId>vsw-bp14zolna43z266bq****</VswitchId>
</CustomPriorities>
<NetworkInterfaces>
<InstanceType>Primary</InstanceType>
<NetworkInterfaceTrafficMode>HighPerformance</NetworkInterfaceTrafficMode>
<Ipv6AddressCount>1</Ipv6AddressCount>
<SecurityGroupIds>sg-2vc3e1v7h****</SecurityGroupIds>
</NetworkInterfaces>
<DedicatedHostClusterId>dc-2zedxc67zqzt7lb4****</DedicatedHostClusterId>
</ScalingConfigurations>
</DescribeScalingConfigurationsResponse>
JSON
格式
HTTP/1.1 200 OK
Content-Type:application/json
{
"RequestId" : "473469C7-AA6F-4DC5-B3DB-A3DC0DE3****",
"PageNumber" : 1,
"PageSize" : 50,
"TotalCount" : 1,
"ScalingConfigurations" : [ {
"DeploymentSetId" : "ds-bp1frxuzdg87zh4p****",
"CreationTime" : "2014-08-14T10:58Z",
"ScalingConfigurationName" : "scalingconfigura****",
"SystemDiskDescription" : "Test system disk.",
"KeyPairName" : "keypair****",
"SecurityGroupId" : "sg-bp18kz60mefs****",
"PrivatePoolOptions.Id" : "eap-bp67acfmxazb4****",
"SystemDiskAutoSnapshotPolicyId" : "sp-bp12m37ccmxvbmi5****",
"SpotStrategy" : "NoSpot",
"ScalingGroupId" : "asg-bp17pelvl720x3v7****",
"Affinity" : "default",
"Tenancy" : "default",
"SystemDiskSize" : 100,
"Ipv6AddressCount" : 1,
"SpotDuration" : 1,
"LifecycleState" : "Active",
"InstanceName" : "instance****",
"SecurityEnhancementStrategy" : "Active",
"UserData" : "echo hello ecs!",
"PrivatePoolOptions.MatchCriteria" : "Open",
"DedicatedHostId" : "dh-bp67acfmxazb4p****",
"InstanceGeneration" : "ecs-3",
"HpcClusterId" : "hpc-clus****",
"PasswordInherit" : true,
"Memory" : 16,
"ImageId" : "centos6u5_64_20G_aliaegis_2014****.vhd",
"ImageFamily" : "hangzhou-daily-update",
"ImageOwnerAlias" : "system",
"LoadBalancerWeight" : 1,
"SystemDiskCategory" : "cloud",
"HostName" : "LocalHost",
"SystemDiskName" : "cloud_ssd_Test",
"InternetMaxBandwidthOut" : 0,
"InternetMaxBandwidthIn" : 200,
"InstanceType" : "ecs.g6.large",
"InstanceDescription" : "FinanceDept",
"IoOptimized" : "none",
"RamRoleName" : "ramrole****",
"SystemDiskPerformanceLevel" : "PL1",
"Cpu" : 2,
"ResourceGroupId" : "rg-aekzn2ou7xo****",
"ZoneId" : "cn-hangzhou-g",
"InternetChargeType" : "PayByTraffic",
"ImageName" : "centos6u5_64_20G_aliaegis_20140703.vhd",
"ScalingConfigurationId" : "asc-bp1ezrfgoyn5kijl****",
"CreditSpecification" : "Standard",
"SpotInterruptionBehavior" : "Terminate",
"DataDisks" : [ {
"PerformanceLevel" : "PL1",
"Description" : "FinanceDept",
"SnapshotId" : "s-23f2i****",
"Device" : "/dev/xvdb",
"Size" : 200,
"DiskName" : "cloud_ssdData",
"AutoSnapshotPolicyId" : "sp-bp19nq9enxqkomib****",
"Category" : "cloud",
"KMSKeyId" : "0e478b7a-4262-4802-b8cb-00d3fb40****",
"DeleteWithInstance" : true,
"Encrypted" : "false",
"Categories" : [ "cloud_essd" ],
"ProvisionedIops" : 100,
"BurstingEnabled" : false
} ],
"Tags" : [ {
"Key" : "binary",
"Value" : "alterTable"
} ],
"SpotPriceLimit" : [ {
"InstanceType" : "ecs.g6.large",
"PriceLimit" : 0.125
} ],
"InstancePatternInfos" : [ {
"MaxPrice" : 2,
"Cores" : 2,
"Memory" : 4,
"InstanceFamilyLevel" : "EnterpriseLevel",
"Architectures" : [ "X86" ],
"BurstablePerformance" : "Include",
"ExcludedInstanceTypes" : [ "ecs.n1.small/ecs.n1.*/*7*" ],
"InstanceTypeFamilies" : [ "[\"ecs.g6\", \"ecs.c6\", … \"ecs.r6\"]" ],
"MinimumCpuCoreCount" : 2,
"MaximumCpuCoreCount" : 4,
"GpuSpecs" : [ "[\"NVIDIA V100\"]" ],
"InstanceCategories" : [ "[\"Compute-optimized with GPU\"]" ],
"CpuArchitectures" : [ "[\"X86\", \"ARM\"]" ],
"PhysicalProcessorModels" : [ "[\"Intel Xeon(Ice Lake) Platinum 8369B\", \"Intel Xeon(Skylake) Platinum 8163\", … \"Intel Xeon(Cascade Lake) Platinum 8269CY\"]" ],
"MinimumEniQuantity" : 2,
"MinimumEniPrivateIpAddressQuantity" : 2,
"MinimumEniIpv6AddressQuantity" : 1,
"MinimumInitialCredit" : 12,
"MinimumBaselineCredit" : 12,
"MinimumMemorySize" : 4,
"MaximumMemorySize" : 4,
"MinimumGpuAmount" : 2,
"MaximumGpuAmount" : 2
} ],
"SystemDiskCategories" : [ "cloud" ],
"WeightedCapacities" : [ "4" ],
"InstanceTypes" : [ "ecs.g6.large" ],
"SecurityGroupIds" : [ "sg-bp18kz60mefs****" ],
"SchedulerOptions" : {
"ManagedPrivateSpaceId" : "testManagedPrivateSpaceId"
},
"SystemDisk.Encrypted" : false,
"SystemDisk.KMSKeyId" : "0e478b7a-4262-4802-b8cb-00d3fb40****",
"SystemDisk.EncryptAlgorithm" : "AES-256",
"SystemDisk.ProvisionedIops" : 100,
"SystemDisk.BurstingEnabled" : false,
"ImageOptions.LoginAsNonRoot" : false,
"DeletionProtection" : false,
"StorageSetId" : "ss-bp67acfmxazb4p****",
"StorageSetPartitionNumber" : 2,
"CustomPriorities" : [ {
"InstanceType" : "ecs.g6.large",
"VswitchId" : "vsw-bp14zolna43z266bq****"
} ],
"NetworkInterfaces" : [ {
"InstanceType" : "Primary",
"NetworkInterfaceTrafficMode" : "HighPerformance",
"Ipv6AddressCount" : 1,
"SecurityGroupIds" : [ "sg-2vc3e1v7h****" ]
} ],
"DedicatedHostClusterId" : "dc-2zedxc67zqzt7lb4****"
} ]
}
错误码
访问错误中心查看更多错误码。
该文章对您有帮助吗?
- 本页导读 (1)
- 调试
- 请求参数
- 返回数据
- 示例
- 错误码