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

弹性伸缩

复制全文
下载 pdf
伸缩组
DetachServerGroups - 移除负载均衡后端服务器组
复制全文
下载 pdf
DetachServerGroups - 移除负载均衡后端服务器组
为伸缩组解关联一个或多个负载均衡后端服务器组,操作说明和注意事项请参见配置伸缩组绑定的负载均衡。​
调试​
API Explorer
您可以通过 API Explorer 在线发起调用,无需关注签名生成过程,快速获取调用结果。
​
请求参数​
下方仅列出该接口特有的请求参数和部分公共参数。更多信息请见公共参数。​
Action string 必选 示例值:DetachServerGroups​
要执行的操作,取值:DetachServerGroups。​
​
Version string 必选 示例值:2020-01-01​
API的版本,取值:2020-01-01。​
​
ScalingGroupId string 必选 示例值:scg-ybmssdnnhn5pkgyd****​
伸缩组的ID。您可以调用DescribeScalingGroups查询伸缩组ID。​
​
ClientToken string 可选 示例值:333456899ff****​
保证请求幂等性。由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。取值:​
仅支持ASCII字符,且不能超过64个字符。​
​
ServerGroupAttributes.N.Port integer[] 必选 示例值:80​
负载均衡后端服务器组中服务器的端口号。​
  • 参数 - N:表示服务器组的序号,取值 1 ~ 20。​
  • 取值 - Port:端口号,取值1 ~ 65535。​
  • 多个服务器组的端口号之间用&分隔。​
​
ServerGroupAttributes.N.Type string[] 可选 示例值:CLB​
负载均衡服务器组类型:​
  • 参数 - N:表示负载均衡服务器组的序号,取值 1 ~ 40。单类型的服务器组则最多可选择20个。​
  • 参数 - Type:表示负载均衡服务器组的类型。​
  • ALB:应用型负载均衡。​
  • CLB:传统型型负载均衡。​
  • 多个服务器组的ID之间用&分隔。​
​
ServerGroupAttributes.N.ServerGroupId string[] 必选 示例值:rsp-12b2z5fnxvhts17q7y2fj****​
负载均衡后端服务器组的ID。您可以调用DescribeScalingGroups接口查询指定伸缩组已关联的后端服务器组ID。​
  • 参数 - N:表示服务器组的序号,取值 1 ~ 5。​
  • 参数 - ServerGroupId:服务器组ID。​
  • 多个服务器组的ID之间用&分隔。​
​
​
​
返回参数​
下方仅列出本接口特有的返回参数。更多信息请参见返回结构。​
ScalingGroupId string 示例值:scg-ybmssdnnhn5pkgyd****​
伸缩组ID。​
​
​
​
请求示例​
​
GET /?Action=DetachServerGroups&ScalingGroupId=scg-ybmssdnnhn5pkgyd****&Version=2020-01-01 HTTP/1.1​
Host: auto-scaling.cn-beijing.volcengineapi.com​
X-Date: 20240507T094136Z​
Authorization: HMAC-SHA256 Credential=Adfks******wekfwe/20240507/cn-beijing/auto_scaling/request, SignedHeaders=host;x-date, Signature=47a7d934ff7b37c03938******cd7b8278a40a1057690c401e92246a0e41085f​
​
​
​
返回示例​
​
{​
"ResponseMetadata": {​
"RequestId": "20240507174143116112230197538F9E",​
"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​
MissingParameter.ServerGroupAttributes​
The specified ServerGroupAttributes is not supplied.​
后端服务器组属性不能为空。​
400​
InvalidServerGroupAttributeType​
The required parameter ServerGroupAttributeType is invalid.​
指定的后端服务组类型不合法。​
404​
InvalidScalingGroupId.NotFound​
The specified ScalingGroup [%s] does not exist.​
指定的伸缩组不存在。​
404​
InvalidServerGroup.NotFound​
The specified ServerGroup [%s] does not exist.​
指定的后端服务器组不存在。​
500​
InternalError​
An internal error has occurred.​
内部错误,请重试。如果多次尝试失败,请提交工单。​
​
​
最近更新时间:2025.08.27 19:18:32
这个页面对您有帮助吗?
有用
有用
无用
无用