You need to enable JavaScript to run this app.
导航
DescribeScalingConfigurations - 查询伸缩配置列表
最近更新时间:2025.03.03 14:34:53首次发布时间:2022.05.13 10:42:44
我的收藏
有用
有用
无用
无用

查询伸缩配置的信息。如果不存在匹配的伸缩配置,则自动忽略,继续查询其他伸缩配置。

调试

请求参数

下表仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数

参数
类型
是否必填
示例值
描述
Action
String

DescribeScalingConfigurations

要执行的操作,取值:DescribeScalingConfigurations。

Version
String

2020-01-01

API的版本,取值:2020-01-01。

ScalingGroupId
String

scg-ybmssdnnhn5pkgyd****

伸缩组的ID。您可以调用DescribeScalingGroups查询伸缩组ID。

ScalingConfigurationIds.N
Array of String

scc-ybmt16auaugh9zfy****

伸缩配置的ID。取值:

  • 参数 - N:表示伸缩配置的序号,取值:1~10。
PageNumber
Integer

1

列表的页码,默认值为1。

PageSize
Integer

10

分页查询时每页的行数,取值:1~100。
默认值:10。

ScalingConfigurationNames.N
Array of String

scaling-config-1

伸缩配置的名称。取值:

  • 参数 - N:表示伸缩配置的序号,取值:1~10。

返回参数

下表仅列出本接口特有的返回参数。更多信息请参见返回结构

参数
类型
示例值
描述
PageNumber
Integer

1

当前页数。

PageSize
Integer

10

当前分页的行数。

ScalingConfigurations
Array of Object

--

符合条件的伸缩配置信息。

TotalCount
Integer

20

符合条件的伸缩配置总数。

请求示例

GET /?Action=DescribeScalingConfigurations&Version=2020-01-01 HTTP/1.1
Host: open.volcengineapi.com
X-Date: 20240507T095413Z
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240507/cn-beijing/auto_scaling/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f


返回示例

{
  "ResponseMetadata": {
    "RequestId": "2024050717541713422813223986CA3B",
    "Version": "2020-01-01",
    "Service": "auto_scaling",
    "Region": "cn-beijing"
  },
  "Result": {
    "PageNumber": 1,
    "PageSize": 10,
    "ScalingConfigurations": [
      {
        "Eip": {
          "Bandwidth": 1,
          "BillingType": "PostPaidByBandwidth",
          "ISP": "BGP",
          "BandwidthPackageId": "bwp-2zeo05qre24nhrqpy****",
          "SecurityProtectionInstanceId": 193,
          "SecurityProtectionTypes": [
            "AntiDDoS_Enhanced"
          ]
        },
        "HostName": "instance-host-name",
        "ImageId": "image-ybmihi8jc7l8j1tz****",
        "InstanceDescription": "云服务器实例",
        "CreatedAt": "2022-04-10T18:29:38+08:00",
        "ScalingConfigurationName": "scaling-config-test\t",
        "SecurityGroupIds": [
          "sg-3ti78x9h8t4bw*****"
        ],
        "LifecycleState": "Active",
        "SecurityEnhancementStrategy": "Active",
        "Volumes": [
          {
            "Size": 100,
            "VolumeType": "ESSD_PL0",
            "DeleteWithInstance": true
          }
        ],
        "ZoneId": "cn-beijing-a",
        "UserData": "ZWNobyBoZWxsbyBlY3Mh",
        "UpdatedAt": "2022-04-14T18:29:38+08:00",
        "ScalingConfigurationId": "scc-ybmt16auaugh9zfy****",
        "KeyPairName": "kp-test-123\t",
        "InstanceTypes": [
          "ecs.c1.xlarge"
        ],
        "InstanceName": "instance-1",
        "ScalingGroupId": "scc-ybmt16auaugh9zfy****",
        "HpcClusterId": "hpcCluster-ycdj7d9ios38dfny****",
        "ProjectName": "default",
        "InstanceChargeType": "PostPaid",
        "SpotStrategy": "NoSpot",
        "Ipv6AddressCount": 0,
        "Tags": [
          {
            "Key": "k1",
            "Value": "v1"
          },
        ],
        "InstanceTypeOverrides": [
          {
            "InstanceType": "ecs.g2i.large",
            "PriceLimit": 0.001
          }
        ]
      },
    ],
    "TotalCount": 20
  }
}

错误码

下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。

状态码
错误码
错误信息
说明
400
LimitExceeded.ScalingConfigurationIds

You've reached the limit on the number of ScalingConfigurationIds.

已达到伸缩配置ID数量上限。

400
LimitExceeded.ScalingConfigurationNames

You've reached the limit on the number of ScalingConfigurationName.

已达到伸缩配置名称数量上限。

500
InternalError

An internal error has occurred.

内部错误,请重试。如果多次尝试失败,请提交工单。