Menambahkan server backend.
Deskripsi operasi
Batas laju panggilan API: 100 panggilan per detik.
Batas laju panggilan per pengguna: 10 panggilan per detik.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
ens:AddBackendServers |
create |
*Semua Sumber daya.
|
None | None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
Port antarmuka depan yang digunakan oleh instans load balancing. Nilai valid: 1 hingga 65535. |
lb-5qzdmxefgrpxd7oz2mefonvtx |
| BackendServers |
array<object> |
Yes |
Daftar server backend yang akan ditambahkan. Anda dapat menambahkan hingga 20 server backend per pemanggilan. Catatan
Server backend (instans ENS) harus dalam status Berjalan sebelum dapat ditambahkan ke instans load balancing. |
|
|
object |
Yes |
Daftar server backend yang akan ditambahkan. Anda dapat menambahkan hingga 20 server backend per pemanggilan. Catatan
Server backend (instans ENS) harus dalam status Berjalan sebelum dapat ditambahkan ke instans load balancing. |
||
| ServerId |
string |
Yes |
ID instans ENS. |
i-5uf6dwyzch3wly790**** |
| Weight |
integer |
No |
Bobot server backend. Nilai default: 100. Nilai valid: 0 hingga 100. Catatan
Nilai 0 menunjukkan bahwa tidak ada permintaan yang diteruskan ke server backend. |
100 |
| Type |
string |
No |
Tipe server backend. Nilai valid:
Valid values:
|
ens |
| Ip |
string |
No |
Alamat IP server backend. |
192.168.XXX |
| Port |
integer |
No |
Port backend yang digunakan oleh instans load balancing. |
3309 |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
Skema Respons. |
||
| RequestId |
string |
ID permintaan. |
473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E |
| BackendServers |
object |
||
| BackendServer |
array<object> |
Daftar server backend yang akan ditambahkan. Anda dapat menambahkan hingga 20 server backend per pemanggilan. Catatan
Server backend (instans ENS) harus dalam status Berjalan sebelum dapat ditambahkan ke instans load balancing. |
|
|
object |
Daftar server backend. |
||
| ServerId |
string |
ID Instans server backend. |
i-5uf6hj58zvml4ali8**** |
| Weight |
integer |
Bobot server backend. Nilai default: 100. Nilai valid: 0 hingga 100. Catatan
Nilai 0 menunjukkan bahwa tidak ada permintaan yang diteruskan ke server backend. |
100 |
| Type |
string |
Tipe server backend. Nilai valid:
|
ens. |
| Ip |
string |
Alamat IP server backend. |
192.168.0.1 |
| Port |
integer |
Port backend yang digunakan oleh Instans load balancing. |
0 |
Contoh
Respons sukses
JSONformat
{
"RequestId": "473469C7-AA6F-4DC5-B3DB-A3DC0DE3C83E",
"BackendServers": {
"BackendServer": [
{
"ServerId": "i-5uf6hj58zvml4ali8****",
"Weight": 100,
"Type": "ens.",
"Ip": "192.168.0.1",
"Port": 0
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | ens.interface.error | An error occurred while call the API. | |
| 400 | LoadBalancerNotFound | The input parameter loadBalancerId that is not found. | |
| 400 | IncorrectInstanceStatus | The current status of the resource does not support this operation. | |
| 400 | InstanceNotFound | The input parameter instanceId that is not found. | |
| 400 | InvalidParameter.Mismatch | Specified loadbalancer and backendServer are not in the same network. | |
| 400 | QuotaExceed.BackendServer | Backend servers quota exceeded in this loadbalancer. | |
| 400 | Missing%s | You must specify the parameter %s. | |
| 400 | Invalid%s | The specified parameter %s is invalid. | |
| 400 | InvalidParameter.EniType | The type of eni is invalid | |
| 400 | InvalidParameter.EniStatus | The status of eni is invalid | |
| 400 | InvalidParameter.EniServiceManaged | The eni is managed by service | |
| 400 | NoPermission | Permission denied. | |
| 400 | InvalidParameter.%s | The specified field %s invalid. Please check it again. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.