Arka uç sunucu ağırlığını ayarlar.
Try it now
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:SetBackendServers |
update |
instance
*loadbalancer
|
|
None |
Request parameters
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
Classic Load Balancer (CLB) örneğinin bölge kimliği. |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
Classic Load Balancer (CLB) örneğinin kimliği. |
lb-bp1qjwo61pqz3a****** |
| BackendServers |
string |
No |
Eklenecek arka uç sunucuların listesi. Liste aşağıdaki parametreleri içerir:
Not
Yalnızca performans garantili örnekler, eni ve eci türündeki arka uç sunucuların eklenmesini destekler.
Örnekler:
Not
Yalnızca çalışır durumdaki arka uç sunucular bir Server Load Balancer örneğine eklenebilir. Her çağrıda en fazla 20 arka uç sunucu ekleyebilirsiniz. |
[{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "192.168.**.**", "Description":"test-112" },{ "ServerId": "eni-xxxxxxxxx", "Weight": "100", "Type": "eni", "ServerIp": "172.166.**.**", "Description":"test-113" }] |
Response elements
|
Element |
Type |
Description |
Example |
|
object |
|||
| LoadBalancerId |
string |
Classic Load Balancer (CLB) örneğinin kimliği. |
lb-bp1qjwo61pqz3a****** |
| RequestId |
string |
İstek kimliği. |
365F4154-92F6-4AE4-92F8-7F****** |
| BackendServers |
object |
||
| BackendServer |
array<object> |
Arka uç sunucuların listesi. |
|
|
object |
Arka uç sunucuların listesi. |
||
| Type |
string |
Arka uç sunucunun sunucu türü. Geçerli değerler:
|
eni |
| Weight |
string |
Arka uç sunucunun ağırlığı. |
100 |
| Description |
string |
Arka uç sunucunun açıklaması. |
The description of the backend server. |
| ServerId |
string |
Arka uç sunucunun kimliği. |
eni-hhshhs**** |
Examples
Success response
JSON format
{
"LoadBalancerId": "lb-bp1qjwo61pqz3a******",
"RequestId": "365F4154-92F6-4AE4-92F8-7F******",
"BackendServers": {
"BackendServer": [
{
"Type": "eni",
"Weight": "100",
"Description": "The description of the backend server.",
"ServerId": "eni-hhshhs****"
}
]
}
}
Error codes
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Mismatched.ZoneId | The zone of the server is not matched with the cloud box loadbalancer. |
See Error Codes for a complete list.
Release notes
See Release Notes for a complete list.