Menetapkan 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 dari 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 hanya dapat menentukan ENI dan instans kontainer elastis sebagai server backend untuk instans CLB berkinerja-tinggi.
Contoh:
Catatan
Anda hanya dapat menambahkan server backend yang sedang 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 |
ID instans CLB. |
lb-bp1qjwo61pqz3a****** |
| RequestId |
string |
ID permintaan. |
365F4154-92F6-4AE4-92F8-7F****** |
| BackendServers |
object |
||
| BackendServer |
array<object> |
Server backend. |
|
|
object |
|||
| Type |
string |
Jenis server backend. Nilai yang valid:
|
eni |
| Weight |
string |
Bobot server backend. |
100 |
| Description |
string |
Deskripsi server backend. |
The description of the backend server. |
| ServerId |
string |
ID kelompok server. |
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.