You need to enable JavaScript to run this app.
文档中心
弹性伸缩

弹性伸缩

复制全文
下载 pdf
伸缩配置
EnableScalingConfiguration - 启用一个伸缩配置
复制全文
下载 pdf
EnableScalingConfiguration - 启用一个伸缩配置
将指定伸缩配置绑定到伸缩组。​
请求说明​
  • 伸缩配置所选可用区需为伸缩组子网所在可用区,否则后续将无法成功扩容实例。​
  • 一个伸缩组同一时间只能绑定一个伸缩配置。新的伸缩配置绑定伸缩组后,仅下一次创建实例时使用新配置,不会影响伸缩组中已存在的实例。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:EnableScalingConfiguration​
要执行的操作,取值:EnableScalingConfiguration。​
​
Version string 必选 示例值:2020-01-01​
API的版本,取值:2020-01-01。​
​
ScalingGroupId string 必选 示例值:scg-ybmssdnnhn5pkgyd****​
伸缩组ID。您可以调用DescribeScalingGroups查询伸缩组ID。​
​
ScalingConfigurationId string 必选 示例值:scc-ybmt16auaugh9zfy****​
伸缩配置ID。您可以调用DescribeScalingConfigurations接口查询伸缩配置ID。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
ScalingConfigurationId string 示例值:scc-ybmt16auaugh9zfy****​
伸缩配置ID。​
​
​
​
请求示例​
​
GET /?Action=EnableScalingConfiguration&ScalingConfigurationId=scc-ybmt16auaugh9zfy****&ScalingGroupId=scg-ybmssdnnhn5pkgyd****&Version=2020-01-01 HTTP/1.1​
Host: auto-scaling.cn-beijing.volcengineapi.com​
X-Date: 20240507T095605Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240507/cn-beijing/auto_scaling/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20240507175620023114149131892215",​
"Version": "2020-01-01",​
"Service": "auto_scaling",​
"Region": "cn-beijing"​
},​
"Result": {​
"ScalingConfigurationId": "scc-ybmt16auaugh9zfy****"​
}​
}​
​
错误码​
下表为您列举了该接口与业务逻辑相关的错误码。公共错误码请参见公共错误码文档。​
​
状态码​
错误码​
错误信息​
说明​
400​
InvalidScalingGroup.InvalidStatus​
The specified ScalingGroup is not in the correct status.​
指定的伸缩组当前状态不支持该操作。​
400​
MissingParameter.ScalingGroupId​
The required parameter ScalingGroupId is not supplied.​
伸缩组ID不能为空。​
400​
MissingParameter.ScalingConfigurationId​
The required parameter ScalingConfigurationId is not supplied.​
伸缩配置ID不能为空。​
400​
InvalidScalingConfiguration.ScalingGroupMismatch​
The specified ScalingConfiguration [%s] does not match ScalingGroup [%s].​
指定的伸缩配置和伸缩组不匹配。​
400​
InvalidSubnetIdIpv6.Malformed​
The specified Subnet %s Ipv6 is unsupported.​
指定子网的IPv6不合法。​
400​
InvalidConfigInstanceType​
The ScalingGroup InstanceType [%s] is not in Configuration InstanceTypes.​
伸缩组实例规格不在伸缩配置中。​
400​
InvalidDeploymentSetId.Malformed​
The specified DeploymentSetId is malformed.​
指定的部署集ID不合法​
404​
InvalidScalingGroupId.NotFound​
The specified ScalingGroup [%s] does not exist.​
指定的伸缩组不存在。​
404​
InvalidScalingConfiguration.NotFound​
The specified ScalingConfiguration [%s] does not exist.​
指定的伸缩配置不存在。​
404​
InvalidSubnetId.NotFound​
The specified SubnetId [%s] does not exist.​
指定的子网ID不存在。​
404​
InvalidHpcCluster.NotFound​
The specified HpcCluster does not exist.​
指定的高性能计算集群不存在。​
404​
InvalidInstanceType.NotFound​
The specified InstanceType [%s] does not exist.​
指定的实例规格不存在。​
404​
InvalidImageId.NotFound​
The specified ImageId does not exist.​
指定的镜像ID不存在。​
404​
InvalidProject.NotFound​
The specified Project does not exist.​
指定的项目不存在。​
404​
InvalidSecurityGroupId.NotFound​
The specified SecurityGroupId [%s] does not exist.​
指定的安全组ID不存在。​
404​
InvalidKeyPair.NotFound​
The specified KeyPair does not exist.​
指定的密钥对不存在。​
404​
InvalidDeploymentSetId.NotFound​
The specified DeploymentSetId does not exist.​
指定的部署集不存在​
404​
InvalidSupportVolume.NotFound​
The specified Support volume type does not exist.​
指定的云盘类型不支持​
412​
OperationDenied.ResourceLocked​
The specified operation is denied as your resource is locked for another operation.​
指定的操作被拒绝,因为您的资源已被其他操作锁定。​
412​
InvalidInstanceTypeId.DeploymentSetIdMismatch​
The specified instance type [%s] and deployment set id do not match.​
实例规格不支持加入部署集​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2026.06.23 13:57:45
这个页面对您有帮助吗?
有用
有用
无用
无用