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.

流控信息

请求速率为200/60(s)。更多流控信息,请前往配额中心查看

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
nlb:AddServersToServerGroup
Create
ServerGroup
acs:nlb:{#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
    UpdateServerGroupAttribute
Serversarray<object>

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

子级条数 <= 200
RegionIdstring

网络型负载均衡实例所在的地域 ID。 展开详情

示例值:cn-hangzhou参考取值来源:
    DescribeRegions
    SetHdMonitorRegionConfig
DryRunboolean

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

示例值:false
ClientTokenstring

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

示例值:123e4567-e89b-12d3-a456-426655440000

返回参数

字段名称字段详情
RequestIdstring

请求 ID。

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

服务器组 ID。

示例值:sgp-atstuj3rtoptyui****
JobIdstring

异步任务 ID。

示例值:72dcd26b-f12d-4c27-b3af-18f6aed5****

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
Conflict.Lock
The Lock [%s] is conflict.诊断
400
IllegalParam.IP
The param of IP is illegal.诊断
400
QuotaExceeded.QuotaInsufficient
The quota of %s is exceeded, usage %s/%s.诊断
400
SystemBusy
System is busy, please try again later.诊断
400
DuplicatedParam.Server
The param of Server is duplicated.诊断
400
IncorrectStatus.serverGroup
The status of servergroup [%s] is incorrect.诊断
400
Mismatch.VpcId
The VpcId is mismatched for %s and %s.诊断
400
Mismatch.ServerType
The ServerType is mismatched for %s and %s.诊断
400
IllegalParam.RSPortConflictWithServerGroup
The param of RSPortConflictWithServerGroup is illegal.诊断
400
TagInvokeError
listTagsByResourceIds: InvalidResourceId.NotFound : The specified ResourceIds are not found in our records.诊断
400
ResourceInUse.IP
The specified resource of IP is in use.诊断
400
IllegalParam
The param of %s is illegal.诊断
400
MissingParam.%s
The parameter of %s is missing.诊断
400
IllegalParam.description
The parameter description of server is illegal.诊断
400
MissingParam.IP
The param of IP is missing.诊断
400
OperationDenied.ServerGroupNotSupportIpv6
The operation is not allowed because of ServerGroupNotSupportIpv6.诊断
400
IncorrectStatus.Eni
Eni status is invalid.诊断
400
IdempotenceSignatureMismatch
The idempotence token of request is same with the prev one, but the signature is different.诊断
400
Throttling.User
Request was denied due to api flow control.诊断
403
Forbidden.NoPermission
Authentication is failed for NoPermission.诊断
404
ResourceNotFound.serverGroup
The specified resource of serverGroup is not found.诊断
404
ResourceNotFound.Eci
The specified resource of Eci is not found.诊断
404
ResourceNotFound.Ecs
The specified resource of Ecs is not found.诊断
404
ResourceNotFound.Eni
The specified resource Eni is not found.诊断

变更历史

变更时间变更内容概要操作
2024-04-02
变更错误码404
2024-01-29
变更错误码400
2024-01-24
变更错误码400
2024-01-22
变更错误码400
2023-10-30
变更错误码400
2023-10-07
变更错误码400
  • 1
  • 2
  • 10 条/页

相关示例