Menentukan bobot untuk server backend.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:SetBackendServers |
update |
instance
*loadbalancer
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| RegionId |
string |
No |
ID wilayah instans Classic Load Balancer (CLB). |
cn-hangzhou |
| LoadBalancerId |
string |
Yes |
ID instans CLB. |
lb-bp1qjwo61pqz3a****** |
| BackendServers |
string |
No |
Server backend yang ingin Anda tambahkan. Konfigurasikan parameter berikut:
Catatan
Anda dapat menentukan ENI dan Kontainer elastis sebagai server backend hanya untuk instans CLB berkinerja tinggi.
Contoh:
Catatan
Anda hanya dapat menambahkan server backend yang berjalan ke instans CLB. Anda dapat menentukan maksimal 20 server backend dalam setiap panggilan. |
[{ "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" }] |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| LoadBalancerId |
string |
The ID of the CLB instance. |
lb-bp1qjwo61pqz3a****** |
| RequestId |
string |
The request ID. |
365F4154-92F6-4AE4-92F8-7F****** |
| BackendServers |
object |
||
| BackendServer |
array<object> |
The backend servers. |
|
|
object |
|||
| Type |
string |
The type of backend server. Valid values:
|
eni |
| Weight |
string |
The weight of the backend server. |
100 |
| Description |
string |
The description of the backend server. |
The description of the backend server. |
| ServerId |
string |
The ID of the server group. |
eni-hhshhs**** |
Contoh
Respons sukses
JSONformat
{
"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****"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | Mismatched.ZoneId | The zone of the server is not matched with the cloud box loadbalancer. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.