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. You can use OpenAPI Explorer to search for API operations, call API operations, and dynamically generate SDK sample code.

Request parameters

Parameter Type Required Example Description
Action String Yes ListScalingConfigItemV2

The operation that you want to perform. This parameter is required for API requests that you create by piecing together HTTP or HTTPS URLs. Valid values: ListScalingConfigItemV2.

ConfigItemType String Yes SCALING_STRATEGY

The type of the configuration parameters. Valid values:

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

The region ID of the instance. You can call DescribeRegions Interface 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 scaling group ID.

ResourceGroupId String No rg-acfmv6jutt6****

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

Limit Integer No 0

Abandoned Field.

PageNumber Integer No 1

The number of the page to return.

PageSize Integer No 100

The number of records on each page.

CurrentSize Integer No 0

Abandoned Field.

PageCount Integer No 0

Abandoned Field.

OrderField String No id

Abandoned Field.

OrderMode String No desc

Abandoned Field.

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

The information about the configuration items. The information varies with the configuration items type.

ConfigItemType String SCALING_STRATEGY

The type of the configuration parameters.

ScalingConfigItemBizId String SSB-B1AC1532C218****

configuration items ID.

ScalingGroupBizId String SGB-84314D112C67****

The ID of the scaling group.

NextToken String None

Abandoned Field.

PageNumber Integer 1

The number of the page to return.

PageSize Integer 100

The number of records on each page.

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

The ID of the request.

TotalCount Integer 100

The total number of entries 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"
            }
        ]
     }
}