Tüm Ürünler
Search
Belge Merkezi

:CreateVServerGroup

Son Güncelleme:Sep 29, 2026

Bir vServer grubu oluşturur ve arka uç sunucuları vServer grubuna 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:CreateVServerGroup

create

Instance

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

*LoadBalancer

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

  • slb:tag
  • slb:tag
  • slb:tag
None

Request parameters

Parameter

Type

Required

Description

Example

Tag

array<object>

No

Etiketler.

object

No

Etiketler.

Key

string

No

N etiketinin anahtarı. N için geçerli değerler: 1 ile 20 arası. Etiket anahtarı boş bir dize olamaz.

Etiket anahtarı en fazla 64 karakter uzunluğunda olabilir ve http:// veya https:// içeremez. Etiket anahtarı aliyun veya acs: ile başlayamaz.

TestKey

Value

string

No

Etiket değeri. N için geçerli değerler: 1 ile 20 arası. Etiket değeri boş bir dize olabilir.

Etiket değeri en fazla 128 karakter uzunluğunda olabilir ve acs: veya aliyun ile başlayamaz. Etiket değeri http:// veya https:// içeremez.

TestValue

RegionId

string

Yes

SLB örneğinin dağıtıldığı bölgenin kimliği.

cn-hangzhou

LoadBalancerId

string

Yes

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

lb-bp1qjwo61pqz3ahl******

VServerGroupName

string

No

vServer grubunun adı.

Ad, 1 ila 80 karakter uzunluğunda olmalıdır ve harf, rakam, tire (-), eğik çizgi (/), nokta (.) ve alt çizgi (_) içerebilir.

Group1

BackendServers

string

No

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, esnek ağ arabiriminin (ENI) veya esnek konteyner örneğinin kimliğini belirtebilirsiniz. ServerId değerini bir ENI veya esnek 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: isteğ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.

    • eni: esnek konteyner örneği.

Not

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

  • ServerIp: ECS örneğinin veya ENI'nin 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 esnek 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. 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-cige6******

RequestId

string

İsteğin kimliği.

9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C

BackendServers

object

BackendServer

array<object>

Arka uç sunucuların listesi.

object

Arka uç sunucular.

Type

string

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

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

  • eni: esnek ağ arabirimi (ENI)

  • eci: esnek konteyner örneği

eni

Weight

integer

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

100

Description

string

vServer grubunun açıklaması.

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-cige6******",
  "RequestId": "9DEC9C28-AB05-4DDF-9A78-6B08EC9CE18C",
  "BackendServers": {
    "BackendServer": [
      {
        "Type": "eni",
        "Weight": 100,
        "Description": "vServer group",
        "Port": 70,
        "ServerId": "eni-hhshhs****"
      }
    ]
  }
}

Error codes

HTTP status code

Error code

Error message

Description

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.

See Error Codes for a complete list.

Release notes

See Release Notes for a complete list.