AddServersToServerGroup_网关型负载均衡_API文档

插件下载了解更多
VS Code 插件
安装插件之前,确保已安装 VS Code安装插件之前,确保已安装 VS Code
Alibaba Cloud Developer Toolkit is a collection of extensions that can help access Alibaba Cloud services in Visual Studio Code.
JetBrains 插件
安装插件之前,确保已安装 JetBrains IDE安装插件之前,确保已安装 JetBrains IDE
The Alibaba Cloud Developer Toolkit for JetBrains makes it easier to access Alibaba Cloud services.

接口说明

AddServersToServerGroup 接口属于异步接口,即系统返回一个请求 ID,但该后端服务器尚未添加成功,系统后台的添加任务仍在进行。

  1. 您可以调用 ListServerGroups 查询服务器组的状态:
  • 当服务器组处于 Configuring 状态时,表示服务器组正在变配中。
  • 当服务器组处于 Available 状态时,表示服务器组运行中。
  1. 您可以调用 ListServerGroupServers 查询后端服务器的状态:
  • 当后端服务器处于 Adding 状态时,表示后端服务器正在加入服务器组。
  • 当后端服务器处于 Available 状态时,表示后端服务器运行中。

流控信息

请求速率为200/60(s)。

授权信息

如下是此API对应的授权信息,用于RAM权限策略语句的Action元素中,为RAM用户或RAM角色授予调用此API的权限。请通过 RAM 访问控制设置,使用方法可参考访问控制帮助文档

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
gwlb:AddServersToServerGroup
Create
ServerGroup
acs:gwlb:{#regionId}:{#accountId}:servergroup/{#ServerGroupId}
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
NetworkInterface
acs:ecs:{#regionId}:{#accountId}:eni/{#ServerId}
ContainerGroup
acs:eci:{#regionId}:{#accountId}:containergroup/{#ServerId}

请求参数

字段名称字段详情
ServerGroupIdstring

服务器组 ID。

示例值:sgp-atstuj3rtoptyui****参考取值来源:
    ListServerGroups
    CreateServerGroup
Serversarray<object>

后端服务器列表。展开详情

子级条数 <= 200
DryRunboolean

是否只预检此次请求,取值:展开详情

示例值:false
ClientTokenstring

客户端 Token,用于保证请求的幂等性。展开详情

示例值:123e4567-e89b-12d3-a456-42665544****

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

示例值:54B48E3D-DF70-471B-AA93-08E683A1B45

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Conflict.Server
The %s [%s] is conflict.诊断
400
Mismatch.ServerType
The %s is mismatched for %s and %s.诊断
400
ResourceInUse.IP
The specified resource of %s is in use.诊断
400
IllegalParam.ServerIp
The param of %s is illegal.诊断
400
IllegalParam.EcsNetworkType
The param of %s is illegal.诊断
400
DuplicatedParam.Server
The param of %s is duplicated.诊断
400
ResourceInUse.Eni
The specified resource of %s is in use.诊断
400
IncorrectStatus.Eni
The status of %s [%s] is incorrect.诊断
400
IllegalParam.IP
The param of %s is illegal.诊断
400
Mismatch.IP
The %s is mismatched for %s and %s.诊断
400
Mismatch.VpcId
The %s is mismatched for %s and %s.诊断
400
QuotaExceeded.ServerGroupServersNum
The quota of %s is exceeded for resource %s, usage %s/%s.诊断
400
QuotaExceeded.ServerGroupAzServersNum
The quota of %s is exceeded for resource %s, usage %s/%s.诊断
400
IncorrectStatus.ServerGroup
The status of %s [%s] is incorrect.诊断
404
ResourceNotFound.Eni
The specified resource of %s is not found.诊断
404
ResourceNotFound.Eci
The specified resource of %s is not found.诊断
404
ResourceNotFound.ServerGroup
The specified resource of %s is not found.诊断
404
ResourceNotFound.Ecs
The specified resource of %s is not found.诊断

变更历史

变更时间变更内容概要操作
2024-11-14
变更错误码400
变更错误码404
变更请求参数Servers

相关示例