You can call ListScalingConfigItemV2 to query scaling configuration items.

Debugging

OpenAPI Explorer automatically calculates the signature value. For your convenience, we recommend that you call this operation in OpenAPI Explorer. OpenAPI Explorer dynamically generates the sample code of the operation for different SDKs.

Request parameters

Parameter Type Required Example Description
Action String Yes ListScalingConfigItemV2

The operation that you want to perform. Set the value to ListScalingConfigItemV2.

ConfigItemType String Yes SCALING_STRATEGY

The type of the configuration parameters. Valid values:

  • SCALING_RULE: scaling rule
  • SCALING_STRATEGY: Scaling Policies
RegionId String Yes cn-hangzhou

The region ID of the instance. You can call DescribeRegions You can call this operation to view the latest list of Alibaba Cloud regions.

ScalingGroupBizId String Yes SGB-16ABA17988F39****

The ID of the scaling group. You can call ListScalingGroupV2 View the ID of the scaling group.

ResourceGroupId String No rg-acfmv6jutt6****

The ID of the resource group. You can call ListResourceGroups View the ID of the resource group.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 100

The number of records on a single page.

Response parameters

Parameter Type Example Description
Items Array of Item

configuration items list

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\"}

configuration items information. Information varies with configuration items type.

ConfigItemType String SCALING_STRATEGY

The type of the configuration parameters.

ScalingConfigItemBizId String SSB-B1AC1532C218****

The ID of the configuration items.

ScalingGroupBizId String SGB-84314D112C67****

The ID of the scaling group.

NextToken String None

Discard fields.

PageNumber Integer 1

The number of the page to return.

PageSize Integer 100

The number of records on a single page.

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

The ID of the request.

TotalCount Integer 100

The total number of entries that are returned.

Examples

Sample requests

http(s)://[Endpoint]/?Action=ListScalingConfigItemV2  
&ConfigItemType=SCALING_RULE 
&RegionId=cn-hangzhou 
&ScalingGroupBizId=SGB-16ABA17988F3**** 
&<common request parameters> 
   

Sample success responses

XML format

<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,"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 Syntax

{
    "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,\"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"
            }
        ]
     }
}