调用ListScalingConfigItemV2接口,查看伸缩配置项列表。

调试

您可以在OpenAPI Explorer中直接运行该接口,免去您计算签名的困扰。运行成功后,OpenAPI Explorer可以自动生成SDK代码示例。

请求参数

名称 类型 是否必选 示例值 描述
Action String ListScalingConfigItemV2

系统规定参数。取值:ListScalingConfigItemV2。

ConfigItemType String SCALING_STRATEGY

配置项类型。取值如下:

  • SCALING_RULE:伸缩规则
  • SCALING_STRATEGY:伸缩策略
RegionId String cn-hangzhou

地域ID。您可以调用DescribeRegions接口查看最新的阿里云地域列表。

ScalingGroupBizId String SGB-16ABA17988F39****

伸缩组ID。您可以调用ListScalingGroupV2查看伸缩组ID。

ResourceGroupId String rg-acfmv6jutt6****

资源组ID。您可以调用ListResourceGroups查看资源组ID。

PageNumber Integer 1

分页页码。

PageSize Integer 100

单页记录条数。

返回数据

名称 类型 示例值 描述
Items Array of Item

配置项列表

Item
ConfigItemInformation String {\"spotStrategy\":\"NoSpot\",\"spotPriceLimits\":[],\"instanceTypeList\":[],\"sysDiskCategory\":\"cloud_essd\",\"sysDiskSize\":{\"value\":40.0,\"unit\":\"GIGABYTE\"},\"dataDiskCategory\":\"cloud_essd\",\"dataDiskSize\":{\"value\":40.0,\"unit\":\"GIGABYTE\"},\"dataDiskCount\":4,\"scalingMaxSize\":10,\"scalingMinSize\":0,\"defaultCoolDownTime\":0,\"scalingTimeoutPolice\":{\"timeoutPolicy\":\"ROLLBACK\"},\"nodeOfflineMode\":\"DEFAULT\",\"nodeOfflineModeParam\":{\"timeoutMs\":0},\"triggerMode\":\"Scheduled\",\"multiAvailablePolicy\":\"PRIORITY\",\"multiAvailablePolicyParam\":{\"onDemandBaseCapacity\":0,\"onDemandPercentageAboveBaseCapacity\":0,\"spotInstanceRemedy\":false,\"spotInstancePools\":0},\"configItemType\":\"SCALING_STRATEGY\",\"scalingConfigBizId\":\"SCB-5B74B3834D9A446F\"}

配置项信息。配置项类型不同信息不同。

ConfigItemType String SCALING_STRATEGY

配置项类型。

ScalingConfigItemBizId String SSB-B1AC1532C218****

配置项ID。

ScalingGroupBizId String SGB-84314D112C67****

伸缩组ID。

NextToken String None

废弃字段。

PageNumber Integer 1

分页页码。

PageSize Integer 100

单页记录条数。

RequestId String 7B804810-3C11-4927-B116-1D1A98A60BDD

请求ID。

TotalCount Integer 100

记录总数。

示例

请求示例

http(s)://[Endpoint]/?Action=ListScalingConfigItemV2
&ConfigItemType=SCALING_RULE
&RegionId=cn-hangzhou
&ScalingGroupBizId=SGB-16ABA17988F3****
&<公共请求参数>

正常返回示例

XML格式

<TotalCount>100</TotalCount>
<RequestId>7B804810-3C11-4927-B116-1D1A98A60BDD</RequestId>
<PageSize>100</PageSize>
<NextToken>None</NextToken>
<PageNumber>1</PageNumber>
<Items>
    <Item>
        <ScalingConfigItemBizId>SSB-B1AC1532C218****</ScalingConfigItemBizId>
        <ScalingGroupBizId>SGB-84314D112C67****</ScalingGroupBizId>
        <ConfigItemInformation>{"spotStrategy":"NoSpot","spotPriceLimits":[],"instanceTypeList":[],"sysDiskCategory":"cloud_essd","sysDiskSize":{"value":40.0,"unit":"GIGABYTE"},"dataDiskCategory":"cloud_essd","dataDiskSize":{"value":40.0,"unit":"GIGABYTE"},"dataDiskCount":4,"scalingMaxSize":10,"scalingMinSize":0,"privatePoolOptionsMatchCriteria":"Target","privatePoolOptionsId":"crp-bp1e4wcvoucrish5vph7","defaultCoolDownTime":0,"scalingTimeoutPolice":{"timeoutPolicy":"ROLLBACK"},"nodeOfflineMode":"DEFAULT","nodeOfflineModeParam":{"timeoutMs":0},"triggerMode":"Scheduled","multiAvailablePolicy":"PRIORITY","multiAvailablePolicyParam":{"onDemandBaseCapacity":0,"onDemandPercentageAboveBaseCapacity":0,"spotInstanceRemedy":false,"spotInstancePools":0},"configItemType":"SCALING_STRATEGY","scalingConfigBizId":"SCB-5B74B3834D9A446F"}</ConfigItemInformation>
        <ConfigItemType>SCALING_STRATEGY</ConfigItemType>
    </Item>
</Items>

JSON格式

{
    "TotalCount":"100",
    "RequestId":"7B804810-3C11-4927-B116-1D1A98A60BDD",
    "PageSize":"100",
    "NextToken":"None",
    "PageNumber":"1",
    "Items":
    {
        "Item": [
			{
				"ScalingConfigItemBizId": "SSB-B1AC1532C218****",
				"ScalingGroupBizId": "SGB-84314D112C67****",
				"ConfigItemInformation": "{\"spotStrategy\":\"NoSpot\",\"spotPriceLimits\":[],\"instanceTypeList\":[],\"sysDiskCategory\":\"cloud_essd\",\"sysDiskSize\":{\"value\":40.0,\"unit\":\"GIGABYTE\"},\"dataDiskCategory\":\"cloud_essd\",\"dataDiskSize\":{\"value\":40.0,\"unit\":\"GIGABYTE\"},\"dataDiskCount\":4,\"scalingMaxSize\":10,\"scalingMinSize\":0,\"privatePoolOptionsMatchCriteria\":\"Target\",\"privatePoolOptionsId\":\"crp-bp1e4wcvoucrish5vph7\",\"defaultCoolDownTime\":0,\"scalingTimeoutPolice\":{\"timeoutPolicy\":\"ROLLBACK\"},\"nodeOfflineMode\":\"DEFAULT\",\"nodeOfflineModeParam\":{\"timeoutMs\":0},\"triggerMode\":\"Scheduled\",\"multiAvailablePolicy\":\"PRIORITY\",\"multiAvailablePolicyParam\":{\"onDemandBaseCapacity\":0,\"onDemandPercentageAboveBaseCapacity\":0,\"spotInstanceRemedy\":false,\"spotInstancePools\":0},\"configItemType\":\"SCALING_STRATEGY\",\"scalingConfigBizId\":\"SCB-5B74B3834D9A446F\"}",
				"ConfigItemType": "SCALING_STRATEGY"
			}
		]
     }
}