Menanyakan status kesehatan server backend.
Coba sekarang
Test
RAM authorization
|
Action |
Access level |
Resource type |
Condition key |
Dependent action |
|
slb:DescribeHealthStatus |
get |
*loadbalancer
|
|
None |
Parameter permintaan
|
Parameter |
Type |
Required |
Description |
Example |
| LoadBalancerId |
string |
Yes |
ID instans Classic Load Balancer (CLB). |
lb-bp1qjwo61pqz3ah**** |
| ListenerPort |
integer |
No |
Port antarmuka depan yang digunakan oleh instans SLB. Nilai yang valid: 1 hingga 65535. Catatan
Jika Anda tidak menentukan parameter ini, status kesehatan semua port akan dikembalikan. |
80 |
| ListenerProtocol |
string |
No |
Protokol antarmuka depan yang digunakan oleh instans SLB. |
https |
| RegionId |
string |
No |
ID wilayah instans SLB. |
cn-hangzhou |
Elemen respons
|
Element |
Type |
Description |
Example |
|
object |
|||
| RequestId |
string |
ID permintaan. |
365F4154-92F6-4AE4-92F8-7FF34B540710 |
| BackendServers |
object |
||
| BackendServer |
array<object> |
Server backend. |
|
|
object |
Server backend. |
||
| Protocol |
string |
Protokol antarmuka depan yang digunakan oleh instans SLB. |
https |
| ServerHealthStatus |
string |
Status kesehatan server backend. Nilai yang valid:
|
abnormal |
| ListenerPort |
integer |
Port antarmuka depan yang digunakan oleh instans SLB. |
80 |
| ServerIp |
string |
Alamat IP server backend. |
192.XX.XX.11 |
| Port |
integer |
Port backend yang digunakan oleh instans SLB. |
70 |
| ServerId |
string |
ID server backend. |
i-bp1h5u3fv54ytf*** |
Contoh
Respons sukses
JSONformat
{
"RequestId": "365F4154-92F6-4AE4-92F8-7FF******",
"BackendServers": {
"BackendServer": [
{
"Protocol": "http",
"ServerHealthStatus": "abnormal",
"ListenerPort": 80,
"ServerIp": "192.XX.XX.11",
"Port": 80,
"ServerId": "i-bp1h5u3fv54ytf***"
}
]
}
}
Kode kesalahan
|
HTTP status code |
Error code |
Error message |
Description |
|---|---|---|---|
| 400 | TooManyListeners | More than 1 listener is found, please be more specified. | |
| 400 | LocationServiceTimeout | Location service connection timeout. Please try again later. | |
| 400 | SystemBusy | The system is busy. |
Lihat Error Codes untuk daftar lengkap.
Catatan rilis
Lihat Release Notes untuk daftar lengkap.