Tüm Ürünler
Search
Belge Merkezi

:AddVServerGroupBackendServers

Son Güncelleme:Sep 29, 2026

Bir vServer grubuna arka uç sunucular ekler.

Try it now

Try this API in OpenAPI Explorer, no manual signing needed. Successful calls auto-generate SDK code matching your parameters. Download it with built-in credential security for local usage.

Test

RAM authorization

The table below describes the authorization required to call this API. You can define it in a Resource Access Management (RAM) policy. The table's columns are detailed below:

  • Action: The actions can be used in the Action element of RAM permission policy statements to grant permissions to perform the operation.

  • API: The API that you can call to perform the action.

  • Access level: The predefined level of access granted for each API. Valid values: create, list, get, update, and delete.

  • Resource type: The type of the resource that supports authorization to perform the action. It indicates if the action supports resource-level permission. The specified resource must be compatible with the action. Otherwise, the policy will be ineffective.

    • For APIs with resource-level permissions, required resource types are marked with an asterisk (*). Specify the corresponding Alibaba Cloud Resource Name (ARN) in the Resource element of the policy.

    • For APIs without resource-level permissions, it is shown as All Resources. Use an asterisk (*) in the Resource element of the policy.

  • Condition key: The condition keys defined by the service. The key allows for granular control, applying to either actions alone or actions associated with specific resources. In addition to service-specific condition keys, Alibaba Cloud provides a set of common condition keys applicable across all RAM-supported services.

  • Dependent action: The dependent actions required to run the action. To complete the action, the RAM user or the RAM role must have the permissions to perform all dependent actions.

Action

Access level

Resource type

Condition key

Dependent action

slb:AddVServerGroupBackendServers

create

Instance

acs:ecs:{#regionId}:{#accountId}:instance/{#InstanceId}

*LoadBalancer

acs:slb:{#regionId}:{#accountId}:loadbalancer/{#LoadBalancerId}

None None

Request parameters

Parameter

Type

Required

Description

Example

RegionId

string

Yes

Server Load Balancer (SLB) örneğinin bölge kimliği.

cn-hangzhou

VServerGroupId

string

Yes

vServer grubunun kimliği.

rsp-cige6******

BackendServers

string

Yes

Eklemek istediğiniz arka uç sunucular. Aşağıdaki parametreleri yapılandırın:

  • ServerId: Zorunlu. Arka uç sunucunun kimliği. Kimliği bir dize olarak belirtin. Bir Elastic Compute Service (ECS) örneğinin, elastik ağ arabiriminin (ENI) ve elastik konteyner örneğinin kimliğini belirtebilirsiniz. ServerId parametresini bir ENI veya elastik konteyner örneğinin kimliği olarak ayarlarsanız Type parametresini yapılandırmanız gerekir.

  • Weight: Arka uç sunucunun ağırlığı. Geçerli değerler: 0 ile 100 arası. Varsayılan değer: 100. Bir arka uç sunucunun ağırlığını 0 olarak ayarlarsanız, arka uç sunucuya hiçbir istek iletilmez.

  • Description: İsteğe bağlı. Arka uç sunucunun açıklaması. Açıklamayı bir dize olarak belirtin. Açıklama 1 ila 80 karakter uzunluğunda olmalıdır ve harf, rakam, tire (-), eğik çizgi (/), nokta (.) ve alt çizgi (_) içerebilir.

  • Type: Arka uç sunucunun türü. Geçerli değerler:

    • ecs (varsayılan): ECS örneği

    • eni: ENI

    • eci: elastik konteyner örneği

Not

Yalnızca yüksek performanslı SLB örnekleri için ENI'leri ve elastik konteyner örneklerini arka uç sunucu olarak belirtebilirsiniz.

  • ServerIp: Bir ENI'nin veya elastik konteyner örneğinin IP adresi.

  • Port: Arka uç bağlantı noktası.

Örnekler:

  • Bir ECS örneği ekleme:

    [{ "ServerId": "i-xxxxxxxxx", "Weight": "100", "Type": "ecs", "Port":"80","Description":"test-112" }]

  • Bir ENI ekleme:

    [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-112" }]

  • Birden fazla IP adresine sahip bir ENI ekleme:

    [{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-113" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Port":"80","Description":"test-113" }]

  • Bir elastik konteyner örneği ekleme:

    [{ "ServerId": "eci-xxxxxxxxx", "Weight": "100", "Type": "eci", "ServerIp": "192.168.**.**", "Port":"80","Description":"test-114" }]

Not

SLB örneklerine yalnızca çalışan arka uç sunucular ekleyebilirsiniz. Her çağrıda en fazla 20 arka uç sunucu belirtebilirsiniz.

[{ "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" }]

Response elements

Element

Type

Description

Example

object

VServerGroupId

string

vServer grubunun kimliği.

rsp-cige6j******

RequestId

string

İstek kimliği.

9DEC9C28-AB05-4DDF-9A78-6B******

BackendServers

object

BackendServer

array<object>

Arka uç sunucular.

object

Type

string

Arka uç sunucunun türü. Geçerli değerler:

  • ecs (varsayılan): ECS örneği

  • eni: ENI

  • eci: elastik konteyner örneği

eni

Weight

integer

Arka uç sunucunun ağırlığı.

100

Description

string

Arka uç sunucunun açıklaması.

The description of the vServer group.

Port

integer

Arka uç sunucu tarafından kullanılan bağlantı noktası.

70

ServerId

string

ECS örneğinin veya ENI'nin kimliği.

eni-hhshhs****

Examples

Success response

JSON format

{
  "VServerGroupId": "rsp-cige6j******",
  "RequestId": "9DEC9C28-AB05-4DDF-9A78-6B******",
  "BackendServers": {
    "BackendServer": [
      {
        "Type": "eni",
        "Weight": 100,
        "Description": "The description of the vServer group.",
        "Port": 70,
        "ServerId": "eni-hhshhs****"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

400 InvalidBackendServers.ServerIpConflict %s.
400 Mismatched.ZoneId The zone of the server is not matched with the cloud box loadbalancer.
400 OperationUnsupported.AddVServerGroupBackendServers 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 MasterSlaveServerConflict The servers are conflict for MasterSlaveGroup.
400 OperationFailed.ServiceGroupProcessing The specified service group is processing.
400 NetworkConflict %s.
400 SystemBusy The system is busy.
400 SignatureNonceUsed Specified signature nonce was used already.
400 VpcSystemBusy Invoke vpc system busy, please retry later.
400 OperationDeny.LbNotSupportIPv6Server The specified loadbalancer does not support ipv6 server.
400 OperationBusy The operation is busy.
404 ResourceNotFound.vServers The specified enis %s does not exist.
404 ResourceNotFound.Cen The specified resource Cen %s not Exists.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.