调用DescribeScalingConfigItemV2,查询伸缩配置项详情。

调试

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

请求参数

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

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

ConfigItemType String SCALING_RULE

配置项类型。取值如下:

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

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

ScalingConfigItemId String SRB-0F2A154CFD4D****

伸缩配置项ID。您可以调用ListScalingConfigItemV2查看伸缩配置项ID。

ScalingGroupBizId String SGB-8E52011DD26C****

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

ResourceGroupId String rg-acfmv6jutt6****

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

返回数据

名称 类型 示例值 描述
ConfigItemInformation String { "ruleName": "按负载触发", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "coolDownTime": 100, "ruleParam": { "metricName": "YarnFreeCores", "period": 10, "statistics": "xxx", "comparisonOperator": "\u003e\u003d", "threshold": 10, "evaluationCount": 1 }, "adjustmentValue": 1, "ruleType": "BY_LOAD", "configItemType": "SCALING_RULE" }

配置项信息。配置项类型不同信息不同。取值如下:

  • SCALING_RULE:
    • 按负载触发,该字段返回示例为:{ "ruleName": "按负载触发", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "coolDownTime": 100, "ruleParam": { "metricName": "YarnFreeCores", "period": 10, "statistics": "xxx", "comparisonOperator": "\u003e\u003d", "threshold": 10, "evaluationCount": 1 }, "adjustmentValue": 1, "ruleType": "BY_LOAD", "configItemType": "SCALING_RULE" }
    • 定时调度,该字段返回示例为: { "ruleName": "定时调度", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "coolDownTime": 100, "ruleParam": { "recurrenceType": "Daily", "recurrenceValue": "1", "recurrenceEndTime": "2020-07-22T03:01Z", "launchTime": "2020-07-22T03:07Z", "launchExpirationTime": 0 }, "adjustmentValue": 1, "ruleType": "SCHEDULED", "configItemType": "SCALING_RULE" }
    • 定点执行,该字段返回示例为: { "ruleName": "定点执行", "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY", "coolDownTime": 100, "ruleParam": { "launchTime": "2020-07-22T03:09Z", "launchExpirationTime": 1 }, "adjustmentValue": 1, "ruleType": "BY_TIME_ONCE", "configItemType": "SCALING_RULE" }
  • SCALING_STRATEGY: { "spotStrategy": "NoSpot", "spotPriceLimits": 0.01, "instanceTypeList":[],"sysDiskCategory": "cloud_essd", "sysDiskSize": { "value": 40.0, "unit": "GIGABYTE" }, "dataDiskCategory": "cloud_essd", "dataDiskSize": { "value": 40.0, "unit": "GIGABYTE" }, "dataDiskCount": 4, "scalingMaxSize": 1, "scalingMinSize": 1, "defaultCoolDownTime": 0, "scalingTimeoutPolice": { "timeoutPolicy": "ROLLBACK" }, "nodeOfflineMode": "NORMAL", "nodeOfflineModeParam": { "timeoutMs": 0 }, "triggerMode": "Scheduled", "privatePoolOptionsMatchCriteria": "Target", "privatePoolOptionsId": "crp-bp1e4wcvoucrish5vph7", "multiAvailablePolicy": "PRIORITY", "multiAvailablePolicyParam": { "onDemandBaseCapacity": 0, "onDemandPercentageAboveBaseCapacity": 0, "spotInstanceRemedy": 0, "spotInstance": false }, "configItemType": "SCALING_STRATEGY" }
ConfigItemType String SCALING_RULE

配置项类型。取值如下:

  • SCALING_RULE:伸缩规则
  • SCALING_STRATEGY:伸缩策略
RequestId String 6C96FD2C-95A0-4C03-8A19-7D84A4BAAA1E

请求ID。

ScalingConfigItemBizId String SRB-0F2A154CFD4D****

伸缩配置项ID。

ScalingGroupBizId String SGB-0F2A154CFD4D****

伸缩组ID。

示例

请求示例

http(s)://[Endpoint]/?Action=DescribeScalingConfigItemV2
&ConfigItemType=SCALING_RULE
&RegionId=cn-hangzhou
&ScalingConfigItemId=SCB-8E52011DD26123****
&ScalingGroupBizId=SGB-8E52011DD26C****
&<公共请求参数>

正常返回示例

XML格式

<RequestId>6C96FD2C-95A0-4C03-8A19-7D84A4BAAA1E</RequestId>
<ScalingConfigItemBizId>SRB-0F2A154CFD4D****</ScalingConfigItemBizId>
<ScalingGroupBizId>SGB-0F2A154CFD4D****</ScalingGroupBizId>
<ConfigItemInformation>{   "ruleName": "按负载触发",   "adjustmentType": "QUANTITY_CHANGE_IN_CAPACITY",   "coolDownTime": 100,   "ruleParam": {     "metricName": "YarnFreeCores",     "period": 10,     "statistics": "xxx",     "comparisonOperator": "\u003e\u003d",     "threshold": 10,     "evaluationCount": 1   },   "adjustmentValue": 1,   "ruleType": "BY_LOAD",   "configItemType": "SCALING_RULE" }</ConfigItemInformation>
<ConfigItemType>SCALING_RULE</ConfigItemType>

JSON格式

{
    "RequestId":"6C96FD2C-95A0-4C03-8A19-7D84A4BAAA1E",
    "ScalingConfigItemBizId":"SRB-0F2A154CFD4D****",
    "ScalingGroupBizId":"SGB-0F2A154CFD4D****",
    "ConfigItemInformation":"{   \"ruleName\": \"按负载触发\",   \"adjustmentType\": \"QUANTITY_CHANGE_IN_CAPACITY\",   \"coolDownTime\": 100,   \"ruleParam\": {     \"metricName\": \"YarnFreeCores\",     \"period\": 10,     \"statistics\": \"xxx\",     \"comparisonOperator\": \"\\u003e\\u003d\",     \"threshold\": 10,     \"evaluationCount\": 1   },   \"adjustmentValue\": 1,   \"ruleType\": \"BY_LOAD\",   \"configItemType\": \"SCALING_RULE\" }",
    "ConfigItemType":"SCALING_RULE"
}