You need to enable JavaScript to run this app.
导航
EnableScalingGroup - 启用一个伸缩组
最近更新时间:2025.03.03 14:34:53首次发布时间:2022.05.13 10:42:44

启动弹性伸缩组,操作说明和注意事项请参见启用伸缩组

调试

请求参数

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

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

EnableScalingGroup

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

Version
String

2020-01-01

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

ScalingGroupId
String

scg-ybmssdnnhn5pkgyd****

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

返回参数

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

参数
类型
示例值
描述
ScalingGroupId
String

scg-ybmssdnnhn5pkgyd****

伸缩组ID。

请求示例

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


返回示例

{
  "ResponseMetadata": {
    "RequestId": "2024050717344620200612623946F5B5",
    "Version": "2020-01-01",
    "Service": "auto_scaling",
    "Region": "cn-beijing"
  },
  "Result": {
    "ScalingGroupId": "scg-ybmssdnnhn5pkgyd****"
  }
}

错误码

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

状态码
错误码
错误信息
说明
400
InvalidScalingGroup.InvalidStatus

The specified ScalingGroup is not in the correct status.

指定的伸缩组当前状态不支持该操作。

400
MissingParameter.ScalingGroupId

The required parameter ScalingGroupId is not supplied.

伸缩组ID不能为空。

400
InvalidLaunchTemplateId.VersionMismatch

The specified LaunchTemplateId [%s] and LaunchTemplateVersion [%s] are mismatched.

指定的启动模版ID和版本不匹配。

400
MissingParameter.ScalingConfigurationOrLaunchTemplate

The parameters ScalingConfiguration and LaunchTemplate can't be both empty.

伸缩配置和启动模版不能同时为空。

400
MissingParameter.LaunchTemplateImageId

The required parameter LaunchTemplate ImageId is not supplied.

指定启动模版中镜像ID不能为空。

400
MissingParameter.LaunchTemplateInstanceType

The required parameter LaunchTemplate InstanceType is not supplied.

指定启动模版的实例规格不能为空。

400
InvalidLaunchTemplateVolumeTypes.Mismatch

The specified LaunchTemplate VolumeTypes are mismatched.

指定启动模版的磁盘类型不匹配。

404
InvalidScalingGroupId.NotFound

The specified ScalingGroup [%s] does not exist.

指定的伸缩组不存在。

404
InvalidLaunchTemplateImageId.NotFound

The specified LaunchTemplate ImageId does not exist.

指定启动模版的镜像ID不存在。

500
InternalError

An internal error has occurred.

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