CreateVServerGroup_负载均衡_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.

流控信息

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

授权信息

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

具体说明如下:展开详情

操作访问级别资源类型条件关键字关联操作
slb:CreateVServerGroup
Create
Instance
acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}
LoadBalancer
acs:slb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}
slb:tag
slb:tag
slb:tag

请求参数

字段名称字段详情
Tagarray<object>

标签列表。

子级条数 <= 20
RegionIdstring

传统型负载均衡地域 ID。

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

传统型负载均衡实例 ID。

示例值:lb-bp1qjwo61pqz3ahl******参考取值来源:
    CreateLoadBalancer
    DescribeLoadBalancers
VServerGroupNamestring

虚拟服务器组名称。展开详情

示例值:Group1参考取值来源:
    DescribeVServerGroups
    SetVServerGroupAttribute
BackendServersstring

要添加的后端服务器列表,包含以下参数:展开详情

示例值:[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }]参考取值来源:
    SetBackendServers
    AddBackendServers
    RemoveBackendServers
    ModifyVServerGroupBackendServers

返回参数

字段名称字段详情
VServerGroupIdstring

后端服务器组 ID。

示例值:rsp-cige6******
RequestIdstring

请求 ID。

示例值:9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C
BackendServersobject

返回示例

错误码

全局错误码
HTTP 状态码错误码错误信息操作
400
LBNotSupportIpv6Backend
The specified loadbalancer does not support ipv6 backend.诊断
400
Mismatched.ZoneId
The zone of the server is not matched with the cloud box loadbalancer.诊断
400
InvalidBackendServers.ServerIpConflict
%s.诊断
400
OperationUnsupported.CreateVServerGroup
This type of backend server is not allowed to attached to singleTunnel or anyTunnel lb.诊断
400
IncorrectStatus.RSByPassToas
%s.诊断
400
BackendServer.InvalidType
The specified Type is invalid.诊断
400
BackendServer.ServerRegionIdNotEqual
The specified ServerRegionId must be equal.诊断
400
OperationFailed.InvalidCen
The cen related with this loadbalancer is invalid.诊断
400
IncorrectStatus.CenNotAssociated
The action is invalid because the loadbalancer is not associated with cen.诊断
400
InvalidBackendServers.MissingCenBandWidth
The bandwidth is missing between loadbalancer and backendServers in cen.诊断
400
InvalidBackendServers.VpcNotInCen
The BackendServers is not in the cen associated with the loadbalancer.诊断
400
InvalidServerId.NotExist
The specified ServerId is not exist.诊断
400
MissingParameter.ServerRegionId
The parameter ServerRegionId is required.诊断
400
MissingParameter.VbrId
The parameter VbrId is required.诊断
400
InvalidParameter.ServerRegionId
The parameter ServerRegionId is invalid for crossborder.诊断
400
InvalidVbrId.NotInCen
The VbrId is not in the cen associated with the loadbalancer.诊断
400
InvalidParameter.ZoneNotSupport
The zone does not support the parameter %s.诊断
400
NetworkConflict
%s.诊断
400
InvalidParam.TagValue
%s.诊断
400
InvalidParam.TagKey
%s.诊断
400
SizeLimitExceeded.Tag
%s.诊断
400
MissingParam.TagKey
The param MissingParam.TagKey is missing.诊断
400
VpcSystemBusy
Invoke vpc system busy, please retry later.诊断
400
OperationFailed.Endpoint
The operation failed because of the RegionId is unavailable in this endpoint.诊断
403
UnauthorizedRegion
The specified region of is not authorized.诊断

变更历史

变更时间变更内容概要操作
2025-02-14
新增错误码403
2024-08-26
变更错误码400
2023-09-08
变更错误码400
2023-06-02
变更请求参数Tag
2021-10-13
变更错误码400

相关示例

对默认服务器组、主备服务器组、虚拟服务器组进行创建、更新和查询操作
2021-11-16