You need to enable JavaScript to run this app.
导航

DetachServerGroups

最近更新时间2024.01.16 14:13:13

首次发布时间2022.05.13 10:42:44

调用 DetachServerGroups 为伸缩组解关联一个或多个负载均衡后端服务器组。

请求参数

名称类型是否必选示例值
描述
ActionStringDetachServerGroups要执行的操作,取值:DetachServerGroups
VersionString2020-01-01API的版本,取值为:2020-01-01。
ScalingGroupIdStringscg-ybmssdnnhn5pkgyd****伸缩组的ID。您可以调用DescribeScalingGroups查询伸缩组ID。

ServerGroupAttributes.N.Type

String

ServerGroupAttributes.1.Type=CLB&ServerGroupAttributes.2.Type=ALB

负载均衡服务器组类型:

  • 参数 - N:表示负载均衡服务器组的序号,取值 1 ~ 40。单类型的服务器组则最多可选择20个。
  • 参数 - Type:表示负载均衡服务器组的类型。
    • ALB:应用型负载均衡。
    • CLB:传统型型负载均衡。
  • 多个服务器组的ID之间用&分隔。

ServerGroupAttributes.N.ServerGroupId

String

ServerGroupAttributes.1.ServerGroupId=rsp-12b2z5fnxvhts17q7y2fj****&ServerGroupAttributes.2.ServerGroupId=rsp-12b2z5fnxvhts17q7y3tf****

负载均衡后端服务器组的ID。您可以调用DescribeScalingGroups接口查询指定伸缩组已关联的后端服务器组ID。

  • 参数 - N:表示服务器组的序号,取值 1 ~ 20。
  • 取值 - ServerGroupId:服务器组ID。
  • 多个服务器组的ID之间用&分隔。

ServerGroupAttributes.N.Port

Integer

ServerGroupAttributes.1.Port=80&ServerGroupAttributes.1.Port=8080

负载均衡后端服务器组中服务器的端口号。

  • 参数 - N:表示服务器组的序号,取值 1 ~ 20。
  • 取值 - Port:端口号,取值1 ~ 65535。
  • 多个服务器组的端口号之间用&分隔。

ClientToken

String

333456899ff****

保证请求幂等性。由客户端自动生成一个参数值,确保不同请求间该参数值唯一,避免当调用API超时或服务器内部错误时,客户端多次重试导致重复性操作。取值:
仅支持ASCII字符,且不能超过64个字符。

返回数据

名称类型示例值描述
ScalingGroupIdStringscg-ybmssdnnhn5pkgyd****伸缩组ID。

请求示例

GET /?Action=DetachServerGroups&ScalingGroupId=scg-ybmssdnnhn5pkgyd****&ServerGroupAttributes.1.ServerGroupId=rsp-12b2z5fnxvhts17q7y2fj****&Version=2020-01-01 HTTP/1.1
Host: open.volcengineapi.com
Region: cn-beijing
Service: auto_scaling

返回示例

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